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…
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…
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: