livecms / core
Live CMS Core
Installs: 560
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
Language:HTML
Requires
- barryvdh/laravel-debugbar: ^2.1
- laravel/framework: 5.3.*
- laravel/scout: ^1.1
- laravelcollective/html: ^5.3
- livecms/support: dev-master
- mrofi/laravel-shared-hosting-package: dev-master
- mrofi/videoinfo: dev-master
- roketid/imagemax: dev-master
- symfony/css-selector: 3.1.*
- symfony/dom-crawler: 3.1.*
- uxweb/sweet-alert: ^1.1
- yajra/laravel-datatables-oracle: ^6.0
README
##For Laravel 5.2, please checkout branch V0
How To Install :
-
Create Laravel Project (5.3.*)
composer create-project laravel/laravel liveCMS --prefer-dist
-
Edit composer.json Change :
"config": { "preferred-install": "dist" }
with :
"minimum-stability": "dev", "prefer-stable": true
-
After finish, add livecms core in your project
cd liveCMS composer require livecms/core
-
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,
-
Publish vendor :
php artisan vendor:publish --force
-
Set folder permissions :
chmod +w -R public/files/ chmod +w -R public/uploads/ chmod +w -R public/users/
-
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, ];
-
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, ], ],
-
Update your .env update based on what your site url:
APP_URL=yourdomain.com
-
Artisan Optimize and do Migrate
php artisan optimize php artisan migrate --seed
-
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); }); }); }
-
Login visit : http://yourdomain/login
default username / password
-
Admin : email : admin@livecms.dev password : admin
-
Super Admin : email : super@livecms.dev password : admin
-
Visit https://github.com/livecms/LiveCMS for more info.