Getting Started with Laravel (PHP Framework) 7: Models and Data
Storing and fetching data in databases is a key task of all modern web applications. This course teaches you how to easily work with models and data in your Laravel application.
What you'll learn
It's a core task of modern web application to store, update, retrieve, and delete data in databases. This course, Getting Started with Laravel (PHP Framework) - Models and Data, teaches you how Laravel assists you at this task. You'll learn how to easily set up and configure models as well as database tables through Laravel and PHP. This course also teaches you how you may then easily query your data or set up related models by writing a few lines of code. Once you're finished with this course, you'll be able to implement database capabilities in any of your Laravel applications and therefore make them really dynamic and powerful.
Table of contents
- Introduction 1m
- Understanding Eloquent Models 4m
- Introducing Migrations 1m
- Writing Migration Files 3m
- Demo: Creating Models and Migration Files 5m
- Creating a Standalone Migration File 1m
- Configuring a Database with Migrations 3m
- Making a Model 'Fillable' 1m
- Managing Migrations 1m
- Demo: Writing Migrations and INSERTing Data 5m
- Understanding Laravel's Assumptions 4m
- Introduction 1m
- Saving Data to the Database (INSERT) 1m
- Fetching Data from the Database (SELECT) 5m
- Demo: Fetching Data from the Database 7m
- Updating Data in the Database (UPDATE) 2m
- Demo: Updating Data in the Database 3m
- Deleting Data from the Database (DELETE) 1m
- Demo: Deleting Data from the Database 3m
- An Alternative to 'Hard Deleting' 1m
- Understanding the Laravel Query Builder 3m
- Demo: The Laravel Query Builder 4m
- Seeding the Database 1m
- Demo: Seeding the Database 4m
- Wrap Up 1m
- Introdution 1m
- Understanding Data Relationships 2m
- How to Define One-to-Many Relationships 3m
- Understanding Laravel's Assumptions 1m
- Demo: Defining One-to-Many Relationships 3m
- How to Query One-to-Many Relationships 3m
- Demo: Querying One-to-Many Relationships 5m
- Lazy Loading vs Eager Loading 3m
- How to Define Many-to-Many Relationships 3m
- Demo: Defining Many-to-Many Relationships 4m
- How to Query Many-to-Many Relationships 2m
- Demo: Querying Many-to-Many Relationships 7m
- Introduction 1m
- Understanding Accessors and Mutators 3m
- Defining a Mutator 2m
- Demo: Using Mutators 3m
- Defining an Accessor 1m
- Demo: Using Accessors 2m
- The Idea Behind Pagination 1m
- Implementing Pagination 2m
- Demo: Using Pagination 3m
- Customizing Laravel's Pagination 3m
- Diving Deeper into Pagination 1m
- Wrap Up 2m