Looking to hire Laravel developers? Try LaraJobs

laravel-dev-helpers maintained by mphpmaster

Description
Laravel helpers for quick development
Author
Last update
2024/04/10 03:31 (dev-main)
License
Links
Downloads
3

Comments
comments powered by Disqus

Laravel Dev Helpers

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 or dump.
  • 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 to config/app.php
  • Add dev_mode key to config/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.