All Questions
Tagged with laravel authentication
3,389
questions
0
votes
0
answers
22
views
LDAP Integration for Laravel Project
I am currently having a trouble when authenticating a default, non-modified AD user in my Laravel Project. I am using this extension called LdapRecord-Laravel
Before making this post I made sure that ...
1
vote
0
answers
66
views
connecting database with laravel --> postman doesnt display data
my api.php
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\UserController;
Route::middleware('auth:api')->get('/user',function (Request $...
0
votes
1
answer
34
views
How can i retrieve Auth data in 404 pages in Laravel 11
The fix was simple in previous Laravel version, but now with the current files restructuring, it is not clear how to solve this anymore,
i want the Auth data to be shared even in 404 pages, i ...
0
votes
0
answers
29
views
How can I customise Laravel Fortify forgotten password behaviour?
My application is built from a Jetstream starter kit, and uses Laravel Fortify for authentication.
The forgotten password behaviour is considered a security risk as it allows username enumeration. For ...
0
votes
0
answers
55
views
Laravel Filament login error on auth pages
I've just had an error said 'The POST method is not supported for route admin/login. Supported methods: GET, HEAD.' on the login and registration pages.
My project is working properly when it is local,...
0
votes
0
answers
22
views
Next.js Authentication Issue: Page Redirects to Login After 2-3 Seconds
I'm trying to build a new project with a Laravel backend and a Next.js frontend. I'm having issues with authentication. The login and register functions work without any problems, but when I try to ...
0
votes
1
answer
53
views
Cannot authenticate in fresh installed Laravel 11 with MySQL/MariaDB
I cannot have Laravel 11 authentication working with MySQL or MariaDB.
Here's what I've done:
Install Laravel with composer create-project laravel/laravel foo
Create Database and edit .env ...
0
votes
1
answer
66
views
Laravel Socialite randomly missing 'code' in request
I'm using Laravel Socialite in my project for google login.
public function handleProviderCallback(): RedirectResponse
{
$provider = Socialite::driver('google')->scopes(['openid', '...
0
votes
0
answers
54
views
laravel filament auth()->user() returns null from helper file
I'm working on a Laravel application and using the Filament admin panel. I created a custom helper function to check user roles and access, but when I call auth()->user() inside this helper ...
0
votes
1
answer
70
views
The "providers" array is not present in laravel's config/app.php
I want to register the 'authserviceprovider' provider in the 'provider' array in config/app.php, but the 'provider' array is not in that file, is there something wrong with my installation, or my ...
0
votes
0
answers
20
views
How to use Laravel's Policy to authorize actions based on a specific attribute of a related model?
I have a Laravel application with two models: Post and User. Each Post belongs to a User, and I want to authorize actions on a Post based on a specific attribute of the User who owns the post.
For ...
-3
votes
1
answer
99
views
Laravel version 11 Authentication
I'm trying to make authentication for both the User and Admin from the same login view and within the same controller
the authentication is successfully done until the store method redirects the user ...
2
votes
1
answer
58
views
Laravel email verification URL redirect to 404
I want to use a custom template for verification emails being sent by Laravel 11. It generates a verification url, but when I click it, it shows 404 on the browser.
Below is my user model where I ...
0
votes
1
answer
163
views
Using laravel 11 cookie to manually authenticate a request
im trying to authenticate a request sent from the front end from another domain
i tried to set the 'Cookie' header with the cookie value but it was blocked by the browser ,so i did the following
...
0
votes
0
answers
114
views
Undefined array key 'password' error in Laravel Auth::attempt
I'm encountering an "Undefined array key 'password'" error when trying to log in a user using Laravel's Auth::attempt method. Below is the relevant section of my code:
public function ...