Laravel Glide can’t find images at urls with extension
`when I remove the extension at the end, so doing this: http://localhost:8000/img/properties/2/glvfATRS0WlUpY191EeXy0zPU60S7uJAmuZ0DK8T?w=100 I can still read the dd() of the controller:
Cached view file does not exist, but only for one user
Having a bizarre issue where Laravel is unable to find a cached view file, but it only affects a single user out of dozens. Everybody else is able to use the website fine, but for this lone user they get these errors.
Call to undefined relationship on model. on production but not on localhost
I’m working on a laravel 10 project and I have issues on production (local server) but not in localhost (php artisan serve).
ERROR in laravel 10 of undefined variable
ErrorException
PHP 8.2.13
11.0.7
Undefined variable $student_category
Use abilities hardcoded instead of abilities table
My Laravel app uses silber/bouncer package for permissions management. All my abilities are stored in a mysql table, I’m looking for a solution to make them hardcoded, instead of keep them in a database.
Since bouncer is totally eloquent based, I created my ExtendedAbility model with sushi
package to make all the abilities defined in this model.
When I tell bouncer to use another model for abilities at Authorize middleware I got SQLSTATE[HY000]: General error: 1 no such table: roles
:
Unique validation is not allowing to add same skills for multiple jobs
Table 1: jobs_masterskills (id, skillname ) is the master skill table, where I have list of job skills
Laravel Spatie Permissions Role based redirection
I created a new column in roles table, so user can assign a default page for the role. When a user logins successfully if his/her role has a default page, I want him/her to be redirected to that default page, if his/her role doesn’t have a default page (empty) then he/she will be redirected to the default home page. I tried to achieve this using a middleware however it didn’t work. What am I doing wrong?