wbe / crud
Admin panel with CRUD generator, based on Rapyd
Installs: 441
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 1
Open Issues: 0
Language:HTML
Type:project
Requires
- php: ^5.6 || ^7.0
- barryvdh/laravel-elfinder: ^0.3.8
- baum/baum: *
- laravel/framework: ^5.5
- laravel/socialite: *
- wbe/rapyd: *
- dev-master
- 2.3.8
- 2.3.7
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2
- 2.1.2
- 2.1.1
- 2.1
- 2.0.2
- 2.0.1
- 2.0
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2
- 1.1
- 1.0.8.8
- 1.0.8.7
- 1.0.8.6
- 1.0.8.5
- 1.0.8.4
- 1.0.8.3
- 1.0.8.2
- 1.0.8.1
- 1.0.7.8
- 1.0.7.7
- 1.0.7.6
- 1.0.7.5
- 1.0.7.4
- 1.0.7.3
- 1.0.7.2
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is not auto-updated.
Last update: 2025-01-04 21:36:29 UTC
README
Install in Laravel 5.5
- Config.
Replace into
config/database.php
:'strict' => true
to'strict' => false
(laravel/framework#14997 (comment))
-
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, ],
-
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\Models\hrbac\HierarchicalRBAC\HRBACServiceProvider::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,
- Add helper.php to composer autoload section:
"files": [ "vendor/wbe/crud/src/helpers.php" ]
- Add to app\Http\Kernel.php:
protected $middleware = [ \Illuminate\Session\Middleware\StartSession::class, \Wbe\Crud\Middleware\Locale::class, \Wbe\Crud\Middleware\LangMiddleware::class, \Wbe\Crud\Middleware\AdminAccessMiddleware::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,
protected $middlewareGroups = [ 'admin'=>[ \Illuminate\View\Middleware\ShareErrorsFromSession::class, ],
- 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
php artisan db:seed --class="\Wbe\Crud\seeds\DatabaseSeeder"
composer dump-autoload
mkdir public/files/
add alias
auto generate alias if in description table exist column alias generate alias willbe from column title
add redirect config configuration from add page
in config/crud.php
'edit_redirect' => env('edit_redirect', 1)
by default 1
1 - redirect to edit page 0 - redirect to data page
Migrations will create tables and fill it with default data. It also contains data insertions into database (like seeding).
Finally, admin url:
Login: admin@gmail.com
Pass: 111111