Questions tagged [laravel-breeze]
130 questions
1
vote
0 answers
InertiaJS/Breeze throwing 'undefined reading $page' in prod
Upon running yarn prod inside a Laravel Breeze project with Vue3 and InertiaJS, this console error is thrown:
Cannot read properties of undefined (reading '$page')
I am unable to find anything anywhere else that will fix my issue, I first thought it…

samscript
- 139
- 1
- 1
- 8
1
vote
1 answer
Laravel inertia react - pass a prop
I installed the breeze + react starter kit. Also, got the Spatie permissions, and seeded some roles, users etc.
I made a middleware to redirect the user based on role, and also a dashboard page specific to a certain role. All works fine, except I…

soundcake
- 23
- 6
1
vote
1 answer
Using user data to calculate formulas in laravel
I am currently trying to find a way to use the data that is already on the users table to calculate the BMI of the user.
Many of the tutorials I see, they have a form, and a post, but what do I do if I already have the weight and height of the…

Filipe Ferreira
- 13
- 3
1
vote
1 answer
Laravel Breeze API login controller errors
Trying out this 'new' Laravel Breeze API package, trying to combine it with Sanctum.
Upon editing the code a bit I stumbled upon some weird error that I do not understand. When I try to authenticate with postman
public function store(LoginRequest…
user17595824
1
vote
2 answers
Laravel 9 Breeze with fortify how disable default routes?
I use laravel only as a backend for a mobile application, for this I use Laravel Sanctum api. I don’t need everything that is displayed in the browser on the site, so I want to disable all unnecessary routes for web. Some of the routes are quite…

Александр Инженер
- 451
- 2
- 18
- 29
1
vote
0 answers
How to make Initial avatar image in registration process in laravel 8 without any package?
Recently I watched this video: https://www.youtube.com/watch?v=32xlHYdJ3Ug but in the final my Laravel Version (8.80.0) doesn't have the RegisterController.php only RegisteredController.php. Soo I have "Call to undefined function imagecreate()"…

Guilherme Beserra
- 395
- 1
- 4
- 15
1
vote
0 answers
Confusing syntax in Laravel Breeze blade file
I was looking through the implementation of Laravel Breeze to see how they built the front end.
I understand everything in the blade file except for a few things which have syntax I don't understand.
Within navigation.blade.php you can find the…

Marissa
- 185
- 1
- 3
- 13
1
vote
0 answers
Undefined methods with Auth() and Auth.php after using Laravel Breeze and LaraTrust
l just installed Laravel Breeze and Laratrust to make my multi auth feature. When I opened app\Http\Controllers\Auth\AuthenticatedSessionController.php, without even editing anything yet, Intelephense throws an error:
``Undefined method…

ellajhonm
- 89
- 1
- 9
1
vote
0 answers
Illuminate\Foundation\Auth\User returning keyType: int
I am using the following trait to generate UUID's for my user model. I have setup a listener to the following event: Illuminate\Auth\Events\Login. This works when you just normally sign-in to the app (using Laravel Breeze). But when I manually do…

Liam Seys
- 31
- 1
1
vote
2 answers
Display sidebar menu elements based on user's role, with "yaminncco/vue-sidebar-menu" package
Hi I'm using Laravel Breeze with Inertia JS. I'm using "yaminncco / vue-sidebar-menu package" for the sidebar.
I'm asking if there is a way to display menu element depending on the user role (admin : See everything, simple user not, ....). There is…

Abdou_dev
- 27
- 1
- 5
1
vote
2 answers
Show/Hide form input based on select option
I am using Laravel with alpinejs version 3.2.4. I would like to show/hide some input elements and show them based on what the user selects. This is my code:
1
vote
1 answer
Vue cookie-based authentication in Laravel
From reading the Laravel docs, it appears that when using Sanctum Vue will just use the cookie-based authentication.
I was trying to move an existing app (with login done using Livewire) to Vue, but calls direct to my first api endpoint were…

Adam Hopkinson
- 28,281
- 7
- 65
- 99
0
votes
0 answers
How do I modify my new user field in a Laravel app?
I'm practicing some basic Laravel skills using a Laravel Breeze app. I decided to add a new postal_code field to the default User entity, and so far, that's largely gone quite well: After editing User.php, editing the frontend registration form,…

Mayor of the Plattenbaus
- 974
- 3
- 34
- 69
0
votes
1 answer
What files do I need to modify to get Laravel to recognize a new type?
I'm practicing Laravel using a Laravel Breeze app. A task I have assigned myself: Adding a postal code to the existing User model (including the registration form). I'm starting with the frontend and working backwards.
I have modified my index.d.ts…

Mayor of the Plattenbaus
- 974
- 3
- 34
- 69
0
votes
1 answer
laravel breeze with react
Just create a laravel project while using inertia with react.
Now when ever i run npm run dev i see this
i have entered both links in the browser, the vite locahost takes me to the laravel + vite page in the first image, while the APP_URL does…

Mahmud Suberu
- 42
- 4