mphpmaster / laravel-dev-helpers
Laravel helpers for quick development
1.1.0
2024-04-10 01:31 UTC
Requires
- php: >=8.1
- illuminate/support: >=9
- laravel/framework: >=9
- laravel/helpers: ^1.5
- symfony/var-dumper: ^6.0
README
Laravel helpers for quick development.
Part of mphpmaster/laravel-helpers:^3
Dependencies:
- php >=8.1 REQUIRED IN YOUR PROJECT
- laravel >=9 REQUIRED IN YOUR PROJECT
- illuminate/support >=9 composer will install it automaticly
- symfony/var-dumper ^6.0 composer will install it automaticly
- laravel/helpers ^1.5 composer will install it automaticly
Installation:
composer require mphpmaster/laravel-dev-helpers
Content:
- Add file and line number when using
dd
ordump
. - Functions:
hasDeveloper
getDeveloper
isDeveloper
isDeveloperMode
returnCallable
returnClosure
returnArgs
returnString
returnArray
returnCollect
returnNull
returnTrue
returnFalse
isCommandExists
getSql
unauthenticated
throwUnauthenticated
logout
login
isLoggedIn
isGuest
notifyWhenTerminating
real_path
fromCallable
getDumpOutput
_gcm
_gc
_ce
bindTo
getClassPropertyValue
getMethodName
To add:
- Add
developer
key toconfig/app.php
- Add
dev_mode
key toconfig/app.php
// example: return [ // ... 'dev_mode' => env('DEV_MODE', false), 'developer' => env('DEVELOPER', 'safadi'), // ... ];
ToDo:
- ...
Inspired by laravel/helpers.
License
The Laravel framework is open-sourced software licensed under the MIT license.
These Helpers are open-sourced software licensed under the MIT license.