sohelamin / crud-generator

Laravel CRUD Generator
https://packagist.org/packages/appzcoder/crud-generator
MIT License
1.41k stars 426 forks source link

To work on Laravel 10 #271

Closed ribafs closed 8 months ago

ribafs commented 1 year ago

Temporary solution

composer require appzcoder/crud-generator --dev

php artisan vendor:publish --provider="Appzcoder\CrudGenerator\CrudGeneratorServiceProvider"

Examle

php artisan crud:generate Posts --fields='title#string; email#string;' --controller-namespace=App\Http\Controllers --form-helper=html

Adjusts routes em /routes/web:

use App\Http\Controllers\PostsController;

Route::resource('posts', PostsController::class);

php artisan migrate

php artisan route:clear

php artisan serve

http://127.0.0.1:8000/posts