Latest Laravel Tips

Automatic pluralization with str_plural() helper

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

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

Views

Formatting Timestamps in Laravel

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

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

Database Views

Dropping Multiple Columns in a Single Line of Laravel Migration

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

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

Database

Setting a Laravel Select Box Default Value

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

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

Blade Forms

Viewing the Response Within a Laravel PHPUnit Test

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

Learn how to view an integration test's response

Testing

An Overview of Laravel's Where Clause Variations

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

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

Database Eloquent

Authenticating a Laravel User for a Single Request

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

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

Authentication

Renaming a Column Using Laravel Migrations

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

Renaming columns using Laravel migrations is easy thanks to memorable syntax

Database

Organizing Your Laravel Views

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

Bring some sanity to your view directory chaos

Views

Running a Single PHPUnit Test

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

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

Debugging Testing

Automatically Compiling Your Sass CSS with Laravel Elixir

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

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

CSS Elixir

Arranging Many Laravel Routes in Separate Files

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

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

Routing

Configuring a Test Database Using Laravel and PHPUnit

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

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

Database Testing

Generating URLs using Route Aliases and the LaravelCollective/HTML Package

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

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

Blade CSS Views

Include a sub template view in main view blade file

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

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

Blade Templates Views

Forcing Laravel generated URLs to https:

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

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

Deployment Routing

Automatically Running PHPUnit Tests with Laravel Elixir

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

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

Elixir Testing

Laravel's wide wide world of (personal) choice

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

How to query a database

Database Eloquent Relationships

Creating Maintainable Links with the Laravel LaravelCollective/HTML Package

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

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

Blade Routing

Password Protecting a Laravel Site Using .htaccess

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

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

Authentication Deployment