2017 © Pedro Peláez
 

library lara-mvcms

Simple core CMS Admin written in Laravel

image

hlacos/lara-mvcms

Simple core CMS Admin written in Laravel

  • Friday, August 26, 2016
  • by Hlacos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

LaraMvcms

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Install

Add lara-mvcms package:, (*2)

``` bash $ composer require hlacos/lara-mvcms, (*3)


### Commands Add commands to app\Console\Kernel $commands array

\Hlacos\LaraMvcms\Console\Commands\CreateAdminUser::class, (*4)


### Middlewares 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,, (*5)


### Service providers 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, (*6)


Add LaraMvcms service provider in config/app.php file before 'Application Service Providers'

/* * Lara-MVCMS Service Providers */ Hlacos\LaraMvcms\LaraMvcmsServiceProvider::class, (*7)


Change Illuminate\Auth\AuthServiceProvider::class in the 'providers' array to

Kbwebs\MultiAuth\AuthServiceProvider::class, (*8)


Change Illuminate\Auth\Passwords\PasswordResetServiceProvider::class in the 'providers' array to

Kbwebs\MultiAuth\PasswordResets\PasswordResetServiceProvider::class, (*9)


### Aliases Add aliases in config/app.php to the 'aliases' array

'LaravelAnalytics' => Spatie\LaravelAnalytics\LaravelAnalyticsFacade::class, (*10)


### Set up users 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' ],, (*11)


### Set up languages In config/app.php set the following keys to gb: * locale * fallback_locale In config/translatable.php set the frontend locales. ### Clear Migrations Remove default users and password_resets table ``` bash rm database/migrations/2014_10_12_000000_create_users_table.php rm database/migrations/2014_10_12_100000_create_password_resets_table.php

Vendor publish

``` bash php artisan vendor:publish, (*12)


### Migrate Than migrate ``` bash php artisan migrate

Seeds

Add line to database Seeder (database/seeds/DatabaseSeeder.php), (*13)

$this->call(LaraMvcmsSeeder::class);

and run, (*14)

php artisan db:seed

or use: ``` bash php artisan db:seed --class=LaraMvcmsSeeder, (*15)


### Bower dependencies Create .bowerrc file contains: ``` bash { "directory": "public/bower_components/" }

Init bower ``` bash bower init, (*16)


Install dependencies ``` bash 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

Dashboard

More informations: https://github.com/spatie/laravel-analytics, (*17)

Set up google analitycs in the .env file, (*18)

ANALITYCS_SITE_ID=
ANALYTICS_CLIENT_ID=
ANALYTICS_SERVICE_EMAIL=
CERTIFICATE_NAME=

Create first user

``` bash php artisan lara-mvcms:create-admin-user, (*19)


### Create missing folders Create public/attachments folder. Create public/thumbs folder. Create public/uploads folder. ## Change log Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing Not implemented yet. ``` bash $ composer test

Contributing

Please see CONTRIBUTING for details., (*20)

Security

If you discover any security related issues, please email heiszmann@gmail.com instead of using the issue tracker., (*21)

Credits

License

The MIT License (MIT). Please see License File for more information., (*22)

The Versions