Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel collection search

 $routes = collect(Route::getRoutes()->getRoutesByName());
        $serach = $routes->filter(function ($route) {
            return Str::contains($route->getName(), "admin.");
        });
        
dd($serach);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #collection #search
ADD COMMENT
Topic
Name
7+2 =