polidog/laravel-bundle

dev-master 2019-12-03 02:22 UTC

This package is auto-updated.

Last update: 2024-11-29 04:52:19 UTC


README

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock

LaravelFallback

Requirements

  • PHP 5.6+
  • Symfony 2.3+
  • Laravel 5.2+

Installation

install polidog/laravel-bundle with composer.

$ composer require polidog/laravel-bundle

Usage

Load bundle in AppKernel:

    new \Polidog\LaravelBundle\PolidogLaravelBundle(),

Configuration in config.yml:

polidog_laravel:
  bootstrap_file: "%kernel.root_dir%/../vendor/polidog/laravel-project/bootstrap/app.php" #your laravel project for bootstrap/app.php
  env:
    APP_DEBUG: true
    APP_KEY: laravelKey

Fallback in routing.yml

fallback:
    path: /{path}
    defaults: { _controller: "polidog_laravel.controller.fallback:fallback" }
    requirements:
        path: .*

example

see polidog/laravel-bundle-example