skip to Main Content

Laravel – Login Route and Controller

My Blade file code is like below. <form action="{{ route('login') }}" method="post" class="row mt-4 align-items-center"> <input type="hidden" name="_token" value="{{ csrf_token() }}"> <div class="mb-3 col-sm-12"> <label class="form-label">Email Address <span class="text-danger">*</span></label> <input type="email" name="email" class="form-control" placeholder="Enter your email"> </div> <div class="mb-3 col-sm-12">…

VIEW QUESTION

Laravel – Get path without arguments

In my api.php file, I might have a path that says Route::post('/this/thing/{variable}' In another part of my codebase, when a request is made to that route, I can get the actual requested route with $request->path();, but if I do that,…

VIEW QUESTION
Back To Top
Search