-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
The installation of The Backend is very easy. You will only need to update several files and then run an artisan command to complete the process.
You need to add a new dependency to your composer.json file. Just run composer require "atorscho/backend:~1.0.0". Everything else will be held by the Composer.
I use a couple of very useful but not necessary packages to simplify the development.
"way/generators": "~2.0",
"barryvdh/laravel-ide-helper": "~1.11"The first one is a very popular generator by Jeffrey Way. It lets escape the routine of creating controllers, migrations, models etc. The second one is a useful package for IDE users (PhpStorm, Sublime Text, NetBeans and others) which will adjust the autocompletion feature. I highly recommend you to start using it.
In order to make The Backend work, do not forget about adding the Service Providers to your app/config/app.php file.
Search for providers key and add to the end of it:
'Atorscho\Backend\BackendServiceProvider',
'Atorscho\Crumbs\CrumbsServiceProvider',Now you may use The Backend and also the breadcrumbs package it uses.
You must also publish package's assets files to your public folder, simply run: php artisan asset:publish atorscho/backend.
The last step, run php artisan backend:install -s ('-s' for sample content) to run all migrations, seeds, settings but also to create a super-admin.
To be able to use Backend's User Model as the Authentication Model, you must change the model key in app/config/auth.php to:
'model' => 'Atorscho\Backend\Models\User',If everything goes well (I hope so!), you have just successfully installed The Backend!