Laravel Helpers Classes: General-purpose classes, traits and functions

Recommend this page to a friend!
  Info   View files Documentation   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-06-24 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 18 All time: 10,366 This week: 259Up
Version License PHP version Categories
laravel-helpers 1.0MIT/X Consortium ...5PHP 5, Debug, Libraries, Validation, S..., D...
Description Author

This package provides general-purpose classes, traits, and functions.

It comes with a few useful components that can be reused in any Laravel based application. Currently, it provides:

- Trait to set a password attribute of a model class to a hashed value
- Trait to set custom model class attributes
- Trait to set a UUID attribute of a model class
- Exception handler class that can throw message values that identify the location of the source code file that triggered the exception in the application production environment
- Form request error handler class that returns a JSON data structure or an error string and redirect the request, depending on whether the current request requires a JSON formatted response

Picture of Moamen Eltouny
  Performance   Level  
Name: Moamen Eltouny <contact>
Classes: 32 packages by
Country: Egypt Egypt
Innovation award
Innovation award
Nominee: 17x

Details

Laravel Helpers

use Pharaonic\Laravel\Helpers\...

Traits

HasCustomAttribtues (Getter, Setter)
HasHashedPassword (User Creating, Updating password)
HasUuidKey (id > UUID)

Classes

ExceptionHandler
FormRequest

Functions

function json(bool $success, string $message = null, $data = null, $extra = [], array $errors = null, $status = 200, array $headers = null, $options = 0)
function validate(Request $request, array $rules, string $defaultMessage = null, array $messages = null, array $fields = null, bool $redirectToRoute = false, string $redirectTo = null, array $redirectParams = null)
  Files folder image Files  
File Role Description
Files folder image.github (1 file)
Files folder imagesrc (1 file, 2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .github  
File Role Description
  Accessible without login Plain text file FUNDING.yml Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageClasses (2 files)
Files folder imageTraits (3 files)
  Accessible without login Plain text file Helpers.php Example Example script

  Files folder image Files  /  src  /  Classes  
File Role Description
  Plain text file ExceptionHandler.php Class Class source
  Plain text file FormRequest.php Class Class source

  Files folder image Files  /  src  /  Traits  
File Role Description
  Plain text file HasCustomAttributes.php Class Class source
  Plain text file HasHashedPassword.php Class Class source
  Plain text file HasUuidKey.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:18
This week:0
All time:10,366
This week:259Up
For more information send a message to info at phpclasses dot org.