Edit file File name : web.php Content :<?php use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; use App\Http\Controllers\AuthController; use App\Http\Controllers\ShopifyController; use App\Http\Controllers\DashboardController; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider and all of them will | be assigned to the "web" middleware group. Make something great! | */ Route::post('/authenticate', [AuthController::class,'authenticate']); Route::get('/shopify/install', [ShopifyController::class, 'install']); Route::get('/shopify/callback', [ShopifyController::class, 'callback']); Route::get('/dashboard', [DashboardController::class, 'index']); Route::post('/dashboard', [DashboardController::class, 'store']); Route::get('/', function (Request $request) { $shopName = $request->input('shop'); $hmac= $request->input('hmac'); if (empty($shopName)) { return redirect('https://www.amwal-pay.com/'); } return redirect('/dashboard?shop='.$shopName.'&hmac='.$hmac); }); Save