Coder Social home page Coder Social logo

httpstatus-l4-package's Introduction

SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version License

HttpStatus

HttpStatus is a small package that adds pretty error pages.

It listens at App::error() and App::down() to provide error pages. Note that these error pages will only show when debug is set to true.

Installation

Add nwidart/httpstatus as a requirement to composer.json:

{
    ...
    "require": {
        ...
        "nwidart/httpstatus": "dev-master"
    },
}

Update composer:

$ php composer.phar update

Add 'Nwidart\Httpstatus\HttpstatusServiceProvider' to your app/config/app.php file in the providers array.

(Optional) Publish package config:

$ php artisan config:publish nwidart/httpstatus

Configuration

After the configuration file has been published you can return your own error views. You can provide a view for each error:

return array(
    'views' => array(
        '403' => 'errors.your403',
        '404' => 'errors.your404',
        '500' => 'errors.your500',
        '503' => 'errors.your503',
    )
);

Credits

It's inspired by Traffic-Signs

httpstatus-l4-package's People

Contributors

nwidart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

andremyid amooati

httpstatus-l4-package's Issues

How to use

how to use this, Im a beginner on laravel 4.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.