Skip to content

Commit

Permalink
Update web.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrenceee04 committed Dec 17, 2024
1 parent 8ab6cd5 commit 9cdbacd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routes/api.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\URL;

/*
|--------------------------------------------------------------------------
Expand All @@ -14,6 +16,10 @@
|
*/

if (App::environment('production')) {
URL::forceScheme('https');
};

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});
6 changes: 6 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\VisitController;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\URL;

/*
|--------------------------------------------------------------------------
Expand All @@ -17,6 +19,10 @@
|ob
*/

if (App::environment('production')) {
URL::forceScheme('https');
};

Route::get('/', function () {
return view('welcome');
});
Expand Down

0 comments on commit 9cdbacd

Please sign in to comment.