Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eth0's avatar
Level 8

Laravel CRUD Generator

Hello guys i was wondering if there is any way to implement CRUD generator for the Laravel. I know there are alot of them wich do the job well but i want a custom one i want to make it in my own admin dashboard!.

0 likes
4 replies
dipankarb's avatar

just pull appzcoder and start coding .... @Erti I am also planning same .. and already started with lot more features and with an objective to complete my any admin project within 15-20 mins

Lets do it and share your experience also ...

1 like
tiagotavares's avatar
Level 15

Hi,

There are lots of ways to implement CRUD. Always depends on your needs.

Some tips:

  1. Define what you want in the end. Choose a template or prepare to use your own (for example: AdminLTE), what fields do you need, etc...

  2. Start with a basic example, 1 table, 1 column type text.

    2.1. Seed it that table. Create the model. Create your controller. Add a resourceful route.

    2.2. Add a map for each of your fields in model, for example: protected $adminColumns = ['name' => 'text']; .

    2.3. Start by display all your database table contents in a html table, through the index method. Using the adminColumns.

    2.4. The the show, update, destroy, .... methods.

After the easy part, start to abstract each part one by one. Add textareas, images. For example create a Class to handle the stores and updates to database, one to display data in the form. Add a trait on your model to easier implementation on other ones. Add CRUD commands.

Basically one step at a time.

Hope it helps :)

1 like
eth0's avatar
Level 8

thank you all guys i appreciate your helps

Please or to participate in this conversation.