mphpmaster/laravel-dev-helpers

Laravel helpers for quick development

1.1.0 2024-04-10 01:31 UTC

This package is auto-updated.

Last update: 2024-04-10 01:32:10 UTC


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 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.