Skip to content

it-wbe/CRUD

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Admin Panel generator

Install in Laravel 5.3

  1. Config. Replace into config/database.php: 'strict' => true to 'strict' => false

(laravel/framework#14997 (comment))

  1. Add to config/auth.php:

    'guards' => [
        'admin' => [
            'driver' => 'session',
            'provider' => 'admins',
        ],
    'providers' => [
        'admins' => [
            'driver' => 'eloquent',
            'model' => Wbe\Crud\Models\ContentTypes\User::class,
        ],
    'passwords' => [
        'admins' => [
            'provider' => 'admins',
            'table' => 'password_resets',
            'expire' => 60,
        ],
  2. Add to config/app.php:

'providers' => [
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        // App\Providers\BroadcastServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,

        Laravel\Socialite\SocialiteServiceProvider::class,
        //Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
        Zofe\Rapyd\RapydServiceProvider::class,
        //Laravel\Cashier\CashierServiceProvider::class,
        Barryvdh\Elfinder\ElfinderServiceProvider::class,
        
        Wbe\Crud\CrudServiceProvider::class
'aliases' => [
        'Form' => Collective\Html\FormFacade::class,
        'Html' => Collective\Html\HtmlFacade::class,
        'Socialite' => Laravel\Socialite\Facades\Socialite::class,
        //'DataEdit' => Zofe\Rapyd\DataEdit\DataEdit::class,
  1. Add helper.php to composer autoload section:
  "files": [
    "vendor/wbe/crud/src/helpers.php"
  ]
  1. Add to app\Http\Kernel.php:
protected $middleware = [
        \Illuminate\Session\Middleware\StartSession::class,
        \Wbe\Crud\Middleware\Locale::class,
        \Wbe\Crud\Middleware\LangMiddleware::class,
protected $routeMiddleware = [
        'customer' => \Wbe\Crud\Middleware\RedirectIfNotCustomer::class,
        'customer.guest' => \Wbe\Crud\Middleware\RedirectIfCustomer::class,
        'admin' => \Wbe\Crud\Middleware\RedirectIfNotAdmin::class,
        'admin.guest' => \Wbe\Crud\Middleware\RedirectIfAdmin::class,
  1. Run into console:
php artisan vendor:publish --provider="Zofe\Rapyd\RapydServiceProvider"
php artisan vendor:publish --provider="Wbe\Crud\CrudServiceProvider"
php artisan elfinder:publish
php artisan migrate
composer dump-autoload
mkdir public/files/

Migrations will create tables and fill it with default data. It also contains data insertions into database (like seeding).


Finally, admin url:

http://yourproject.dev/admin/

Login: [email protected]

Pass:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 42.9%
  • PHP 34.8%
  • CSS 17.6%
  • JavaScript 4.7%