2017 © Pedro Peláez
 

library laravel-route-debugger

Get file and line of matched laravel route

image

jonasof/laravel-route-debugger

Get file and line of matched laravel route

  • Saturday, June 23, 2018
  • by jonasof
  • Repository
  • 2 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel route debugger

Installation

Install either globally:, (*1)

composer global require jonasof/laravel-route-debugger, (*2)

Or inside the laravel project:, (*3)

composer require --dev jonasof/laravel-route-debugger, (*4)

Usage

Execute in your laravel project root directory the command:, (*5)

laravel-route-debugger find GET / for global installations php artisan route-debugger:find GET / for local installations, (*6)

That will return:, (*7)

File: /home/user/laravel-project/routes/web.php:16
Controller: App\Http\Controllers\HomeController@get
Controller File: /home/user/laravel-project/app/Http/Controllers/HomeControler.php:10

The script more complex routes like POST /user/123/comments since it uses the default laravel route parser., (*8)

You can also use --json flag to return the result as json in this format:, (*9)

{
  "route": {
    "file": "\/home\/user\/laravel-project\/routes\/api.php",
    "line": 16
  },
  "controller": {
     "action": "App\\Http\\Controllers\\HomeController@get",
     "file": "\/home\/user\/laravel-project\/app\/Http\/Controllers\/HomeController.php",
     "line": 10
    }
  }+
}

The Versions

23/06 2018

dev-master

9999999-dev

Get file and line of matched laravel route

  Sources   Download

MIT

The Requires

 

23/06 2018

1.0.0

1.0.0.0

Get file and line of matched laravel route

  Sources   Download

MIT

The Requires

 

23/06 2018

0.0.1

0.0.1.0

Get file and line of matched laravel route

  Sources   Download

MIT

The Requires