2017 © Pedro Peláez
 

library kontent-laravel

Kontent CMF & Laravel 5 Integration Package

image

konekt/kontent-laravel

Kontent CMF & Laravel 5 Integration Package

  • Sunday, July 10, 2016
  • by konekt
  • Repository
  • 4 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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., (*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

Register The Provider

In the config/app.php configuration file, add to the provider array:, (*3)

'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:, (*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)

The Versions

10/07 2016

dev-master

9999999-dev

Kontent CMF & Laravel 5 Integration Package

  Sources   Download

MIT

The Requires

 

laravel cms cmf