From 49e1ef435e2864837d179cac128f1ddc3fd0fb62 Mon Sep 17 00:00:00 2001 From: Tiger Fok Date: Fri, 29 Nov 2019 14:21:59 +0800 Subject: [PATCH] Allow override of routes() method --- src/ProgressController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ProgressController.php b/src/ProgressController.php index 661a878..819d87c 100644 --- a/src/ProgressController.php +++ b/src/ProgressController.php @@ -42,8 +42,8 @@ function view($id) { * Shortcut for creating group of named route */ public static function routes($as = 'progress') { - \Route::get("progress/{id}", ['as' => "{$as}", 'uses' => "\\" . self::class . "@progress"]); - \Route::get("progress/{id}/download", ['as' => "{$as}.download", 'uses' => "\\" . self::class ."@download"]); - \Route::get("progress/{id}/view", ['as' => "{$as}.print", 'uses' => "\\" . self::class ."@view"]); + \Route::get("progress/{id}", ['as' => "{$as}", 'uses' => "\\" . static::class . "@progress"]); + \Route::get("progress/{id}/download", ['as' => "{$as}.download", 'uses' => "\\" . static::class ."@download"]); + \Route::get("progress/{id}/view", ['as' => "{$as}.print", 'uses' => "\\" . static::class ."@view"]); } } \ No newline at end of file