2017 © Pedro Peláez
 

library laravel-query-route

laravel5 routing into url query

image

weirongxu/laravel-query-route

laravel5 routing into url query

  • Monday, March 20, 2017
  • by weirongxu
  • Repository
  • 1 Watchers
  • 3 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

laravel-query-route

Change laravel5 routing into query, (*1)

Its useful when you can not use .htaccess, (*2)

Some url transform examples * http://localhost:8000/path to http://localhost:8080/?_=/path * http://localhost/path/to/?a=1&b=2 to http://localhost/?a=1&b=2&_=/path/to/, (*3)

Installation

Install with composer, (*4)

composer require weirongxu/laravel-query-route

Add the service provider to config/app.php

<?php
Weirongxu\LaravelQueryRoute\ServiceProvider::class,
// Note: The `App\Providers\RouteServiceProvider::class` must before this provider

Use the Weirongxu\LaravelQueryRoute\Request replace laravel request in public/index.php

<?php
$response = $kernel->handle(
    // $request = Illuminate\Http\Request::capture()
    $request = Weirongxu\LaravelQueryRoute\Request::capture()
);

Generate package config by the publish command

php artisan vendor:publish --provider="Weirongxu\\LaravelQueryRoute\\ServiceProvider" --tag config

Configuration

the underscore path indicator "_" can be customized in config/query-route.php. Set query_name to "rpath" for example: * http://localhost/path/to/?a=1&b=2 to http://localhost/?a=1&b=2&rpath=/path/to/, (*5)

The Versions

20/03 2017

dev-master

9999999-dev

laravel5 routing into url query

  Sources   Download

MIT

The Requires

 

by Weirong Xu

laravel route htaccess

07/02 2017

v1.2.0

1.2.0.0

laravel5 routing into url query

  Sources   Download

MIT

The Requires

 

by Weirong Xu

laravel route htaccess

07/09 2016

v1.1.0

1.1.0.0

laravel5 routing into url query

  Sources   Download

MIT

The Requires

 

by Weirong Xu

laravel route htaccess

22/08 2016

v1.0

1.0.0.0

laravel5 routing into url's query

  Sources   Download

MIT

The Requires

 

by Weirong Xu

laravel route htaccess