Closed ribafs closed 8 months 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
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