Search the LaraBrain
The Latest LaraBrain Tips

Automatic pluralization with str_plural() helper

Keep your views clean with automatic pluralization using the str_plural() helper

Committed to the LaraBrain by: neovive at November 11, 2015 4:15 pm

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

Dropping Multiple Columns in a Single Line of Laravel Migration

Save yourself a few keystrokes by dropping multiple columns in a single dropColumn statement

Committed to the LaraBrain by: wjgilmore at November 5, 2015 11:21 am

Database

Setting a Laravel Select Box Default Value

Populating a Laravel select box is easy, but how do you set a default value?

Committed to the LaraBrain by: wjgilmore at November 4, 2015 8:48 pm

Blade Forms

Viewing the Response Within a Laravel PHPUnit Test

Learn how to view an integration test's response

Committed to the LaraBrain by: wjgilmore at November 4, 2015 5:55 pm

Testing

An Overview of Laravel's Where Clause Variations

Laravel's Eloquent ORM offers plenty of options when it comes to retrieving database data

Committed to the LaraBrain by: wjgilmore at November 3, 2015 6:20 pm

Database Eloquent

Authenticating a Laravel User for a Single Request

APIs need to authenticate an account for just a single request/response cycle. This tip shows how it is done.

Committed to the LaraBrain by: wjgilmore at October 29, 2015 6:35 pm

Authentication

Renaming a Column Using Laravel Migrations

Renaming columns using Laravel migrations is easy thanks to memorable syntax

Committed to the LaraBrain by: wjgilmore at October 29, 2015 11:37 am

Database

Organizing Your Laravel Views

Bring some sanity to your view directory chaos

Committed to the LaraBrain by: wjgilmore at October 28, 2015 11:23 pm

Views

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

Automatically Compiling Your Sass CSS with Laravel Elixir

Learn how to quickly recompile your Laravel project Sass CSS without manual intervention

Committed to the LaraBrain by: wjgilmore at October 27, 2015 7:49 pm

CSS Elixir

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

Configuring a Test Database Using Laravel and PHPUnit

Configure a test database in the most flexible fashion using Laravel and PHPUnit

Committed to the LaraBrain by: wjgilmore at October 26, 2015 7:32 pm

Database Testing

Generating URLs using Route Aliases and the LaravelCollective/HTML Package

Route aliases are useful for easily updating site URLs should the structure change

Committed to the LaraBrain by: wjgilmore at October 26, 2015 6:11 pm

Blade CSS Views

Include a sub template view in main view blade file

In main view blade file use @include blade function to include sub template file

Committed to the LaraBrain by: subrata at October 25, 2015 5:35 pm

Blade Templates Views

Forcing Laravel generated URLs to https:

If you are developing on OSX El Capitan, apache has been configured to use ReverseProxy. This causes $request->secure() to always return false.

Committed to the LaraBrain by: harrisoftware at October 24, 2015 5:58 pm

Deployment Routing

Automatically Running PHPUnit Tests with Laravel Elixir

Save yourself the hassle of constantly returning to the terminal when writing PHPUnit tests

Committed to the LaraBrain by: wjgilmore at October 23, 2015 1:37 pm

Elixir Testing

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

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

Password Protecting a Laravel Site Using .htaccess

Password protecting a Laravel site is easy using a simple server utility

Committed to the LaraBrain by: wjgilmore at October 20, 2015 1:14 pm

Authentication Deployment