menu
AWESOME! NICE LOVED LOL FUNNY FAIL! OMG! EW!

Laravel Tips & Tricks


Laravel Tips & Tricks

Using Artisan Command in a Controller, route or blade t...

Sometimes it is useful to execute an artisan command from within a controll...

  • Jim

Specified Key Too Long Fix

Fix the annoying migration error "Syntax error or access violation: 1071 Sp...

  • Jim

Splitting Routes in Lavavel 8

If you have a complex site web.php can soon become an untameable beast.

  • Jim

Multiple WHERE

There is an easy way of doing multiple "where" with eloquent

  • Jim

Model boot() method

There is a magical place called boot() in an Eloquent model where you can o...

  • Jim

XorY methods

Eloquent has quite a few functions that combine two methods, like “please d...

  • Jim

Increments and Decrements

Useful tip

  • Jim

Virtual Fields in a Model

Something I am often asked is can you have a virtual field in a model. Well...

  • Jim

A Whole Host of Helpers Easily

When I first came to Laravel I came across a really easy trick

  • Jim

Breaking up the web.php file

This is a file that can easily become very large and difficult to manage

  • Jim