A nifty little CMS written in Laravel 5.1 and AngularJS - intended for use in own projects
- Compatibility with Laravel >= 5.1.1
- Removed authentication dependency on
rydurham/Sentinel
- Authentication now relying on framework's built-in authentication - extended to include user roles
- Use of middleware to manage authorisation in the backend
- Refreshed backend design
-
Install a fresh copy of Laravel >= 5.1 and configure database and mail settings.
-
Add the following to the composer.json file
"repositories": [ { "type": "git", "url": "https://github.com/ACWLtd/Nifty" }, { "type": "git", "url": "https://github.com/ACWLtd/Utility" } ],
-
Add the following to the composer.json file, inside
require
"kjamesy/cms": "1.1.*", "kjamesy/utility": "dev-master"
-
Add the following inside composer.json file:
"minimum-stability": "dev", "prefer-stable" : true
-
Run
composer update
-
Add the Service Providers to the providers array in
config/app.php
file:Kjamesy\Cms\CmsServiceProvider::class,
PS: You may want to add the CmsServiceProvider BEFORE the
RouteServiceProvider
so the package's routes take precendence over those in your app. -
Ensure you have a route named home in your
app/Http/routes.php
file. You could modify the default route to:Route::get('/', ['as' => 'home', function() { return View::make('welcome'); }]);
-
Remove the framework default migrations inside
database/migrations
-
Publish the package files (migrations, views and assets):
php artisan vendor:publish
-
Run the migrations:
```shell
php artisan migrate
```
-
Inside
config/auth.php
change model value toKjamesy\Cms\Models\User::class,
and email (inside password) to'cms::emails.password',
-
Inside
app/Http/Middleware/RedirectIfAuthenticated.php
changeredirect('home');
toredirect(route('home'));
-
Assuming default configuration, visit
/admin
and login with usernamejamesy
and Passwordpassword
-
You now deserve a biscuit, go on!