Skip to main content
0 votes
0 answers
32 views

How to prevent Stripe customer balance (credits) from being used during subscription creation or update in Laravel or Stripe API?

I’m working with Stripe subscriptions and customer balances (credits). By default, when a customer has credits in Stripe, Stripe automatically applies those credits toward the next invoice or ...
Rosh's user avatar
  • 491
0 votes
1 answer
59 views

Switching from registering Service Providers in configuration to providers.php when upgrading to Laravel 11

I have a Laravel application originally developed in Laravel 10, but I have since upgraded the application to Laravel 12. One of the changes starting in Laravel 11 is that custom service providers are ...
Phil Birnie's user avatar
  • 1,134
0 votes
0 answers
50 views

How does Eloquent's new Laravel 11 HasScopedValues feature address it and how is it different from casts?

In Laravel 11, Eloquent introduced HasScopedValues to define scoped values for model attributes somewhat like $casts. I’m unclear how it differs from $casts can it transform values like casts or is it ...
S. Narthanan's user avatar
2 votes
0 answers
59 views

Migrations & Seeders & Command for production data [duplicate]

Recently after some research I came up with a question: how to handle default / initial data population in a Laravel project which goes live: should it go into seeders or migrations? I've seen two ...
Dmytro Shved's user avatar
3 votes
0 answers
262 views

How to retain session after redirect in Laravel

I'm using Laravel's database notifications. When a user clicks on a notification, it first redirects to a controller that sets some session data, then redirects again to the final URL. However, on the ...
Gzai Kun's user avatar
  • 300
0 votes
0 answers
57 views

getting unauthenticated error in phonepe refund api

i am getting problem of getting unauthenticated in the phonepe refund api. also i am using that token in the payment time it's working fine. $data = $this->getAuthKey(); $payment = Payment::...
ravi upara's user avatar
1 vote
1 answer
71 views

Attribute Accessors not working after laravel app upgrade

Laravel accessor not working after I upgraded from v8.75 to v11.31 I had this LARAVEL v8.75 App where in the User model I created an Accessor for photo like below public function getPhotoAttribute($...
Flying Eze's user avatar
0 votes
1 answer
133 views

Laravel 11 Events Firing Multiple Times in Production (Nginx, Azure App Services, PHP 8.3)

I'm encountering an issue where Laravel events are firing multiple times, but only in the production environment. Environment: Laravel: 11.x PHP: 8.3 Web Server: Nginx Hosting: Azure App Services ...
Shaheed konnola's user avatar
-1 votes
1 answer
719 views

When creating a Laravel project, is the kernel.php in the http and console folders already there? Why isn't it there in mine?

i have created a middleware public function handle(Request $request, Closure $next) { if (!auth()->check() || auth()->user()->role !== 'admin') { abort(403, '...
Faris Eka's user avatar
0 votes
0 answers
35 views

Livewire /upload-file not triggered when selecting a file

I have a Livewire Component Import.php: <?php namespace Modules\Donor\app\Livewire\Modals; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Notification; use Illuminate\Support\...
Michael Burton's user avatar
1 vote
2 answers
94 views

Admin middleware does not work properly in Laravel

I have made a middleware for admin routes public function handle(Request $request, Closure $next) { if (!auth()->check() || !auth()->user()->is_admin) { abort(401); } ...
Mohsen's user avatar
  • 302
0 votes
4 answers
246 views

Rounding floats / decimals in e-commerce (PHP 8.3 and Laravel 11)

So due to the fact that product quantities are not limited to integers but can store decimals up to 4 digits, I can have a product with quantity of 69.4160 square meters of something. Now assuming the ...
Matt Komarnicki's user avatar
0 votes
1 answer
42 views

Laravel Scheduler Not Running Even Though It’s Configured in EC2

I have a Laravel scheduler configured to run every 6 hours. Based on the schedule, it should have already executed, but I don’t see any expected results or changes from it. I also added a logger() ...
fyz 08's user avatar
  • 59
0 votes
0 answers
35 views

My laravel project implemention the socialite package, but fetche the error

public function handleGoogleCallback(Request $request) { $user = Socialite::driver('google')->user(); $findUser = User::where('google_id', $user->id)->first(); if ...
Akhtaruzzaman Sumon's user avatar
0 votes
0 answers
66 views

Laravel + Vue.js Error: "Module not found: Error: Can't resolve './vue/app'"

I am using laravel 11 with Vite.config. I am trying to add Vue.js to my project. The instructions say that I must do this in my app.js import "./bootstrap"; import { createApp } from "...
paul kendal23's user avatar

15 30 50 per page
1
2 3 4 5
35