garygreen / pretty-routes

Pretty routes for Laravel
655 stars 77 forks source link

Additional Column to list View that is being returned from controller #62

Open izshreyansh opened 5 years ago

izshreyansh commented 5 years ago

I am thinking of sending a PR which will add 1+ columns which will spit out view name that is being returned from the controller action.

Could that be useful?

BaraoVlask commented 4 years ago

Very useful, and if the you can add the app domains will helt too

andrey-helldar commented 4 years ago

Very useful, and if the you can add the app domains will helt too

Domains column is displayed if they are specified in the routes.

https://github.com/garygreen/pretty-routes/blob/master/views/routes.blade.php#L45

image

image

https://github.com/garygreen/pretty-routes/pull/10#issuecomment-343141643

andrey-helldar commented 4 years ago

The problem with defining a "view" is that the controller can return not only a view file, but also a response or Resource.

andrey-helldar commented 4 years ago

In any case, Gary is busy with his main work and this project has not received updates for a long time. I have released my standalone version of the package with all the changes proposed in this project over the past three years. See: https://github.com/andrey-helldar/pretty-routes