From the course: Building Laravel and Vue.js 2 Web Apps
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Injecting props in Vue components
From the course: Building Laravel and Vue.js 2 Web Apps
Injecting props in Vue components
- [Instructor] In this video, we'll start to build out the Vue.js powered admin tool for updating the restaurant's menu. Because we'll always have a relatively small number of menu categories, and they have a simple set of attributes, we don't really need separate pages for listing, creating, and updating these category records. We'll do it all in a single page using Vue.js. So I'm going to start by copying the body of this method in the home controller into the index method of the category controller that we created. But this time instead of home, we'll return a new index view that we'll create inside a categories folder, inside an admin folder. We can actually create those new folders in the view all in one shot if we go to resources, view, New File. I can now do admin categories index.blade.php, and it will create that folder structure for me in the new blade file. And let's copy some of the blade directives from home to get us started. And we'll remove that slogan and just say…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Integrating a layout6m 46s
-
(Locked)
Creating a model and seeding the database4m 46s
-
(Locked)
Building views with Blade templates5m 6s
-
(Locked)
Injecting props in Vue components4m 49s
-
(Locked)
Building a CRUD component5m 9s
-
(Locked)
Managing scrolling and focus4m 18s
-
(Locked)
Protecting routes and models with policies5m 5s
-
(Locked)
Building an API with Laravel Passport5m 1s
-
(Locked)
Calling an API from Vue7m 46s
-
-
-
-