fix route

This commit is contained in:
ludo
2024-03-11 18:38:23 +01:00
parent 7b7295aed1
commit 2227242704
9 changed files with 232 additions and 241 deletions

View File

@@ -45,7 +45,7 @@ class RegisterController extends Controller
return $request->wantsJson()
? new JsonResponse([], 201)
: redirect('home');
: redirect()->route('home');
}
public function emailVerify()

View File

@@ -6,8 +6,4 @@ use App\Http\Controllers\Controller as ParentController;
class Controller extends ParentController
{
public function __construct()
{
$this->middleware('auth.check');
}
}

View File

@@ -18,6 +18,9 @@ class OrderController extends Controller
{
public function index(CustomerOrdersDataTable $dataTable)
{
if (Customers::isNotConnected()) {
abort(403);
}
return $dataTable->render('Shop.Orders.partials.list');
}