Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

ehabafia's avatar

Laravel Cashier subscription downgrade.

Hello, I am using Laravel Cashier 12.0.1 with Laravel 12, everything seem to be working fine, except that the client doesn't want to do any refund. So, I am trying to dow a downgrade from a higher membership to a lower membership, expecting to have the new membership starts at the end of the period of the old membership. so, I tried the following methods: $request->user()-&g

ehabafia's avatar
ehabafia's avatar vincent150...7mos agoLaravel
2
1
Last reply by vincent15000 7mos ago
HungryBus's avatar

Laravel deploy with releases and shared .env

Hello, I am trying to set up a deploy for Laravel app on a server. I've decided to go with a symlinks of latest release, so this is how my server dir looks like: /var/www/html/server/ current -> releases/initial releases initial // this is where the git clone has been done shared .env // this is my .env file To make Laravel search for the correct .env fi

HungryBus's avatar
HungryBus's avatar jlrdw7mos agoDevOps
5
1
Last reply by jlrdw 7mos ago
akinsmosu's avatar

PHP/Laravel vs. C#/.NET?

Background I'm 44, single dad, transitioning from military into full-time software development. For the last 4 years I've been going to school full-time and I'm graduating with my CS degree in December. Over the last 2 years I've worked part-time for my university as a developer in C#/.NET. I really like Laravel and I'm working on a great project with for the College of Enginee

akinsmosu's avatar
akinsmosu's avatar jlrdw7mos agoGeneral
4
22
Last reply by jlrdw 7mos ago
baseciq's avatar

Problem with nested components

I'm a beginner with Livewire3 trying to figure it all out. Unfortunately, I've encountered a problem I can't solve. I built one large component containing a list of "products," which includes components for sorting and filtering the list by category. This component loops around a blade component with a product card. This blade component loads two Livewire components:

baseciq's avatar
baseciq's avatar baseciq7mos agoLivewire
3
1
Last reply by baseciq 7mos ago
muuucho's avatar

Cursor can't follow given instructions

I told Cursor AI to copy a Livewire Crud that I made, named Pubs and create Cars, Pets, you name it. I am very clear that I want it to use the exactly same blade components as in Users: New CRUD I have created a Livewire CRUD named Pubs to show you the layout and components I like you to use when I ask you to create a new Crud. Note that the table Pubs is searchable, filterabl

muuucho's avatar
muuucho's avatar FeatureCre...7mos agoGeneral
3
2
Last reply by FeatureCreepKing 7mos ago
DNABeast's avatar

Laravel tab missing from PHPStorm.

With Laravel Idea included with PHPStorm the Laravel tab appears on all Laravel projects by default. I had a problem where that functionality suddenly disappeared. I couldn't find the solution online so figured I put the fix here. Laravel Idea looks for details in your composer.lock file. Mine had been corrupted so a composer update was all it took.

DNABeast's avatar
DNABeast's avatar jlrdw7mos agoLaravel
3
1
Last reply by jlrdw 7mos ago
deebow's avatar

High memory usage on every request

Hi, I just installed clockwork so that I can observe and optimize heavy queries, and I noticed that every request, even the built-in api/health-check consumes 28~35mb memory. At first, I thought it was an issue related to clockwork, so I decided to try telescope, and it also reports the same memory usage. By the way, the project is running on docker container locally. I'm not p

deebow's avatar
deebow's avatar jlrdw7mos agoLaravel
7
1
Last reply by jlrdw 7mos ago
MaximovicDj's avatar

Laravel sanctum authentication

Hello everyone, I've been working and learning Laravel for a while now, I've been based on the Laravel API and I have some doubts about some of the issues. For example, I'm using Laravel Sanctum and when I do authentication, what is the best practice, to do login/register and other pages from scratch or to use one of the packages, I see that Laravel Breeze can be used with Sanc

MaximovicDj's avatar
MaximovicDj's avatar jlrdw7mos agoLaravel
2
1
Last reply by jlrdw 7mos ago
thewruck's avatar

