Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. $out = [];
  2. foreach (Route::getRoutes()->get() as $r){
  3. if(isset($r->action['controller'])){
  4. $out[] = $r->action['controller'];
  5. }
  6. }
  7. dd($out);
  8.  
  9. $routeCollection = Route::getRoutes();
  10.  
  11. foreach ($routeCollection as $value) {
  12. echo $value->getPath();
  13. }
  14.  
  15. dd($query);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement