Introduction to Collections & Project Setup - Mastering Eloquent & Collection Methods
In this tutorial, we’re going to cover collections in Laravel. We’re going to cover the power of collections, the difference between collections and arrays, and when collections are useful. Then, we’re going to set up a new Laravel project, setting up database connections, and creating a migration, model, and factory to generate dummy data. The tutorial also includes a brief introduction to Tinkerwell, a PHP REPL tool, and provides an outline of the topics to be covered in the next tutorial.
📚 New Udemy Course
If you're looking to level up your Laravel skills? My new course "Mastering Laravel 10 Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: https://www.udemy.com/course/mastering-laravel-10-query-builder-eloquent-relationships/?referralCode=C784C3DB5B8925207FCB
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews, or a coaching session for Laravel: https://calendly.com/codewithdary
💌 Newsletter
Sign up for my free weekly email newsletter: https://newsletter.codewithdary.com/
🔥 Resources
- Twitter: https://twitter.com/codewithdary
- Instagram: https://www.instagram.com/codewithdary
- Blog: https://blog.codewithdary.com
- Patreon: https://www.patreon.com/user?u=30307830
- GitHub: https://github.com/codewithdary
- TikTok: https://www.tiktok.com/@codewithdary
📋 Table of Content
00:00 - Introduction
00:19 - What Are Collections?
02:04 - Database Setup
02:39 - Defining Our Migration & Model
06:39 - Defining Our ArticleFactory
10:59 - How to Perform What I Will Be Doing in Tinkerwell
12:35 - Outro