Showing 10 of 1,280 results.

Laravel Application Helper: base_path

base_path($path = '') The base_path function can be used to retrieve the path to the directory the Laravel application is installed in. It can also be used to construct paths relative to the base path by supplying a $path . The following examples...

Laravel URL Helper Function: secure_asset

secure_asset($path) The secure_asset function will return a URI composed of the application's URI and the given $path . It internally makes a call to the asset (discussed in the Laravel URL Helper Function: asset article) helper function and...

Laravel Array Helper Function: array_fetch

The fetch helper function has been deprecated as of Laravel 5.1 in favor of the pluck helper function. Additionally, the An Extended Example of Retrieving Unique Data Using Laravel Helper Functions article from the original publication provides...

Laravel Fluent Part One: Introduction

This article is part of a two part series covering the Laravel Fluent API. The articles in this series are: Laravel Fluent Part One: Introduction, Laravel Fluent Part Two: The Public API The Illuminate\Support\Fluent class is a useful data type....

Laravel Application Helper: app_path

app_path($path = '') The app_path will return the full path to the Laravel application directory (which is named app by default). The exact value returned by calling app_path is dependent on the specific folder structure where the application is...

Announcement: All Of the Laravel Articles Are Free

Last year I took on an ambitious project titled "Laravel Artisan: An In Depth Coverage of Laravel Features". It was meant to be a comprehensive guide to the Laravel framework. At the point where it became obvious the plug had to be pulled on the...

Laravel Collection Public API: pluck

…mple will demonstrate the usage of the pluck method to retrieve a collection of the product names and versions: 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 // Create a new collection. 6 $ collection = new Collection ( [ 7 [ ' name '...

Filter Search