dev-master
9999999-devBase admin package for Laravel 5
MIT
The Requires
- illuminate/support >=5.0.0
- php >=5.6.0
Wallogit.com
2017 © Pedro Peláez
Base admin package for Laravel 5
Base admin package for Laravel 5, (*2)
Install package with composer composer require za-laravel/laravel-admin:"dev-master", (*3)
If composer can't find package, try to set "minimum-stability": "dev", (*4)
Now append service provider to providers array in config/app.php., (*5)
php
array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'ZaLaravel\LaravelAdmin\LaravelAdminServiceProvider',
),
?>, (*6)
Append view composer service provider to app/config.php, (*7)
php
array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'ZaLaravel\LaravelAdmin\LaravelAdminServiceProvider',
'ZaLaravel\LaravelAdmin\LaravelAdminViewComposerServiceProvider',
),
?>, (*8)
Publish assets and config file with php artisan vendor:publish, (*9)
You will have empty larave-admin.php config and you need to sepecifiy nav items there:, (*10)
```php <?php, (*11)
return [, (*12)
'nav' => [
[
'title' => 'Users',
'url' => 'user' // equals to /admin/user
]
]
]; ```, (*13)
In your view you need extend laravel-admin::layout:
@extends('laravel-admin::layout'), (*14)
And insert your content in content section:, (*15)
```
@section('content')
...
@endsection
```
Base admin package for Laravel 5
MIT