PHPackages                             vespakoen/laravel-shim - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vespakoen/laravel-shim

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vespakoen/laravel-shim
======================

18PHP

Since Feb 4Pushed 12y ago1 watchersCompare

[ Source](https://github.com/vespakoen/laravel-shim)[ Packagist](https://packagist.org/packages/vespakoen/laravel-shim)[ RSS](/packages/vespakoen-laravel-shim/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Shim
====

[](#shim)

This package bootstraps a L4 application. It can be loaded as a L3 bundle, and will NOT register any aliases so it will not conflict with L3.

Shim will run the L4 application, and will see if the response code is 404. If so, it will not render the result and assume no L4 route was defined for the current url and continues running the L3 application.

This has a side effect that when an error occurs in a L4 package, which most of the times will trigger a 404 error, the error will not be shown.

To avoid this, you can set the 'debug\_errors' flag to true in the `vendor/vespakoen/shim/src/app/config/app.php` file.

Let's get a L4 config value, note that we alias the class so we won't screw up other routes that use `Config`.

```
