Category "laravel"

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

ldap is missing from system when installing adldap2 in laravel

firstly, im trying to install package inside the laravel composer using "composer install", but then it returns an error: Your requirements could not be resolv

Laravel API resourceCollection using array rather than model

I have an API that uses API resource and resource collections to correctly format the JSON responses. In order to decouple my controller from my model I use an

Laravel and Passport getting SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_token'

I've seen many posts about this error, but none of the solutions are working for me. I'm running Laravel with Passport which is working fine on my development s

Restrict Laravel API access to given frontend(s) only

I'm using Laravel as API with Passport and Password Grant Token. When no user is logged in, frontends still needs to access API routes to get misc data or to re

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

When I run composer install on command promp, there exist error like this : Problem 1 - Installation request for laravel/horizon v1.1.0 -> satisfiabl

Required field only if another field has a value, must be empty otherwise

My question is about Laravel validation rules. I have two inputs a and b. a is a select input with three possible values: x, y and z. I want to write this rule

Correctly redirect to another page with inertia?

I"m trying to redirect on click to another page, for some reason it's not working. This is the code on my vue where the redirect buttons are. I've tried two dif