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