za-laravel / laravel-admin by CawaKharkov

Base admin package for Laravel 5
1,276
3
4
Package Data
Maintainer Username: CawaKharkov
Maintainer Contact: cawa123@mail.ru (Aleksandr Zamiatin)
Package Create Date: 2015-05-25
Package Last Update: 2016-10-08
Language: JavaScript
License: MIT
Last Refreshed: 2024-11-17 03:00:59
Package Statistics
Total Downloads: 1,276
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 4
Total Forks: 6
Total Open Issues: 0

laravel-admin

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License

Base admin package for Laravel 5

Installation

  • Install package with composer composer require za-laravel/laravel-admin:"dev-master"

  • If composer can't find package, try to set "minimum-stability": "dev"

  • Now append service provider to providers array in config/app.php.

    <?php
    
    'providers' => array(
    
        'Illuminate\Foundation\Providers\ArtisanServiceProvider',
        'Illuminate\Auth\AuthServiceProvider',
        ...
        'ZaLaravel\LaravelAdmin\LaravelAdminServiceProvider',
    
    ),
    ?>
    
  • Append view composer service provider to app/config.php

    <?php
    
    'providers' => array(
    
       'Illuminate\Foundation\Providers\ArtisanServiceProvider',
       'Illuminate\Auth\AuthServiceProvider',
       ...
       'ZaLaravel\LaravelAdmin\LaravelAdminServiceProvider',
       'ZaLaravel\LaravelAdmin\LaravelAdminViewComposerServiceProvider',
    ),
    ?>
    
  • Publish assets and config file with php artisan vendor:publish

  • You will have empty larave-admin.php config and you need to sepecifiy nav items there:

<?php

return [

   'nav' => [
       [
           'title' => 'Users',
           'url' => 'user' // equals to /admin/user
       ]
   ]
];

Usage

In your view you need extend laravel-admin::layout: @extends('laravel-admin::layout')

And insert your content in content section:

   ``` 
   @section('content')
     ...
   @endsection
     
   ```