Home  • Framework • Laravel

Laravel CLR for CRUD operation

artisan-command 1. To create Model with migration >php artisan make:model LeaveCategory -m 2. To create table with migration file >php artisan migrate --path=/database/migrations/...path.php 3. To make seeder file >php artisan make:seeder LeaveCategorySeeder 4. To insert seeder data >composer dump-autoload >php artisan db:seed --class=LeaveCategorySeeder 5. To make Resource Controller >php artisan make:controller LeaveCategoryController -r Than register resource router to web.php

Comments 0


Copyright © 2024. Powered by Intellect Software Ltd