2017 © Pedro Peláez
 

library core

Live CMS Core

image

livecms/core

Live CMS Core

  • Wednesday, December 7, 2016
  • by mrofi
  • Repository
  • 1 Watchers
  • 2 Stars
  • 362 Installations
  • HTML
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 25 Versions
  • 0 % Grown

The README.md

Project LiveCMS - CORE

For Laravel 5.2, please checkout branch V0

How To Install :

  1. Create Laravel Project (5.3.*), (*1)

         composer create-project laravel/laravel liveCMS --prefer-dist
    
  2. Edit composer.json Change :, (*2)

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

    with :, (*3)

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

         cd liveCMS 
         composer require livecms/core
    
  4. open file config/app.php Before :, (*5)

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

    add this :, (*6)

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

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

         php artisan vendor:publish --force
    
  6. Set folder permissions :, (*9)

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

    add this line to :, (*11)

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

    change :, (*12)

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

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

        APP_URL=yourdomain.com
    
  10. Artisan Optimize and do Migrate, (*15)

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

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

    default username / password, (*18)

    1. Admin : email : admin@livecms.dev password : admin, (*19)

    2. Super Admin : email : super@livecms.dev password : admin, (*20)

Visit https://github.com/livecms/LiveCMS for more info., (*21)

The Versions