Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ AWS Certified Developer - Associate
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Personal Development Mindfulness Personal Transformation Meditation Life Purpose Coaching Neuroscience
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Big Data
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
2020-12-10 07:43:56
30-Day Money-Back Guarantee

This course includes:

  • 8.5 hours on-demand video
  • 96 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Assignments
Development Web Development Laravel

Laravel Database Queries - From Beginner to Super Advanced

Master Laravel Query Builder and Eloquent ORM - the Most Important Things when building any Dynamic Web App in Laravel
Rating: 4.7 out of 54.7 (50 ratings)
390 students
Created by Symfony, Laravel & PHPUnit Stuff
Last updated 7/2020
English
English [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • You Will Learn the Most Important and Most Difficult Part of Laravel - Querying Databases
  • You will be the expert at querying databases using Laravel PHP framework
  • You will learn and practice Laravel Query Builder
  • You will learn and practice Laravel Eloquent ORM
  • You will learn and practice Laravel raw database queries
  • You will learn when to use each type of querying databases in Laravel
  • You will learn how to optimize your database queries
  • You will design and query databases for blog and hotel booking system

Course content

10 sections • 102 lectures • 8h 15m total length

  • Preview02:16
  • Preview02:51
  • Preview02:27
  • Preview03:57
  • How the course videos & resources look like
    02:05

  • Install Laravel and configure database settings
    14:43
  • Making raw SQL queries on DB facade
    09:11
  • Query events and transactions
    05:36
  • About database migrations
    04:13
  • Factories – generate dummy data for database
    02:52
  • Seeders – write data to the database
    02:06

  • Getting results from the database: SELECT
    07:16
  • WHERE sql clause – part 1
    08:18
  • WHERE sql clause – part 2
    09:36
  • WHERE sql clause – part 3
    05:12
  • Pagination – show database results using subpages
    02:53
  • Full text search query
    05:40
  • Raw sql expressions
    06:08
  • Sql ORDER, GROUP, LIMIT, OFFSET clauses
    05:03
  • Conditional clauses & chunking results
    06:51
  • JOIN sql clauses: from simple to advanced queries
    19:35
  • UNION select clause
    06:42
  • INSERT statement
    01:38
  • UPDATE statement
    03:19
  • DELETE statement
    02:28
  • Pessimistic locking and debugging
    02:18

  • How to define and configure models. Optimized select queries on models
    13:53
  • Get single models and aggregates like count(), etc. Query scopes
    06:14
  • Collections & additional operations on Eloquent results
    03:35
  • Insert operations on models
    02:48
  • Update operations on models
    02:40
  • Delete operations on models
    04:59
  • Preview03:04
  • Accessors – manipulate model properties when accessing them
    03:00
  • Mutators - manipulate model properties when saving them
    01:46
  • Cast attributes to other data format at query runtime
    03:31

  • One To One database relationship
    09:04
  • One To Many database relationship
    01:21
  • Many To Many database relationship
    11:35
  • Has One Through database relationship
    04:54
  • Has Many Through database relationship
    05:11
  • One To One Polymorphic database relationship
    06:31
  • One To Many Polymorphic database relationship
    03:46
  • Preview06:28
  • Querying and counting database relationships (sql select)
    08:53
  • Querying and counting polymorphic database relationships (sql select)
    06:08
  • Insert/update/delete related models
    11:53
  • Create custom model for pivot table for many to many relationship
    04:57
  • Lazy and eager loading of models
    11:21

  • Compare performance of three types of Laravel database queries and when to use t
    11:59
  • When to use raw database expressions in Laravel
    05:44

  • Install PhpRedis extension and Redis server
    07:32
  • Redis database usage using Laravel
    05:53

  • Serialize eloquent model to array or json
    02:26
  • Resources and resource collections
    08:31
  • Include related resources (models) in JSON response
    06:53
  • Paginate JSON response and additional metadata of the response
    01:50

  • Install and configure Laravel 7 and configure database connection
    02:48
  • Design database and create Post model and One To Many relationship
    06:32
  • Create Comment model and One To Many relationship
    05:22
  • Create Category model and One To Many relationship
    04:40
  • Create Tag model and Many To Many relationship with Post model
    03:57
  • Database queries for showing data on the main page – part 1
    05:31
  • Database queries for showing data on the main page – part 2
    04:33
  • Database query for showing data on the main page – part 3
    03:25
  • Queries for one post only, tag and category with the list of posts
    02:31
  • Search for blog posts in standard way – LIKE operator
    01:36
  • Search for blog posts using FULLTEXT index
    03:27
  • Sort database results by columns from the same table. Paginate results
    03:16
  • Sort (order) by related models
    02:27
  • Refactor the code from the previous step
    01:24
  • Filter blog post results by a user
    01:23
  • Filter blog post results by comments
    02:55
  • Create plain indexes on columns. Use raw sql on DB facade
    02:43
  • Create, update, delete blog post and post comment – write eloquent operations
    04:31
  • Update blog post’s related models – category and tag
    02:00

  • Install and configure Laravel 7 and configure database connection
    02:36
  • Design database. Create first models, factories and seeders
    07:08
  • Create Hotel model and seed database with dummy data
    03:07
  • Create Room model and seed database with dummy data
    03:29
  • Create RoomType model and seed database with dummy data
    04:45
  • Create seeder for User model and populate database with dummy user data
    01:21
  • Create Reservation model and many to many relationship with Room model
    04:29
  • Create pivot (intermediate) table for Reservation and Room models
    04:27
  • Get reservation items that match date range from the database. Paginate results
    13:47
  • Eloquent style query to get date based matching rooms
    04:34
  • Search available rooms by city_id column of related table
    08:05
  • Join additional model and prevent overbooking
    04:13
  • Sort collection of rooms
    02:18
  • Filter collection of rooms by room size
    01:32
  • Create indexes on columns to increase performance while searching for available
    02:27
  • Make reservation. Use database transaction. Improve the rooms searching query
    05:25
  • Test searching for rooms. Improve the query
    01:29
  • Get all reservations made by the user
    02:45
  • Get all reservations belonging to hotel’s owner
    03:03
  • Order rooms by number of reservations and order reservations by nights count
    02:22
  • Example queries with Eloquent and Query Builder – count related models and group
    03:42
  • Order users by reservations table
    01:31
  • Create new hotel using Eloquent
    00:58
  • Create a new room and a room type using Eloquent
    01:57
  • Update and delete using Eloquent
    02:26
  • Background cron/queue task – delete non paid reservations
    02:40
  • Quiz
    11 questions
  • Practice time - create, normalize and query simple database for e-commerce
    1 question

Requirements

  • PHP and object oriented programming
  • Laravel at basic level
  • Composer installed
  • Server environment installed (like Xampp)
  • Internet connection

Description

Still not comfortable with Laravel PHP Framework?


Design and query database is probably the most difficult part of building database driven web applications. There are a lot of Laravel courses out there, but many students still feel like they are not good Laravel developers after completing this courses. One of the answer is, that courses do not teach database part enough. This brand new course fills this gap. This course has more than 100 lectures and all of them are only about creating and querying databases in Laravel framework.


Welcome to the very comprehensive Laravel Databases course. This course will teach you all you need to know to become a master at querying relational databases using Laravel framework. This course is the excellent training and is a must Laravel resource with lots of practical exercises about Laravel Query Builder and Eloquent ORM. After completing this course, you will be able to design robust Laravel database applications and query its databases.


This course consists of three main parts divided into 10 sections:

1. Theory with lots of practical and understandable examples about Laravel Query Builder and Eloquent ORM

2. Design and query blog database schema

3. Design and query hotel booking system database schema

(see curriculum for more details)


During the course, you will also learn about creating APIs and query its databases. You will learn a lot of very useful techniques to query databases very easily, including searching (also full text searching), sorting, filtering and pagination of database results. Also about creating indexes to boost performance of select queries, about creating custom models for pivot tables, query events, database table relationships and many other things (see curriculum).


The most interesting part of this course is to design and query database for hotel booking system (all tables optimized to third normal form - 3NF).


To better consolidate the acquired knowledge the course includes, in addition to lectures - quizzes, assignments and other practical activities.


***For each lecture that requires coding, there are files resources that you can download and copy & paste, but I encourage you to write code from the screen.***


I promise that you'll be a better Laravel developer after completing this course. And even if for some reason you will not like this course, Udemy always offers you a 30-day money back guarantee. But I doubt that you will not like it. I am 100% sure that you will be happy after completing this Laravel course!

Who this course is for:

  • Everyone who wants to master database queries using Laravel PHP framework
  • Everyone who feels uncomfortable when creating database driven web apps in Laravel
  • Everyone who wants to practice database queries in Laravel by querying blog and booking system databases
  • Everyone who wants to learn how to create API's in Laravel framework

Instructor

Symfony, Laravel & PHPUnit Stuff
PHP Web Development Courses
Symfony, Laravel & PHPUnit Stuff
  • 4.2 Instructor Rating
  • 1,454 Reviews
  • 21,077 Students
  • 9 Courses

My name is Robert. I am a passionate full-stack web developer with many years of experience in web industry. I have created/participated in many web applications and websites, as well as hybrid mobile applications, mainly for interactive agencies and individuals. I have extensive development experience in the PHP technology including strong architecture and coding skills. I love to work on complex and business-critical tasks.

Here on Udemy I publish premium courses/tutorials on how to build modern web applications. My methodology is teaching through engineering and showing non-standard solutions. Currently I focus on PHP, Symfony, Laravel, web and hybrid mobile applications.

There is no the only right and the best technology for me. And the reason for that is very simple: programming is thinking, not a specific programming language or tool. The same problem can be solved using many languages or tools with the same effect. 

Since a short time ago, I've also been sharing my knowledge and experience by writing on a blog and creating online courses.

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.