dev-master
9999999-devKontent CMF & Laravel 5 Integration Package
MIT
The Requires
by Attila Fulop
laravel cms cmf
Wallogit.com
2017 © Pedro Peláez
Kontent CMF & Laravel 5 Integration Package
This package shouldn't be used directly, use either Kontent Eloquent or Kontent Analogue instead, both are implicitly relying on this package., (*1)
Add the dependency to composer:, (*2)
# 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
In the config/app.php configuration file, add to the provider array:, (*3)
'providers' => [
// Other Service Providers
Konekt\Kontent\Laravel\KontentServiceProvider::class,
],
php artisan vendor:publish --provider="Konekt\Kontent\Laravel\KontentServiceProvider" --tag=config php artisan vendor:publish --provider="Konekt\Kontent\Laravel\KontentServiceProvider" --tag=migrations
Edit the packages's config file app/kontent.php:, (*4)
Available options are:, (*5)
| 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 ↩, (*6)
Kontent CMF & Laravel 5 Integration Package
MIT
laravel cms cmf