1: <?php namespace Illuminate\Support\Facades;
2:
3: class Route extends Facade {
4:
5: /**
6: * Determine if the current route matches a given name.
7: *
8: * @param string $name
9: * @return bool
10: */
11: public static function is($name)
12: {
13: return static::$app['router']->currentRouteNamed($name);
14: }
15:
16: /**
17: * Determine if the current route uses a given controller action.
18: *
19: * @param string $action
20: * @return bool
21: */
22: public static function uses($action)
23: {
24: return static::$app['router']->currentRouteUses($action);
25: }
26:
27: /**
28: * Get the registered name of the component.
29: *
30: * @return string
31: */
32: protected static function getFacadeAccessor() { return 'router'; }
33:
34: }