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

Injecting props in Vue components

From the course: Building Laravel and Vue.js 2 Web Apps

Start my 1-month free trial

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…

Contents