У нас вы можете посмотреть бесплатно Laravel Factories & Seeders (Lesson 2 ~ Laravel 6 Auth) или скачать в максимальном доступном качестве, которое было загружено на ютуб. Для скачивания выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Lesson 2 ~ Laravel 6 Authorization Laravel Factories & Laravel Seeders (Plus More) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. Scaffolding Laravel Post model, factory, migration, and controller 2. Setting up Post model belongsTo user relationship and fillable properties 3. Setting up User model hasMany posts relationship 4. Create posts table migration 5. Laravel Factories. Setting up the Post factory 6. Setting up the PostFactory to use a faker title and faker content 7. Scaffolding a PostSeeder for populating the database 8. Within the post seeder, creating 10 dummy users with 10 related fake posts each 9. Setting up the PostController to grab all of the posts and pass them to a blade template 10. Setting up the get '/posts' route in laravel web.php file to properly hit the PostController@index function as its callback 11. Adding the auth middleware to the '/posts' route 12. How to log in as a dummy user by getting the fake user using laravel tinker 13. Showing that we properly protected the '/posts' endpoint behind the 'auth' middleware that comes with the laravel new --auth scaffold ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Clean Code Studio ~ Simplify Clean Code Clean Life ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ https://cleancode.studio ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #LaravelFactories #LaravelSeeders #LaravelAuthorization