hlacos/lara-mvcms

Simple core CMS Admin written in Laravel

Installs: 37

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

0.1.0 2016-08-26 13:55 UTC

This package is auto-updated.

Last update: 2024-03-13 21:44:27 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Install

Add lara-mvcms package:

$ composer require hlacos/lara-mvcms

Commands

Add commands to app\Console\Kernel $commands array

\Hlacos\LaraMvcms\Console\Commands\CreateAdminUser::class

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,

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

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

Aliases

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

'LaravelAnalytics' => Spatie\LaravelAnalytics\LaravelAnalyticsFacade::class

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'
],

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

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

php artisan vendor:publish

Migrate

Than migrate

php artisan migrate

Seeds

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

Bower dependencies

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

Dashboard

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=

Create first user

php artisan lara-mvcms:create-admin-user

Create missing folders

Create public/attachments folder. Create public/thumbs folder. Create public/uploads folder.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

Not implemented yet.

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

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