Skip to content

Tag: laravel

Calculating variable using attribute laravel

I have a simple code where I output the new age of a person. If a person is aged 17, it should output 18. But I’m calculating this on blade (which I think is bad). And I’m trying attribute to handle this, but since I’m very new to Laravel, I don’t know how to handle it. Please help me&…

LARAVEL – How to change Auth::route() paths to custom address

I am working on laravel7 Project, I want to change default Auth::route() route paths I have login page and I want to change it to something like: /random/random2/random3/login but laravel auth comes with “/login”. how can I edit it? Answer If you just want to prefix them, you can wrap it in a rout…