Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To work on Laravel 10 #271

Closed
ribafs opened this issue Jun 4, 2023 · 0 comments
Closed

To work on Laravel 10 #271

ribafs opened this issue Jun 4, 2023 · 0 comments

Comments

@ribafs
Copy link

ribafs commented Jun 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants