Laravel, what does "before" mean in a route group?

laravel, laravel-routing, php

Solution

In that context, `guest` is a Route Filter. It is used to run a filter before any of the routes in that group are executed.

Problem

When declaring a group of routes in Laravel, for a example unauthenticated group write like below ``` Route::group(array("before"=>"guest"),function(){ //routes goes here } ``` What's the purpose of the "before" attribute ?

Original source