In this video, learn about the basics of writing a standard index action in your own Laravel controllers, in which you can paginate through a set of records from your own database.
- [Instructor] We're going to start working our controller, … and start building up the features of our application, … one controller action and one corresponding view at a time. … The goal here is to get as iteratively exposed … to all the features and power of Laravel … and how we can work within our controller and view layer … to produce the best applications we can. … With that out of the way, … open up your application's code base … in your text editor to the controller … for our bookings records, … which is at app, Http, Controllers, BookingController.php. … We'll start at the top of our controller. … We're not required to follow … any particular naming convention, … though typically Laravel prefers singular-name controllers … with controller included in the name. … At the top, you'll see our controller … extends the BaseController class included in our project. … Let's open that up and see what it looks like. … That's available at app, Http, Controllers, Controller.php. … This class is provided by Laravel as a BaseController class …
- Exploring Laravel
- Setting up simple authentication
- Controllers and routes
- Create and index view
- Show, edit, and destroy views
- Writing scopes in Laravel Eloquent
- Creating one-to-one relationships
Skill Level Beginner
MVC Frameworks for Building PHP Web Applicationswith Drew Falkman2h 57m Intermediate
Ajax with PHP: Add Dynamic Content to Websiteswith Kevin Skoglund3h 37m Intermediate
What you should know1m 52s
2. Starting Your Project
3. The Create and Index Views
4. The Show, Edit, and Destroy Views
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.