Quickly build an admin interface for your Eloquent models, using Laravel 5. Build a CMS in a matter of minutes.

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

dev-master / 1.0.x-dev 2016-08-10 17:46 UTC

README

Install

  1. In your terminal:
$ composer require luismareze/crud
  1. Add this to your config/app.php, under "providers":
        LuisMareze\CRUD\CrudServiceProvider::class,
  1. Run:
$ php artisan elfinder:publish #published elfinder assets
$ php artisan vendor:publish --provider="LuisMareze\CRUD\CrudServiceProvider" --tag="public" #publish CRUD assets
$ php artisan vendor:publish --provider="LuisMareze\CRUD\CrudServiceProvider" --tag="lang" #publish the lang files
$ php artisan vendor:publish --provider="LuisMareze\CRUD\CrudServiceProvider" --tag="config" #publish the config file
$ php artisan vendor:publish --provider="LuisMareze\CRUD\CrudServiceProvider" --tag="elfinder" #publish overwritten elFinder assets
  1. Define an 'uploads' disk. In your config/filesystems.php add this disk:
'uploads' => [
            'driver' => 'local',
            'root' => public_path('uploads'),
        ],
  1. Add a menu item for it in \resources\views\backend\includes\sidebar.blade.php
<li class="{{ Active::pattern('admin/elfinder/*') }}">
	{{ link_to('admin/elfinder', trans('menus.backend.elfinder.title')) }}
</li>
  1. Add a menu item translate for it in \resources\lang\en\menus.php
'elfinder' => [
    'title' => 'File Manager',
],