mona Salih
mona Salih
KPCKevin Powell - Community
Created by mona Salih on 2/15/2024 in #back-end
The post method is not supported for this route. Supported methods: GET, HEAD. for login page
I have the following login.blade.php
<form method="POST" action="{{ route('login') }}">
@csrf
<input type="email" name="email" placeholder="Email" required>
<input type="password" name="password" placeholder="Password" required>
<button type="submit">Login</button>
</form>
@if(session('error'))
<p>{{ session('error') }}</p>
@endif
<form method="POST" action="{{ route('login') }}">
@csrf
<input type="email" name="email" placeholder="Email" required>
<input type="password" name="password" placeholder="Password" required>
<button type="submit">Login</button>
</form>
@if(session('error'))
<p>{{ session('error') }}</p>
@endif
web.blade
Route::middleware('checkUserRole')->prefix('admin')->group(function () {
Route::get('/', function () {
return view('welcome');
});
});

Route::get('/login', function () {
return view('login');
})->name('login');
Route::middleware('checkUserRole')->prefix('admin')->group(function () {
Route::get('/', function () {
return view('welcome');
});
});

Route::get('/login', function () {
return view('login');
})->name('login');
keep show the error even when I add @method('PUT') for login.blade #"laravel"
2 replies
KPCKevin Powell - Community
Created by mona Salih on 1/16/2024 in #front-end
I have the following code how I can make contaniner_contant class closer to background_countainer
in the following code https://codesandbox.io/p/sandbox/layout-page-8gvxls you can see there space between class "contaniner_contant " and class "background_countainer" I'm looking to make class "contaniner_contant " closer to bottom without using position
16 replies
KPCKevin Powell - Community
Created by mona Salih on 7/13/2023 in #front-end
login issue
I am working on a project with an idea that might seem suspicious to some. In short, I have encountered a problem. The project is based on the premise that when the user enters their email and password, this data is sent to the admin dashboard. The admin then verifies them and either approves or disapproves. If approved, the user is redirected to a page also specified by the admin. I have searched for various solutions, but some suggest that it is possible if the user presses "login" twice or if I perform control on the user's browser console. However, these solutions are not helpful. Is there any other solution? I would appreciate your assistance as soon as possible.🥺
15 replies