Category "laravel"

How to order by eager loaded relationship in Laravel 5.5?

The code below works perfectly and displays all products with discounts in JSON Format for my API. But I want the result ordered by id in the discounts table. S

Change Laravel Fortify Auth Column Names

I tried following these steps to no avail https://stackoverflow.com/a/64299968/7309037 I have a User Table with the column name "EmailAddress" but Laravel is lo

Laravel Inertia Shared Data not updating

I have a laravel breeze app up and running using InertiaJS scaffolding. I'm using a middleware to pass general data to the layout. The issue is the following :

Target [Laravel\Fortify\Contracts\ResetsUserPasswords] is not instantiable

I am implementing the forgot password / password reset logic with Laravel 8 and Fortify for an SPA application. When the /reset-password is called and if the da

How to run laravel artisan command on server?

How to run laravel artisan command on server? I have to run this this command: composer require realrashid/sweet-alert

Fresh Laravel install deletes server.php on artisan serve

I'm a bit fresh to Laravel. I installed it via composer in the xampp/htdocs file. I installed the latest version 5.6. The install works with no errors, and the

WebSocketChannelException: HandshakeException - Flutter app with Laravel Websockets on custom server Cerificated with Cpanel

I have Laravel web application includes live chat relying on Laravel Websockets https://docs.beyondco.de/laravel-websockets/ For now i am making Flutter app fo

Two sessions and two different lifetime in Laravel

If change Laravel lifetime sessions in .env file it works for all sessions. How can I determine the lifetimes of every session separately?

is there any way to validate a field that sometime is File(image) && sometime is String(Src of same image)

my problem : i am using laravel framework php i want validate a field witch my field sometime is File(image) and sometime is String(src of same image) is there

Backup failed in Browser, works with php artisan backup:run

I am new to Laravel, I have created a driver with the create function to create backups to my database on xampp server, but my problem is that in the browser it

Creating command to backup MySql database in Laravel

I wanted to back up my database. I am using Xampp MySql. The username is root and the password is not set. I run the command using Command Prompt but it shows n

How to solve "bash: vendor/bin/grumphp: Permission denied" in WSL 2?

docker-compose my-app up -d && docker-compose my-app exec app bash, then vendor/bin/grumphp run worked when my project was on Windows filesystem. Then I

How do I get apple receipt from app store events in laravel

I am using imdhemy/laravel-in-app-purchases plugin to manage mobile purchases from Google and Apple. I configured Google ok and I'm handling purchase events cor

api response laravel doesn't show

I have some problem when I want to return a value from api, when I use dd() function it will show the result. But when I use return, it doesn't show the result

Using layout property in <script setup> tag

Is there any way to use layout property of inertiajs for vue 3 in <script setup> tag? In other words, I am asking for an equivalent of the following code,

'cross-env' is not recognized as an internal or external command,

Guys can you please help me on this I have trouble run npm run dev for my Laravel Mix. I followed links below but still error exist. Do i have a problem on my O

I got No 'Access-Control-Allow-Origin' header is present on the requested resource error

Making request from @vue/cli 4.5.8 app to my laravel ( Laravel Framework 8.24.0 with hosting http://local-backend-currencies.com ) backendpoint app I got error

The Laravel registration page takes a long time to load

I just started using Laravel. I haven't written almost any code yet, the problem on my site is that it takes 120 seconds to load on the register page, there is

Stripe exception is not working .giving laravel errors instead of exception errors

I am using stripe payment gateway in my project. I am trying to display exception errors when a user entered expired card number. but instead of showing me erro

Why Laravel Mix deletes CSS @import url()

I'm using Laravel Mix, and when I run npm run dev, everything is good, but when I run npm run prod, in minified style.css, all @import url()s get deleted! Webpa