PHP Classes

Laravel Magic: Helper controller, request, and model classes

Recommend this page to a friend!
  Info   View files Example   View files View files (30)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-04-13 (5 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 24 All time: 10,686 This week: 151Up
Version License PHP version Categories
laravel_magic 1.0Free for non-comm...5PHP 5, Libraries, Design Patterns
Description Author

This package provides Laravel helper controller, request, and model classes.

It comes with several classes that provide useful functionality to improve applications based on the Laravel framework.

Currently, it provides:

- An abstract controller that can:

* Send HTTP responses in JSON format using a list of collection items

* Display a listing of information from a resource

* Show the information of a resource item

* Remove a given resource item from storage

* Update a resource with new information values from the current request

* Store a new resource object


- A form processing request handler that can:

* Prepare the form for validation

* Check if the current user has permissions to perform the operation associated with the form

* Get the form validation rules


- An abstract model that can:

* Determine if a given relationship method exists.


- Middleware classes that can:

* Force that the current request only accepts input data in JSON format

* Process request security tokens that use the JSON Web Token (JWT)

Picture of Dominique Vienne
Name: Dominique Vienne <contact>
Classes: 3 packages by
Country: Switzerland Switzerland
Age: ???
All time rank: 394831 in Switzerland Switzerland
Week rank: 516 Up4 in Switzerland Switzerland Up
Innovation award
Innovation award
Nominee: 1x

Details

Laravel helpers classes such as Controllers / Models / Requests

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us

<img src="https://github-ads.s3.eu-central-1.amazonaws.com/laravel_magic.jpg?t=1" width="419px" />

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package via composer:

composer require dominiquevienne/laravel-magic

You can publish and run the migrations with:

php artisan vendor:publish --tag="laravel-magic-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="laravel-magic-config"

This is the contents of the published config file:

return [
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-magic-views"

Usage

$laravelMagic = new Dominiquevienne\LaravelMagic();
echo $laravelMagic->echoPhrase('Hello, Dominiquevienne!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

  Files folder image Files  
File Role Description
Files folder image.github (1 file, 2 directories)
Files folder imageconfig (1 file)
Files folder imagedatabase (2 directories)
Files folder imagesrc (2 files, 7 directories)
Files folder imagetests (3 files)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE.md Lic. License text
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .github  
File Role Description
Files folder imageISSUE_TEMPLATE (1 file)
Files folder imageworkflows (2 files)
  Accessible without login Plain text file dependabot.yml Data Auxiliary data

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

  Files folder image Files  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file dependabot-auto-merge.yml Data Auxiliary data
  Accessible without login Plain text file run-tests.yml Data Auxiliary data

  Files folder image Files  /  config  
File Role Description
  Accessible without login Plain text file magic.php Aux. Auxiliary script

  Files folder image Files  /  database  
File Role Description
Files folder imagefactories (1 file)
Files folder imagemigrations (1 file)

  Files folder image Files  /  database  /  factories  
File Role Description
  Accessible without login Plain text file ModelFactory.php Aux. Auxiliary script

  Files folder image Files  /  database  /  migrations  
File Role Description
  Plain text file create_magic_table.php.stub Class Class source

  Files folder image Files  /  src  
File Role Description
Files folder imageCommands (1 file)
Files folder imageExceptions (4 files)
Files folder imageFacades (1 file)
Files folder imageHttp (2 directories)
Files folder imageMiddleware (2 files)
Files folder imageModels (1 file)
Files folder imageTraits (1 file)
  Plain text file LaravelMagic.php Class Class source
  Plain text file LaravelMagicServiceProvider.php Class Class source

  Files folder image Files  /  src  /  Commands  
File Role Description
  Plain text file LaravelMagicCommand.php Class Class source

  Files folder image Files  /  src  /  Exceptions  
File Role Description
  Plain text file ControllerAutomationException.php Class Class source
  Plain text file EnvException.php Class Class source
  Plain text file PublicationStatusException.php Class Class source
  Plain text file StatusUnknownException.php Class Class source

  Files folder image Files  /  src  /  Facades  
File Role Description
  Plain text file LaravelMagic.php Class Class source

  Files folder image Files  /  src  /  Http  
File Role Description
Files folder imageControllers (1 file)
Files folder imageRequests (1 file)

  Files folder image Files  /  src  /  Http  /  Controllers  
File Role Description
  Plain text file AbstractController.php Class Class source

  Files folder image Files  /  src  /  Http  /  Requests  
File Role Description
  Plain text file BootstrapRequest.php Class Class source

  Files folder image Files  /  src  /  Middleware  
File Role Description
  Plain text file ForceJson.php Class Class source
  Plain text file VerifyJwtToken.php Class Class source

  Files folder image Files  /  src  /  Models  
File Role Description
  Plain text file AbstractModel.php Class Class source

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

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file ExampleTest.php Example Example script
  Plain text file Pest.php Class Class source
  Plain text file TestCase.php Class Class source

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