Download the PHP package vanchelo/laravel-custom-responses without Composer
On this page you can find all versions of the php package vanchelo/laravel-custom-responses. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vanchelo/laravel-custom-responses
More information about vanchelo/laravel-custom-responses
Files in vanchelo/laravel-custom-responses
Download vanchelo/laravel-custom-responses
More information about vanchelo/laravel-custom-responses
Files in vanchelo/laravel-custom-responses
Vendor vanchelo
Package laravel-custom-responses
Short Description Laravel Custom Responses
License GPLv2
Homepage https://github.com/vanchelo/Laravel-Custom-Responses
Package laravel-custom-responses
Short Description Laravel Custom Responses
License GPLv2
Homepage https://github.com/vanchelo/Laravel-Custom-Responses
Please rate this library. Is it a good library?
Informations about the package laravel-custom-responses
Laravel Custom Responses
Install
Require this package with composer:
After updating composer, add the ServiceProvider to the providers array in app/config/app.php
Create responses
folder in app/views
and three blade templates:
defult.blade.php
, 403.blade.php
, 404.blade.php
How to use
In controller:
Create you own custom response
For example we will create custom response for 401 (Unauthorized) status code.
-
Create class and put it on your app folder
-
Create blade template
401.blade.php
and put it onapp/views/responses
-
Put this code in
app/start/gobal.php
: - That's all
All versions of laravel-custom-responses with dependencies
PHP Build Version
Package Version
The package vanchelo/laravel-custom-responses contains the following files
Loading the files please wait ....