Working with the database
Course Content
0 / 52 completedMeet Laravel
What you should know
Understand the MVC architecture
Using Codespaces with this course
Serve the application
Handle routing
Creating a view
Challenge Create a controller and a view, then add a route
Solution Create a controller and a view, then add a route
Building layouts with Blade
Working with controllers
Understand Laravel configuration
Working with the database
Challenge Create a migration to add a column and update a row
Creating and running migrations
Creating models and using Eloquent
Solution Create a migration to add a column and update a row
Understand the project requirements
Add authentication with Laravel Breeze
Create the first model, migration, controller, and routes
Register resource routes
Adding styles to the project
Challenge Create a new resource
Solution Create a new resource
Add an index method to fetch all notes
Create an index view to display all notes
Add pagination and clean up the index view
Add a store action to save the data
Add a create method and view to show a form
Add a show action and view to display single note
Challenge Add index and create methods for a new resource
Create a unique ID for each note
Solution Add index and create methods for a new resource
Add an edit method and view to allow editing of the note
Add an update method to update edited data
Add a destroy method to delete a note
Show flash data to users
Challenge Update notes with a new resource
Solution Update notes with a new resource
What are Eloquent relationships
Define relationships
Challenge Define a new relationship and use it
Query and save relationships
Solution Define a new relationship and use it
Enable soft delete
Query soft deleted models
Permanently delete models
Restore soft deleted models
Show soft deleted model
Optional Set up a local development environment
Next steps
Quick summary