polidog/laravel-bundle

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

This package is auto-updated.

Last update: 2024-08-29 04:09:12 UTC


README

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

LaravelFallback

要求

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

安装

使用 composer 安装 polidog/laravel-bundle

$ composer require polidog/laravel-bundle

使用方法

在 AppKernel 中加载 bundle

    new \Polidog\LaravelBundle\PolidogLaravelBundle(),

在 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

在 routing.yml 中设置回退

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

示例

查看 polidog/laravel-bundle-example