Add lara-mvcms package:
$ composer require hlacos/lara-mvcms
Add commands to app\Console\Kernel $commands array
\Hlacos\LaraMvcms\Console\Commands\CreateAdminUser::class
Add LaraMvcms middlewares to $routeMiddleware array in app\Http\Kernel.php
'lara-mvcms.admin' => \Hlacos\LaraMvcms\Http\Middlewares\AdminAuthenticate::class,
'lara-mvcms.guest' => \Hlacos\LaraMvcms\Http\Middlewares\AdminGuest::class,
'lara-mvcms.is-admin' => \Hlacos\LaraMvcms\Http\Middlewares\SetIsAdmin::class,
'lara-mvcms.has-permission' => \Hlacos\LaraMvcms\Http\Middlewares\HasPermission::class,
Add LaraMvcms service providers in config/app.php file to the end of the 'providers' array
/*
* Lara-MVCMS depencencies
*/
Spatie\LaravelAnalytics\LaravelAnalyticsServiceProvider::class,
Dimsav\Translatable\TranslatableServiceProvider::class,
Hlacos\Attachment5\Attachment5ServiceProvider::class
Add LaraMvcms service provider in config/app.php file before 'Application Service Providers'
/*
* Lara-MVCMS Service Providers
*/
Hlacos\LaraMvcms\LaraMvcmsServiceProvider::class
Change Illuminate\Auth\AuthServiceProvider::class in the 'providers' array to
Kbwebs\MultiAuth\AuthServiceProvider::class
Change Illuminate\Auth\Passwords\PasswordResetServiceProvider::class in the 'providers' array to
Kbwebs\MultiAuth\PasswordResets\PasswordResetServiceProvider::class
Add aliases in config/app.php to the 'aliases' array
'LaravelAnalytics' => Spatie\LaravelAnalytics\LaravelAnalyticsFacade::class
More information available in https://github.com/Kbwebs/MultiAuth
Set up multi-auth users in config/auth.php example:
'multi-auth' => array(
'admin' => array(
'driver' => 'eloquent',
'model' => Hlacos\LaraMvcms\Models\AdminUser::class,
'email' => 'lara-mvcms::emails.auth.reminder',
)
),
'password' => array(
'table' => 'password_resets',
'expire' => 60,
),
'globals' => [
'user', 'check'
],
In config/app.php set the following keys to gb:
- locale
- fallback_locale
In config/translatable.php set the frontend locales.
Remove default users and password_resets table
rm database/migrations/2014_10_12_000000_create_users_table.php
rm database/migrations/2014_10_12_100000_create_password_resets_table.php
php artisan vendor:publish
Than migrate
php artisan migrate
Add line to database Seeder (database/seeds/DatabaseSeeder.php)
$this->call(LaraMvcmsSeeder::class);
and run
php artisan db:seed
or use:
php artisan db:seed --class=LaraMvcmsSeeder
Create .bowerrc file contains:
{
"directory": "public/bower_components/"
}
Init bower
bower init
Install dependencies
bower install adminlte --save
bower install flag-icon-css --save
bower install responsive-filemanager#9.9.7 --save
bower install font-awesome --save
bower install ionicons --save
bower install jQuery --save
More informations: https://github.com/spatie/laravel-analytics
Set up google analitycs in the .env file
ANALITYCS_SITE_ID=
ANALYTICS_CLIENT_ID=
ANALYTICS_SERVICE_EMAIL=
CERTIFICATE_NAME=
php artisan lara-mvcms:create-admin-user
Create public/attachments folder. Create public/thumbs folder. Create public/uploads folder.
Please see CHANGELOG for more information what has changed recently.
Not implemented yet.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email heiszmann@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.