Popular LaraBrain Tips

Creating Maintainable Links with the Laravel LaravelCollective/HTML Package

Creating dynamic URLs by escaping to and from HTML is annoying. There is a better way.

Committed to the LaraBrain by: wjgilmore at October 21, 2015 12:19 pm

Blade Routing

Creating Sluggable URLs Using the Laravel Framework

Creating user- and SEO-friendly URLs is easy thanks to the eloquent-sluggable package.

Committed to the LaraBrain by: wjgilmore at October 14, 2015 11:04 pm

Routing

Arranging Many Laravel Routes in Separate Files

Make it easy to organize and find your Route declarations for different parts of your site

Committed to the LaraBrain by: kohenkatz at October 27, 2015 1:11 am

Routing

Removing Logic From Your Laravel Views Using View Partials

Learn how to dramatically reduce logic in your views using view partials

Committed to the LaraBrain by: wjgilmore at October 19, 2015 3:11 pm

Blade Views

Formatting Timestamps in Laravel

Laravel provides an easy but little-mentioned way to format timestamps

Committed to the LaraBrain by: wjgilmore at November 11, 2015 2:27 pm

Database Views

Debugging output with Laravel Debugbar

Easily view log messages in the browser alongside your web application

Committed to the LaraBrain by: wjgilmore at October 16, 2015 2:44 pm

Debugging Logging

Configuring Mailgun for Laravel

Configuring Mailgun for Laravel applications is easy but is best explained with an example

Committed to the LaraBrain by: wjgilmore at October 19, 2015 1:56 pm

Mail

Creating a Resourceful Delete Button in Laravel

Learn how to create a delete button for removing records the RESTful way

Committed to the LaraBrain by: wjgilmore at October 19, 2015 2:33 pm

Forms Routing Views

Laravel's wide wide world of (personal) choice

How to query a database

Committed to the LaraBrain by: harrisoftware at October 22, 2015 3:07 am

Database Eloquent Relationships

Running a Single PHPUnit Test

As your PHPUnit test suite grows you'll often only want to execute one or a few tests. Here's how.

Committed to the LaraBrain by: wjgilmore at October 28, 2015 11:06 am

Debugging Testing

Sanitizing Form Data Before Validating in a Laravel 5 Form Request

Sometimes submitted data requires a bit of additional work prior to validation

Committed to the LaraBrain by: wjgilmore at December 8, 2015 7:22 pm

Forms

Converting a Laravel Collection to an Array

This tip shows you how to convert a Laravel collection into an array

Committed to the LaraBrain by: wjgilmore at January 25, 2016 4:22 pm

Database Eloquent Forms

Selectively Enabling Middleware in a Laravel Lumen Unit Test

It's typical to disable middleware when running tests, but what if you want to selectively enable it?

Committed to the LaraBrain by: wjgilmore at July 28, 2016 4:37 pm

Testing