GET example.com/build/assets/app-BY3viVot.css net::ERR_ABORTED 404 (Not Found)

I am using Ubuntu 24.04 and a LEMP stack and vite to host a Laravel 12 application. I am deploying with deployer and running npm run build on the server. Occasionally, I get hit with a caching bug. My manifest.json has the correct file names, and vite build files (the auto-generated .css and .js files) do exist, but the page is still looking to old .css file name from somewher

thewruck's avatar
thewruck's avatar thewruck7mos agoVite
0
3
HAXOR's avatar

Working on Crypoverse API Integration with Laravel

I’m currently working on a project to create detailed documentation for integrating Crypoverse with Laravel. I’m learning the best ways to connect APIs, handle authentication, and process crypto payments securely, and I’d love your help and guidance throughout this process to make the documentation as accurate and developer-friendly as possible.

HAXOR's avatar
HAXOR's avatar HAXOR7mos agoLaravel
0
1
thesimons's avatar

Independent form in each Filament 4 Tab

Hello, is it possible to have an independent form in each tab in Filament form? Basically I'd like to have Tab 1 with it's Save button that post the form in this tab, Tab 2 the same. Thanks, Simon

thesimons's avatar
thesimons's avatar thesimons7mos agoFilament
0
1
wim91's avatar

How to enter an unknown amount of data from a dynamic form into a database?

Hello everyone. I have a dynamic form that may contain an unknown number of fields. How can I best process this data in the controller and add it to the database? My ideas: Iterate through the received data and add it to the database, but what's the best way to do this? Call the class instance each time in the loop: $add = new Mymodal; Use the Create method? How would you

wim91's avatar
wim91's avatar baseciq7mos agoEloquent
9
2
Last reply by baseciq 7mos ago
Thomas_Shelby's avatar

Where is the Auth Middleware in Laravel 12?

I've been using Laravel since version 8, and it's been a great experience up to Laravel 11. Now that Laravel 12 is here, I decided to start my new project using it. However, I noticed some changes that took me by surprise. First, the default starter kit with Vue now uses ShadCN, which is fine, though I personally didn’t want it. Additionally, it uses TypeScript instead of regul

Thomas_Shelby's avatar
Thomas_Shelby's avatar AmadulHaqu...7mos agoLaravel
5
1,329
Last reply by AmadulHaque 7mos ago
s.spaan's avatar

Cloud Database

Hi, I have a database table (currently in MySQL) which has 6 columns, id, relation_id, timestamp and 4 int values which would probably receive around 10-20 million records per week. I would like to know which database solutions you (the community) would recommend in this situation. The cost aspect would also be an consideration. Preferably one which we would be able to query on

s.spaan's avatar
s.spaan's avatar JussiManni...7mos agoDevOps
9
2
Last reply by JussiMannisto 7mos ago
bashiro's avatar

Countdown

Hello everyone, I am having this issue of replacing the following values in a script var countDownDate = new Date("2025-10-31 15:37:25").getTime(); with laravel values in a blade $event_countdown_data->start_date $event_countdown_data->start_time Is there any one than can help me replace the date and time above with the laravel values ? I have tried this var

bashiro's avatar
bashiro's avatar bashiro7mos agoLaravel
5
3
Last reply by bashiro 7mos ago
wim91's avatar

What is the best way to retrieve data from related tables?

Hello everyone. I have three tables that are related. In the handlers, given the record ID of the first table, I need to get an array of values ​​from the third table with certain parameters. Can you tell me the best way to do this? I did it this way, but maybe it's not quite right and there's a better way. // model 1 table public function relation_1() { return $this->

wim91's avatar
wim91's avatar Glukinho7mos agoEloquent
5
1
Last reply by Glukinho 7mos ago
thesimons's avatar

->emailVerification() doesn't work in Filament 4

