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