add school year model
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/**
|
||||
* Laravel named routes (`route()`), cookie-session URLs, SPA paths, and absolute URLs for `public/` paths.
|
||||
*/
|
||||
@@ -48,7 +50,11 @@ final class ApplicationUrlService
|
||||
/** Named route `docs.home` (GET `/`; usually redirects to the docs client). */
|
||||
public function docsHomeUrl(bool $absolute = true): string
|
||||
{
|
||||
return route('docs.home', [], $absolute);
|
||||
if (Route::has('docs.home')) {
|
||||
return route('docs.home', [], $absolute);
|
||||
}
|
||||
|
||||
return $absolute ? url('/app/home') : '/app/home';
|
||||
}
|
||||
|
||||
/** Cookie-session SPA paths from `routes/web.php`. Named route `login`. */
|
||||
|
||||
Reference in New Issue
Block a user