Artisan creating controllers, models, migrations

04.03.2021 | 1156 | SQL

Creating controllers, models, migrations on the server via the console

P it is faster and more convenient to create and "copy paste" the files themselves in the "storm", however, such methods can also be useful to someone.

Creating an Article Page Controller
php artisan make:controller Pages/ArticlesController
Creating a migration for articles
php artisan make:migration create_articles_table
Creating a model for articles
php artisan make:model Models/core



← Back

Comments (0)