100 Laravel Quick Tips

Download free course 100 Laravel Quick Tips, pdf file on 41 pages by Self-publishing3
Laravel is full of hidden gems, undocumented or less-known features, functions parameters and "hacks". While finding them in work of my team, I decided to compile them into an ebook.
Table of contents
  • Single Action Controllers
  • Unsigned Integer
  • OrderBy on Eloquent relationships
  • Order of Migrations
  • Raw DB Queries: havingRaw()
  • $loop variable in foreach
  • Eloquent where date methods
  • Route group within a group
  • Increments and decrements
  • Does view file exist?
  • No timestamp columns
  • Migration fields with timezones
  • Eloquent has() deeper
  • Database migrations column types
  • Artisan command help
  • Default Timestamp
  • Set logged in user with Observers
  • Soft-deletes: multiple restore
  • Has Many. How many exactly?
  • Image validation
  • Wildcard subdomains
  • Exact Laravel version
  • Testing email into laravel.log
  • Error code Blade pages
  • Factory callbacks
  • Artisan command parameters
  • Preview Mailables
  • Route::view() - Don't create Controllers
  • Blade @auth
  • Model all: columns
  • Localhost in .env
  • What's behind the routes?
  • To Fail or not to Fail
  • Column name change
  • Logging with parameters
  • Default Model
  • Use hasMany to create Many
  • More convenient DD
  • Map query results
  • Custom validation error messages
  • When (NOT) to run "composer update"
  • Two-level $loop variable in Blade
  • Route Model Binding: You can define a key
  • Redirect to Specific Controller Method
  • Did you know about Auth::once()?
  • Eager Loading with Exact Columns
  • Validate dates with "now" or "yesterday" words
  • Touch parent updated_at easily
  • Quickly Navigate from Routes file to Controller
  • Always Check if Relationship Exists
  • Don't Filter by NULL in Collections
  • Default Email Subject in Laravel Notifications
  • Composer: Check for Newer Versions
  • Route Fallback - When no Other Route is Matched
  • Create Your Own Blade Directive
  • Use withCount() to Calculate Child Relationships Records
  • Use groupBy on Collections with Custom Callback Function
  • Blade Directives: IncludeIf, IncludeWhen, IncludeFirst
  • Change Default Timestamp Fields
  • Quick Order by created_at
  • Generate Images with Seeds/Factories
  • Eloquent: Update Parent in One Line
  • Eloquent: Laravel 7+ Foreign Keys
  • Multiple Collection Methods in a Row
  • More Events on User Registration
  • Extra Filter Query on Relationships
  • Send Notifications to Anyone
  • Sub-selects in Laravel Way
  • API Resources: With or Without "data"?
  • API Return "Everything went ok"
  • Automatic Column Value When Creating Records
  • DB Raw Query Calculations Run Faster
  • More than One Scope
  • Hide Some Columns
  • Combine Two "whereHas"
  • Auto-Capitalize Translations
  • Validation Rule with Some Conditions
  • Check if Relationship Method Exists
  • Exact DB Error
  • Route Parameters Validation with RegExp
  • Rate Limiting: Global and for Guests/Users
  • Add Parameters to Routes
  • Check Multiple Permissions at Once
  • Check Auth Quicker
  • No Need to Convert Carbon
  • Soft-Deletes with Query Builder
  • Grouping by First Letter
  • Load Relationships Always, but Dynamically
  • Instead of belongsTo, use hasMany
  • Change Default Validation Messages
  • Validate Images Dimensions
  • Carbon with Only Hours/Minutes
  • Good Old SQL Query
  • Prepare for Validation
  • Rename Pivot Table
  • Similar Relationship but With Condition
  • Never Update the Column
  • Maintenance Mode
  • Find Many
  • Stop on First Validation Error
Pages : 41
Size : 0.3 MB
File type : PDF
Downloads: 198
Created: 2022-02-01
License: Open Publication License
100 Laravel Quick Tips

Others Laravel Tutorials

Laravel Tutorial pdf

Download Tutorial Laravel 5

Learning Laravel by examples

Getting started with Laravel

Laravel 5 Official Documentation

Others related eBooks about 100 Laravel Quick Tips

Python Multithreading free PDF

Download free course Python Multithreading free PDF, pdf file on 6 pages by tutorialkart.com....

Essential Python

This book written to provide clear and concise explanation of topics for programmers both starting to learn the Python programming language as well as those diving in more complex topics. Most examples are linked to online playground that allows you to change the code and re-run it....

DotNet for professionnals

Download free DotNet tutorial course in PDF, training file in 58 chapters and 192 pages. Free unaffiliated ebook created from Stack OverFlow contributor....

Practical C++ programming

This tutorial is devoted to practical C++ programming. It teaches you the mechanics of the language, free training document under 549 designated to all level users....

Introduction to C++ ,Pointers

Here you will learn how to get started with pointers in C++, how to access to the variables and memory, and how to use the pointers and arrays....

Building Skills in Python: A Programmer's Introduction to Python

This book is a complete presentation of the Python language. It is oriented toward learning, which involves accumulating many closely intertwined concepts. In our experience teaching, coaching and doing programming, there is an upper limit on the "clue absorption rate". In order to keep within thi...

Android developement for beginners

Download Android Tutorial in PDF ,free training document for beginner's Android Development ,file under 26 pages by (RNOC)...

Introduction to Programming Using Java

Designed to support an introductory programming course, this book teaches you concepts of problem-solving and object-orientated programming using a fundamentals-first approach. As beginner programmers, you learn critical problem-solving techniques then move on to grasp the key concepts of object-ori...

Raspberry Pi Cookbook for Python Programmers

The Raspberry Pi foundation has been selling their computers since 2012 with the aim of in..., download free Python tutorial in PDF (402 pages) created by ....

Visual Basic .NET Notes for Professionals

Download free course Visual Basic .NET Notes for Professionals, pdf file on 148 pages by Stack Overflow Community....