Let's build a blog with laravel from scratch. In this video we will try to understand what is database seeding, how to add database seeder in laravel, what are resource controllers in laravel. Additionally we will add admin UI for posts table.
Laravel includes the ability to seed your database with test data using seed classes. All seed classes are stored in the database/seeders directory. By default, a DatabaseSeeder class is defined for you. From this class, you may use the call method to run other seed classes, allowing you to control the seeding order.
https://laravel.com/docs/8.x/seeding#...
If you think of each Eloquent model in your application as a "resource", it is typical to perform the same sets of actions against each resource in your application. For example, imagine your application contains a Photo model and a Movie model. It is likely that users can create, read, update, or delete these resources.
Because of this common use case, Laravel resource routing assigns the typical create, read, update, and delete ("CRUD") routes to a controller with a single line of code. To get started, we can use the make:controller Artisan command's --resource option to quickly create a controller to handle these actions:
https://laravel.com/docs/8.x/controll...
Watch video Database seeding & resource controller in laravel online without registration, duration hours minute second in high quality. This video was added by user Rehan Manzoor 02 May 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 9 once and liked it people.