livecms/core

Live CMS Core

Installs: 533

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 2

Open Issues: 0

Language:HTML

v1.0.14 2016-12-07 01:09 UTC

README

##For Laravel 5.2, please checkout branch V0

How To Install :

  1. Create Laravel Project (5.3.*)

         composer create-project laravel/laravel liveCMS --prefer-dist
    
  2. Edit composer.json Change :

        "config": {
            "preferred-install": "dist"
        }
    

    with :

        "minimum-stability": "dev",
        "prefer-stable": true
    
  3. After finish, add livecms core in your project

         cd liveCMS 
         composer require livecms/core
    
  4. open file config/app.php Before :

        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,
    

    add this :

        Mrofi\LaravelSharedHostingPackage\LaravelSharedHostingPackageServiceProvider::class,
        Barryvdh\Debugbar\ServiceProvider::class,
        Yajra\Datatables\DatatablesServiceProvider::class,
        UxWeb\SweetAlert\SweetAlertServiceProvider::class,
        LiveCMS\Support\LiveCMSSupportServiceProvider::class,
        RoketId\ImageMax\ImageMaxServiceProvider::class,
        LiveCMS\Providers\LiveCMSServiceProvider::class,
    

    and add to 'aliases'

        'Debugbar' => Barryvdh\Debugbar\Facade::class,
        'Datatables' => Yajra\Datatables\Datatables::class,
        'Form' => Collective\Html\FormFacade::class,
        'Html' => Collective\Html\HtmlFacade::class,
        'Alert' => UxWeb\SweetAlert\SweetAlert::class,
        'Thumb' => LiveCMS\Support\Thumbnailer\Facades\Thumb::class,
        'ImageMax' => RoketId\ImageMax\ImageMaxFacade::class,
        'Upload' => LiveCMS\Support\Uploader\Facades\Upload::class,
    
  5. Publish vendor :

         php artisan vendor:publish --force
    
  6. Set folder permissions :

        chmod +w -R public/files/
        chmod +w -R public/uploads/
        chmod +w -R public/users/
    
  7. Open app/Http/Kernel.php and edit :

    add this line to :

        protected $middleware = [
            ...
    
            \LiveCMS\Middleware\GlobalParamsMiddleware::class,
            \LiveCMS\Middleware\HttpsMiddleware::class,
        ];
    

    change :

        protected $routeMiddleware = [
            'auth' => \App\Http\Middleware\Authenticate::class,
            change to :
            'auth' => \LiveCMS\Middleware\Authenticate::class,
    
            'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
            change to :
            'guest' => \LiveCMS\Middleware\RedirectIfAuthenticated::class,
    
            add this line :
            'model' => \LiveCMS\Middleware\ModelMiddleware::class,
        ];
    
  8. Open config/auth.php Edit :

        'providers' => [
            'users' => [
                'driver' => 'eloquent',
                'model' => LiveCMS\Models\Users\User::class,
            ],
    
        .......
    
        'passwords' => [
            'users' => [
                'provider' => 'users',
                'email' => 'livecms::auth.emails.password',
                'table' => 'password_resets',
                'expire' => 60,
            ],
        ],
    
  9. Update your .env update based on what your site url:

        APP_URL=yourdomain.com
    
  10. Artisan Optimize and do Migrate

        php artisan optimize
        php artisan migrate --seed
    
  11. Edit your RouteServiceProvider Update mapWebRoutes() method in your app/Providers/RouteServiceProvider.php

        protected function mapWebRoutes()
        {
            Route::group([
                'middleware' => 'web',
                'namespace' => $this->namespace,
            ], function ($router) {
                liveCMSRouter($router, function ($router, $adminSlug, $subDomain, $subFolder) {
                    require base_path('routes/web.php');
                    frontendRoute($router);
                });
            });
        }
    
  12. Login visit : http://yourdomain/login

    default username / password

    1. Admin : email : admin@livecms.dev password : admin

    2. Super Admin : email : super@livecms.dev password : admin

Visit https://github.com/livecms/LiveCMS for more info.