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
Pages41
Size0.3 MB
File typePDF
Downloads334
Created2022-02-01
LicenseOpen Publication License
Cover of 100 Laravel Quick Tips

Download

  • Struts Framework ,Overview Installation and Setup

    Free training material course for Framework Struts ,this pdf tutorial will shows you an overview of this famous Java Framework ,how to install and use it ....

  • Android on x86

    Download free course Android on x86, pdf file on 375 pages by by Iggy Krajci, Darren Cummings....

  • Algorithmic Problem Solving with Python

    This book uses Python to introduce folks to programming and algorithmic thinking. It is sharply focused on classical algorithms, but it also gives a solid understanding of fundamental algorithmic problem-solving techniques. ...

  • Solving PDEs in Python: The FEniCS Tutorial I

    This book offers a concise and gentle introduction to finite element programming in Python based on the popular FEniCS software library. Using a series of examples, including the Poisson equation, the equations of linear elasticity, the incompressible Navier–Stokes equations, and systems of nonl...

  • HelloWorld Java Program free PDF

    Download free course HelloWorld Java Program free PDF, pdf file on 3 pages by tutorialkart.com....

  • Open Data Structures (in C++)

    Download free course Open Data Structures (in C++), pdf file on 336 pages by Pat Morin....

  • Processing WSDL in Python

    With this tutorial you will learn how to process WSDL in Python language (web services and Python) , free PDF cocument under 11 pages by Mike Olson and Uche Ogbuji ....

  • A Practical Introduction to Python Programming

    This book started out as about 30 pages of notes for students in my introductory programmi..., download free Python tutorial in PDF (263 pages) created by Brian Heinold ....

  • 50 Ways to Avoid Find and Fix ASP.NET Performance Issues

    Download free course 50 Ways to Avoid Find and Fix ASP.NET Performance Issues, pdf file on 50 pages by Red Gate....

  • Download Hibernate Tutorial

    Download free Hibernate Tutorial for Beginners, training course material, a PDF file created by coreservlets.com....