Looking to hire Laravel developers? Try LaraJobs

kontent-laravel maintained by konekt

Description
Kontent CMF & Laravel 5 Integration Package
Author
Last update
2016/07/10 16:34 (dev-master)
License
Links
Downloads
17
Tags

Comments
comments powered by Disqus

Kontent CMF Laravel 5 Integration Package

Installation

Composer

This package shouldn't be used directly, use either Kontent Eloquent or Kontent Analogue instead, both are implicitly relying on this package.

Add the dependency to composer:


# either
composer require konekt/kontent-eloquent
# or
composer require konekt/kontent-analogue

# this works as well, but not much sense at the moment:
composer require konekt/kontent-laravel

Register The Provider

In the config/app.php configuration file, add to the provider array:

'providers' => [
    // Other Service Providers

    Konekt\Kontent\Laravel\KontentServiceProvider::class,
],

Publish Files

php artisan vendor:publish --provider="Konekt\Kontent\Laravel\KontentServiceProvider" --tag=config
php artisan vendor:publish --provider="Konekt\Kontent\Laravel\KontentServiceProvider" --tag=migrations

Edit Config

Edit the packages's config file app/kontent.php:

Available options are:

Option Meaning Default
db.table_prefix The database table prefix "konekt_"
translation.enabled Whether or not to use the translation features * false
translation.default The default language to use "en"
translation.languages Array of your app's supported languages ['en']

*: Configure this before you run the package's migrations. This setting influences whether translation related columns are generated in the database during the migration