Download the PHP package riipandi/laravel-helpers without Composer
On this page you can find all versions of the php package riipandi/laravel-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download riipandi/laravel-helpers
More information about riipandi/laravel-helpers
Files in riipandi/laravel-helpers
Package laravel-helpers
Short Description A collection of awesome helpful functions for Laravel
License MIT
Homepage https://github.com/riipandi/laravel-helpers
Informations about the package laravel-helpers
A collection of awesome helpful functions for Laravel
Originally taken from https://github.com/calebporzio/awesome-helpers. Thanks Caleb.
Installation
Helpers
carbon
Shortcut for: new Carbon
or Carbon::parse()
chain
Makes an ordinary object chainable.
connection
Run callback under a different database connection.
dump_sql
Returns sql query with bindings data.
faker
Shortcut for: $faker = Faker\Factory::create()
user
A shortcut for auth()->user()
money
stopwatch
Returns the amount of time (in seconds) the provided callback took to execute. Useful for debugging and profiling.
str_between
str_extract
Returns capture groups contained in the provided regex pattern.
str_match
Checks the provided string against the provided regex pattern.
str_validate
A simple way to use validate a string using Laravel's built-in validation system.
str_wrap
swap
This function swaps the values of two variables.
tinker
Kind of like dd()
, but will open an artisan tinker
terminal session with the variables you passed in,
so you can play around.
License
This package is open-sourced software licensed under the MIT license.