Showing 10 of 1,280 results.

Laravel Application Helper: storage_path

storage_path($path = '') The storage_path will return the path to the storage directory. It can also be used to construct paths relative to the storage directory if a $path is supplied. The following examples will assume that the Laravel...

Laravel and Kint Debugging

So, a while ago I wrote this post about working with Laravel and Kint. It works, but it can be a pain to manage through composer updates (losing your lock file, whatever happens), Laravel upgrades, it doesn't matter. The problem is that sometimes...

Laravel Application Helper: config_path

config_path($path = '') The config_path function can be used to retrieve the path the config directory. It can also be used to construct paths relative to the configuration directory by supplying a $path . The following examples will assume that...

Laravel Application Helper: public_path

public_path($path = '') The public_path will return the path to the public directory. It can also be used to construct paths relative to the public directory if a $path is supplied. The following examples will assume that the Laravel application...

Laravel String Helper Functions

…provided data types. Operations such as checking if a particular string contains a substring, or if a string starts or ends with another string are not impossible, nor are they difficult, they just appear over-complicated or obscure. Luckily for...