Skip to content
Alex Torscho edited this page Feb 4, 2015 · 5 revisions

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.

1. Requirements

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.

1.1 Recommandations

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.

2. Service Providers

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.

3. Assets

You must also publish package's assets files to your public folder, simply run: php artisan asset:publish atorscho/backend.

4. Install The 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.

4.1 Authentication Model

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!

Clone this wiki locally