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: 222
Created: 2022-02-01
License: Open Publication License
100 Laravel Quick Tips

Others Laravel Tutorials

Laravel Tutorial pdf

Laravel 5 Official Documentation

Getting started with Laravel

Learning Laravel by examples

Download Tutorial Laravel 5

Others related eBooks about 100 Laravel Quick Tips

Android Application Development for the Intel Platform

The number of Android devices running on Intel processors has increased since Intel and Go..., download free Android tutorial in PDF (520 pages) created by ....

Essential Go

This book written to provide clear and concise explanation of topics for programmers both starting to learn the Go 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....

Word 2010 advanced part 1

Advanced tutorial about Microsoft Word 2010, download free course for beginners in PDF....

Programming Windows Store Apps with HTML, CSS, and JavaScript

Download free course Programming Windows Store Apps with HTML, CSS, and JavaScript, pdf file on 1311 pages by Kraig Brockschmidt....

First Semester in Numerical Analysis with Julia

This book presents the theory and methods, together with the implementation of the algorithms using the Julia programming language (version 1.1.0). The book covers computer arithmetic, root-finding, numerical quadrature and differentiation, and approximation theory. ...

The Rook's Guide to C++

This Creative Commons-licensed textbook written by Norwich University students and faculty aims to provide an introduction to the C++ programming language. The PDF and original typesetting materials are available if you are interested in having a free digital copy of your own or if you wish to contr...

Python re(gex)?

Download free course Python re(gex)?, pdf file on 71 pages by Sundeep Agarwal....

Android Programming Tutorials

This book shows you what you can do with Android, through a series of 40 individual exercises. It gives you hands-on instruction in how to build sophisticated Android applications, using many of the technologies outlined in CommonsWare's other Android books. ...

Guide to C++ Programming

This tutorial provides an introduction to C++ programming language in PDF. This guide will help you to learn how to write a simple computer programs in C++ with somes exercises....

Getting started with Swift language

Download free Swift tutorial course in PDF, training file in 60 chapters and 353 pages. Free unaffiliated ebook created from Stack OverFlow contributor....