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...
Смотрите видео Database seeding & resource controller in laravel онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Rehan Manzoor 02 Май 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9 раз и оно понравилось людям.