Route.php
19 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\Routes; |
| 4 | |
| 5 | use Give\Framework\Support\Facades\Facade; |
| 6 | |
| 7 | /** |
| 8 | * @since 3.0.0 |
| 9 | * |
| 10 | * @method static string get(string $uri, string|callable $action, string $method = '_invoke') |
| 11 | * @method static void post(string $uri, string|callable $action, string $method = '_invoke') |
| 12 | * @method static string url(string $uri, array $args = []) |
| 13 | */ |
| 14 | class Route extends Facade { |
| 15 | protected function getFacadeAccessor(): string |
| 16 | { |
| 17 | return Router::class; |
| 18 | } |
| 19 | } |