@@ -329,6 +329,67 @@ routes/
329329
330330````
331331
332+ ``` php
333+
334+ Available commands for the "make" namespace:
335+ make:amqp-consumer [gen:amqp-consumer] Create a new amqp consumer class
336+ make:amqp-producer [gen:amqp-producer] Create a new amqp producer class
337+ make:aspect [gen:aspect] Create a new aspect class
338+ make:channel Create a new channel class
339+ make:class [gen:class] Create a new class
340+ make:command Create a new Artisan command
341+ make:component Create a new view component class
342+ make:constant [gen:constant] Create a new constant class
343+ make:controller [gen:controller] Create a new controller class
344+ make:event Create a new event class
345+ make:factory Create a new model factory
346+ make:job Create a new job class
347+ make:kafka-consumer [gen:kafka-consumer] Create a new kafka consumer class
348+ make:listener Create a new event listener class
349+ make:mail Create a new email class
350+ make:middleware [gen:middleware] Create a new middleware class
351+ make:migration [gen:migration] Generate a new migration file
352+ make:model Create a new Eloquent model class
353+ make:nats-consumer [gen:nats-consumer] Create a new nats consumer class
354+ make:notification Create a new notification class
355+ make:notifications-table [notifications:table] Create a migration for the notifications table
356+ make:nsq-consumer [gen:nsq-consumer] Create a new nsq consumer class
357+ make:observer Create a new model observer class
358+ make:policy Create a new policy class
359+ make:process [gen:process] Create a new process class
360+ make:provider Create a new service provider class
361+ make:queue-batches-table [queue:batches-table] Create a migration for the batches database table
362+ make:queue-failed-table [queue:failed-table] Create a migration for the failed queue jobs database table
363+ make:queue-table [queue:table] Create a migration for the queue jobs database table
364+ make:request Create a new form request class
365+ make:resource [gen:resource] create a new resource
366+ make:rule Create a new validation rule
367+ make:seeder Create a new seeder class
368+ make:session-table [session:table] Create a migration for the session database table
369+ make:test Create a new test class
370+
371+ ```
372+
373+ # Create base table like spatie
374+
375+ ``` php
376+ php artisan make:model Role -m
377+ # → Migration: 2025_05_17_154027_create_roles_table
378+
379+ php artisan make:model Permission -m
380+ # → Migration: 2025_05_17_154203_create_permissions_table
381+
382+ php artisan make:model ModelHasRole -m
383+ # → Migration: 2025_05_17_154248_create_model_has_roles_table
384+
385+ php artisan make:model ModelHasPermission -m
386+ # → Migration: 2025_05_17_154400_create_model_has_permissions_table
387+
388+ php artisan make:model RoleHasPermission -m
389+ # → Migration: 2025_05_17_154437_create_role_has_permissions_table
390+
391+ ```
392+
332393
333394> See [ this issue] ( https://github.com/laravel/octane/issues/765 ) for more discussions.
334395
0 commit comments