Questions tagged [laravel-breeze]
130 questions
0
votes
0 answers
How to authorize request using laravel breeze?
I have installed laravel breeze with sail, and I'm trying to make axios request, like
axios.get('/api/messages');
But I got an error
{"message":"Unauthenticated."}
I am authorized, and can open pages like "dashboard".
I…

Lamantinoss
- 159
- 1
- 8
0
votes
1 answer
Is it right way to show all user info with auth::guard laravel authentication
I am newbie to laravel. I have question in my mind that... Is it right way to show all user information using auth::guard. I am using laravel breeze authentication ?
for ex. is it right -
name: Auth::guard('web')->user()->name
mobile:…

Sudip977
- 65
- 1
- 10
0
votes
0 answers
How to correctly send the CSRF token with Axios, React and Laravel 9. Request failed with status code 419
I'm using React, Inertia, Breeze and Laravel 9. When sending a request to the server with Axios, I get the following error: `{message: 'Request failed with status code 419', name: 'AxiosError', code: 'ERR_BAD_REQUEST'.
My code is the following…

Eduardo Tapia
- 31
- 1
- 8
0
votes
2 answers
How to check additional field Laravel 9 + breeze
I added new field 'approved' to USERS table. Field is index for now it could be 0 or 1. On user login I want to check this field and if it's 0 do not User let login. How to do in Laravel 9 breeze?

Дима Свободин
- 125
- 2
- 3
- 11
0
votes
0 answers
Fresh Laravel Breeze TypeError on Signup / Login
When installing Breeze on a Fresh Laravel install I get an error when posting to login or sign-up routes.
TypeError trim(): Argument #1 ($string) must be of type string, array given
Error in Index.php line 58
$request =…

Barco
- 11
- 3
0
votes
0 answers
How to remove a route which is not registered in web.php but exist at php artisan route:list
I have a problem removing the route which does not exist in web.php but when I checked at PHP artisan route:list, its still appears on the list.
I'm trying to remove the route to access the default laravel breeze + react register. to replace with my…

shinichirou ikebe
- 209
- 3
- 15
0
votes
0 answers
How to customize the emails sent by Laravel Breeze?
I wanted to customize the emails sent by Breeze from the default styles. Looks like the installation of Breeze does not publish the files for that but I found online that using php artisan vendor:publish --tag=laravel-notifications will publish the…

pileup
- 1
- 2
- 18
- 45
0
votes
0 answers
How to remove Tailwind from Docker & Laravel9 with Breeze
I was just curious about removing Tailwind from Docker & Laravel (9.38.0) with Breeze installed as follows:
$ curl -s "https://laravel.build/test" | bash
$ cd test/
$ composer require laravel/breeze --dev
$ php artisan breeze:install
$ php…

Bakabona
- 1
- 1
0
votes
0 answers
move user authentication to server with laravel breeze (useAuth Hook)
tl;dr: move authentication from useAuth hook to the server side with laravel breeze with next.js?!
The situation
I am using a project setup like the original laravel breeze repo.
It ships with the useAuth hook, which handles the authentication on…

malouan
- 71
- 5
0
votes
0 answers
How to use Breeze in laravel package blade template
I'm playing around with my Laravel 8 install and just added breeze (v1.9.2 per laravel docs so vite doesn't break)
I figured out that I can copy the dashboard.php in resources/views/ to make a simple template with a new route. e.g. rename it…

Scott
- 7,983
- 2
- 26
- 41
0
votes
0 answers
creating a sub menu breeze laravel
I installed Laravel Breeze with default component dropdown item. I have created a menu and I want to add a sub menu using dropdown.
How can I do it? How can I use it as a component?
0
votes
1 answer
How to trigger password reset without a notification in Laravel Breeze?
Using Laravel 9 with Breeze I want when a user with a specific role has been created, he should receive a custom welcome mail with a link to a view, where he needs to set a password
How can I just trigger the password reset without the default…

JanBoehmer
- 395
- 3
- 14
0
votes
1 answer
Laravel's React Breeze ,Always can't run : npm run dev
The Vite doesn't work
Os:CentOs7
Laravel: 9.26.1
node: v16.17.0
npm: 8.15.0
I would like use new Laravel Project with React.js.
And try the plug-in Breeze for Authentication
I use the command
composer create-project laravel/laravel new-project
php…

Bennett
- 1
- 2
0
votes
0 answers
Page expired just when hosting my laravel app
My laravel app is working fine at localhost, but when I deploy it in server, after login I have a 419 error page expired, I don't know what is the error !! I mention the csrf token in app.blade.php but nothing was solved.
I use Laravel 9, laravel…

MAHA OUEGHLANI
- 124
- 13
0
votes
1 answer
Laravel Breeze Authenticate middleware not redirecting when unauthenticated
I am using Laravel 9, extending Laravel Breeze for authentication.
I have routes that are protected by the auth middleware (\App\Http\Middleware\Authenticate.php), in which I've specified that redirectTo() should return route('auth.login').
This was…

kJamesy
- 5,973
- 5
- 20
- 22