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

how to crud ? #7

Closed
andridgitalbox opened this issue Mar 9, 2018 · 2 comments
Closed

how to crud ? #7

andridgitalbox opened this issue Mar 9, 2018 · 2 comments

Comments

@andridgitalbox
Copy link

haii admin ,you can give me sample crud with boilerplate?

@sebastienheyd
Copy link
Owner

Hello,

At the moment there is no scaffolding available to automate the CRUD in boilerplate. I'm looking for interesting packages for this...

However, to make it simple here's how I do it (I assume that tables and models are already created)

  • First, I create a seeder to add the necessary permissions to my new section in the permission table.

  • Then I create the controller linked to the resource.

  • In the file routes/web.php I add a group "admin" (see the second group here) and a route to the controller of the resource in this group.

  • Finally I add an item in the menu with the command php artisan boilerplate: menuitem

Now all you have to do is code ! :)

Here are a few tips for the moment, I plan to create a wiki to better document the package. I also have a second package in preparation that works with boilerplate in which there will be a lot of examples...

Stay tuned !

@diorz38
Copy link

diorz38 commented Apr 5, 2018

Can you check crestApp, that is a crud generator, have good doc too

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

3 participants