Questions tagged [laravel-breeze]

130 questions
0
votes
1 answer

Why with additive checks on login fail user is entered into the system?

In laravel 9 with breeze 1.11 I need to add additive checks on field if user is admin. In app/Http/Requests/Auth/LoginRequest.php I add lines : public function authenticate() { $this->ensureIsNotRateLimited(); if (!…
mstdmstd
  • 2,195
  • 17
  • 63
  • 140
0
votes
1 answer

Laravel-9: Method Illuminate\Validation\Validator::validateUsername does not exist

i added username field at laravel breeze auth and registered a user, it was fine, but when i tried to login by username by replacing email with username than it gives this error: Method Illuminate\Validation\Validator::validateUsername does not…
cyber dev
  • 13
  • 1
  • 2
  • 6
0
votes
1 answer

Laravel Route not defined breeze

I have a weird situation, where my route seems to be not defined. I am using Laravel's starter kit Breeze, and I am adding top left navigational links. This is my 4th link already, but it seems that It's the first time I face such…
Hoolis
  • 47
  • 6
0
votes
1 answer

Why does Laravel only write email, created_at and updated_at variables to database when registering a user?

I installed Laravel Breeze in my Laravel 8 installation so I could easily get a user sign-up and registration system up and running. There is one problem that I'm having with this that I can't seem to solve. When a user signs up, they enter their…
Calum Childs
  • 337
  • 2
  • 12
0
votes
0 answers

Performance and Slow Query Users with Breeze

in my laravel site with breeze, when i try to open page, it very very slow. The query is "select * from users where id = 1 limit 1" take 4 seconds. Why? Can help me? Thanks a lot. Laravel 9.1, Breeze
Bonci Marco
  • 301
  • 2
  • 5
  • 17
0
votes
1 answer

use expectException() on laravel custom exception

Here is a custom exception namespace App\Exceptions; use Exception; class CustomException extends Exception { public function render($request) { return response()->view('custom-exception'); } } I throw it inside a Request…
Autodesk
  • 631
  • 8
  • 27
0
votes
0 answers

laravel-breeze replacing nav-link in navigation with dropdown/dropdown-link

I'm trying to change the navigation box a bit so that instead of nav-link it's a dropdown and a dropdown-link. I seem to be able to do this, but I can't turn on the section highlight in the navigation if it's selected. This is how I changed the…
volnistii
  • 33
  • 5
0
votes
1 answer

Why would laravel hash the password reset link in the database?

I'm completely new to laravel. So I'm trying to understand password reset system with breeze I was taken to this page after I click on an email link and I noticed this parameter also ended up stumbling on probably the hashed version of the…
Melly
  • 675
  • 8
  • 24
0
votes
1 answer

Laravel 9 Class "App\Http\Controllers\Auth\Rules\Password" not found

I created a basic laravel 9 app. I added new fields to the RegisteredUserController example: surname address company_name I keep getting error Class "App\Http\Controllers\Auth\Rules\Password" not found and laravel 9 refers me to the default…
Thando Hlophe
  • 57
  • 2
  • 12
0
votes
1 answer

assertAuthenticated passes locally but fails in Bitbucket Pipeline

I am building a Laravel 8 Application using the built-in Authentication used by Laravel/Breeze. I've written several tests using assertAuthenticated() which pass when running the tests locally, but when running in the Bitbucket Pipeline, the…
James M
  • 51
  • 12
0
votes
1 answer

Laravel 9 Breeze api Authenticate with different user types

How can I check the user type in LoginRequest of laravel breeze? I am implementing Laravel breeze with next.js for my backend. The logic is that the admin login to the dashboard using the next.js frontend and the users login to the system from an…
Ashutosh Sharma
  • 1,419
  • 2
  • 12
  • 22
0
votes
0 answers

laravel breeze doesn't work in production?

I made my first laravel project using Breeze authentification (laravel 9.2). Everything is ok in local, I can register and login users. But unfortunately in production on my server, login form and register form don't work so well ! I made a second…
0
votes
1 answer

Laravel 8 with Breeze, setted the existing user table for Auth, but doesn't work

I have to build a new system with a kind of old-style pre-existing MySQL database tables with Laravel 8 with Breeze. Already have a user data table that is totally different from the basic Auth system in Laravel 8. I am trying to figure out to make…
Jiwon
  • 366
  • 2
  • 17
0
votes
2 answers

Laravel 9: change table and fields for authentication and login

I have changed the table and the Laravel Breeze fields for authentication to some custom ones. It looks fine but in AuthenticatedSessionController.php while I get Auth::Check() == true when it executes return…
netdev
  • 496
  • 1
  • 5
  • 22
0
votes
1 answer

Is there a way of getting authenticated user ID and use it on navigation.blade?

I'm building a new Laravel app, using Breeze. What i'm trying to do is get the authenticated user id to redirect it to the profile route, which is: Route::group([ 'prefix' => 'profile', 'as' => 'profile.', 'middleware' => ['auth'] ],…
eitibiti
  • 45
  • 6
1 2 3
8 9