Hello, I wanted to send an email for verification in order to enable access the admin area. MerchantsPanelProvider.php public function panel(Panel $panel): Panel { return $panel ->id('merchants') ->path('/') ->domain(config('domains.merchant')) ->login() ->registration() ->emai

thesimons's avatar
thesimons's avatar thesimons7mos agoFilament
1
1
Last reply by thesimons 7mos ago
wim91's avatar

Is it possible to catch the "Crypt" exception?

Hello everyone. I've implemented encryption and decryption using the Crypt facade and started testing. I noticed that if I make changes to the encrypted token in a hidden field on the client side, I get the error Illuminate\Contracts\Encryption\DecryptException The payload is invalid. when attempting to decrypt. I tried catching exceptions, and this is what it looks like try

wim91's avatar
wim91's avatar Glukinho7mos agoLaravel
1
1
Last reply by Glukinho 7mos ago
mahmoudbakheet's avatar

How a Corrupt Cache drove a 9-Year Laravel Dev to Madness (and the "Nuclear" fix)

Hey Laracasters, I've been working with Laravel for nine years, and I've built more custom facades than I can count. The facade pattern is like a trusted friend; it's predictable, reliable, and always does what I expect. Or so I thought. Recently, I hit a wall with a custom Equipment facade. What seemed like a routine task spiraled into a two-day debugging nightmare. It was one

mahmoudbakheet's avatar
mahmoudbakheet's avatar mahmoudbak...7mos agoLaravel
0
1
thesimons's avatar

Remove /api and implement api.domain in Laravel 12 API

Hello, I'd like to move api to a dedicated subdomain. Currently I have the following in Routes/api.php Route::domain(config('domains.api'))->group(function () { Route::post('/checkout/create', [CheckoutController::class, 'create'])->name('api.checkout.create'); }); For reference config('domains.api') is "linked" to config/domains.php return [ 'app' =>

thesimons's avatar
thesimons's avatar thesimons7mos agoLaravel
2
1
Last reply by thesimons 7mos ago
deekepMaks's avatar

Symfony Exception

Every time I get a Symfony Exception error instead of the errors that Laravel itself displays The error looks like this: FailedToInitializePatternSearchException > ViewException > ViewException > ViewException > ViewException > ViewException > ViewException HTTP 500 Internal Server Error And the error message: Illuminate\View\ViewException: (View: /Users/...

deekepMaks's avatar
deekepMaks's avatar jlrdw7mos agoLaravel
14
450
Last reply by jlrdw 7mos ago
hmchenaran's avatar

How to Get User_id of Telegram by Phone Number in Laravel or Php

Hi. I need access to user_id of telegram by phone number. Is there a solution to this?

hmchenaran's avatar
hmchenaran's avatar ajisanjaya7mos agoLaravel
4
6
Last reply by ajisanjaya 7mos ago
Spiral's avatar

How can make this type of array in swagger php

I want to make this type of array in swagger php version 3 can you help about this i have 5 parameters in whcih one is base64 parameter in json body { "products": [ { "first_name": "string", "last_name": "string", "email": "string", "phone": "string", &q

Spiral's avatar
Spiral's avatar Spiral7mos agoLaravel
2
2
Last reply by Spiral 7mos ago
vincent15000's avatar

Livewire + Alpine + Alpine sort plugin

Hello, I have started another post with a similar subject. https://laracasts.com/discuss/channels/javascript/sort-items-with-alpinejs-display-bug As I have found new elements about this bug, I prefer start a new post. I have tried this. public function sortGroups($ids) { // } ... <div x-data="{ sort() { const ids = [...]; $wire.sortGroups({ ids: ids }); },

vincent15000's avatar
vincent15000's avatar vincent150...7mos agoLivewire
2
1
tanjilurrahman21's avatar

Design Patterns in Laravel

Is there any laracast video on design patterns like repository pattern? or why we should use design patterns ?

tanjilurrahman21's avatar
tanjilurrahman21's avatar Tray27mos agoLaravel
5
1
Last reply by Tray2 7mos ago

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.