2017 © Pedro Peláez
 

library traffic-signs

image

rtablada/traffic-signs

  • Monday, July 8, 2013
  • by rtablada
  • Repository
  • 1 Watchers
  • 19 Stars
  • 505 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Traffic Signs

Traffic Signs is a simple Package that aims to add pretty error pages for simple production projects in Laravel 4., (*1)

Traffic Signs simply listens for an error code and then returns a nice view in response with an error message., (*2)

Installation

This package is distributed using Composer. To install this, simply add "rtablada/traffic-signs": "dev-master" to your composer.json., (*3)

Then in your /app/config/app.php file, add 'Rtablada\TrafficSigns\TrafficSignsServiceProvider', to your Service Providers., (*4)

Using Traffic Signs

Traffic Signs works behind the scenes and listens for HTTP Exceptions. To try this out, browse to an unset route and see a new 404 page., (*5)

I am working to make Traffic Signs more flexible and stronger., (*6)

Configuration

You can further configure by publishing the config using php artisan config:publish rtablada/traffic-signs., (*7)

To change the messages for different error codes by modifying key value pages., (*8)

You can set a custom error view by changing the view property. The View is sent $code and $message variables., (*9)

The Versions