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

mona_salih's avatar

Error in db migration

I tried to create a migration for my tables, and everything seemed correct, but Laravel still refused to run the migration. The table order is also correct: 2025_10_27_134605_create_doctors_table.php 2025_10_27_134615_create_doctor_schedules_table.php 2025_10_27_134625_create_appointments_table.php In the doctor_schedules table, I defined the schema as shown below. doctor_sched

mona_salih's avatar
mona_salih's avatar JussiManni...7mos agoLaravel
8
1
Last reply by JussiMannisto 7mos ago
chern123's avatar

Cookie::queue not attaching to response

Looking at the Laravel documentation, it appears you can attach a cookie to your next outgoing response by utilizing the Cookie::queue method. However, after trying to do so, it looks like the cookies are not being passed back: Cookie::queue('client_cookie', 'test', 1000); I have tried variations where you pass in a Cookie::make(), Cookie::Forever(), but none of these work. H

chern123's avatar
chern123's avatar Yazan_Majd...7mos agoLaravel
2
2
Last reply by Yazan_Majdalawi 7mos ago
bhavesh-786's avatar

How to Handle Long-Running Scripts Without Affecting Other Users (Multi-threading or Parallel Processing in Laravel)

Hello everyone, I’m working on a Laravel application, and I’ve noticed that when a large or heavy script runs (for example, fetching big data from the database), it causes the system to hang or become very slow for other users accessing the site at the same time. Is there any way to create a multi-threaded environment or run such long processes in parallel so that they don’t bl

bhavesh-786's avatar
bhavesh-786's avatar martinbean7mos agoLaravel
14
1
Last reply by martinbean 7mos ago
NielsNumbers's avatar

Cashier: Subscription with metered and fixed price?

Hey everyone, I currently have Stripe set up with two separate subscriptions: Subscription A: a fixed-price monthly plan Subscription B: a metered (usage-based) monthly plan When a user registers, they can choose to sign up for both. Right now, I create them like this: $user->newSubscription('sub_a', $priceA) ->create('pm_card_visa'); $user->newSubscription('sub_b

NielsNumbers's avatar
NielsNumbers's avatar NielsNumbe...7mos agoLaravel
6
2
Last reply by NielsNumbers 7mos ago
marcobax's avatar

Excellent platform for learning

Hi all! Just wanted to post a quick message and say I've been impressed and happy with Laracasts as a platform. Just finished my first course on React by Simon Vrachliotis which was excellent! Coming from a PHP background it has been great fun properly trying out React for the first time! How long have you been working with React? And what do you think are great tips for React

marcobax's avatar
marcobax's avatar LaryAI7mos agoReact
1
2
Last reply by LaryAI 7mos ago
NielsNumbers's avatar

Experimenting with Claude AI for Coding in PHPStorm and the Console

Hey Laracasts Team, this is a request for a video that explores how Claude AI can be used to assist in Laravel/PHP development — both inside PHPStorm and directly in the console. It doesn’t have to be a polished course. More like: “Let’s try this together and see what happens.” Things you could cover: Setting up and using Claude in PHPStorm Calling the API from a CLI tool or s

NielsNumbers's avatar
NielsNumbers's avatar LaryAI7mos agoAI
1
101
Last reply by LaryAI 7mos ago
akvaskov's avatar

Get form schema of an action

Hi, I have a table and one toolbar action ->toolbarActions([ Action::make('settings') ->form([ Fieldset::make('chahgeLogPeriodSettings') ->label('Use stock change logs') ->schema([ DatePicker::make('chahgeLog

akvaskov's avatar
akvaskov's avatar jaseofspad...7mos agoFilament
1
1
Last reply by jaseofspades88 7mos ago
SPresnac's avatar

Rerender JavaScript stuff on page after search or pagination

Hej, i do have a list of People that is paginated (by 12, just for saying). Every one has a button right beside the name with a flux:modal (but the problem is the same with other js stuff, just as example). So, on the first page, all works well. But when changing the page or searching someone who was not initially in the list of the first 12, the modal will not open. I am sugge

SPresnac's avatar
SPresnac's avatar SPresnac7mos agoLivewire
3
1
Last reply by SPresnac 7mos ago
portaldev's avatar

Need help building a portal in Laravel and Vue

Hi all, we are working on an insurance portal built in Laravel and need help in several areas, both frontend and backend. Ideally, we would like to hire a Laravel expert to work on this full-time. To give you some background, we are building a product for parental leave insurance (helping new parents take time off for childcare). If you are interested, please email - devops at

portaldev's avatar
portaldev's avatar LaryAI7mos agoGeneral
1
1
Last reply by LaryAI 7mos ago
Chron's avatar

How to validate existence and ownership of a data?

I don't know if this is recommended or there is a cleaner way to do it but I have a custom rule that checks the ownership. Is this fine? //OwnsToy.php namespace App\Rules; use App\Models\Child; //.. private $child; public function __construct(Child $child) { $this->child = $child; } public function validate(string $attribute, mixed $value, Closure $fail): void { $toy

Chron's avatar
Chron's avatar Chron7mos agoLaravel
2
1
Last reply by Chron 7mos ago
nekooee's avatar

Horizon doesn’t execute delayed jobs scheduled for the next day (24h+ delays)

I’m facing a strange issue with Laravel Horizon (v5.37) using Redis queues. Short delays (a few seconds or minutes) work perfectly, but any job delayed for the next day (e.g. 24h later) never gets executed automatically — unless I manually re-dispatch it or pause/start my system again. Here’s my configuration: config/horizon.php 'name' => env('HORIZON_NAME'), 'domain' =>

nekooee's avatar
nekooee's avatar nekooee7mos agoLaravel
0
1
tariqbilal's avatar

Where clause not working on mongodb/laravel-mongodb 5.5 laravel 12

Laravel-mongodb Version: 5.5 PHP Version: 8.3 Laravel Version: 12.0 Database Driver & Version: MongoDB 4.4 Description: After upgrading to Laravel 12, the where() clause in Eloquent queries with MongoDB has stopped working. Queries that were functioning correctly in previous Laravel versions now return null or empty results. Steps to reproduce Upgrade from Laravel 11 to

tariqbilal's avatar
tariqbilal's avatar tariqbilal7mos agoEloquent
2
2
Last reply by tariqbilal 7mos ago
Yousarssif's avatar

Emit to parent element on livewire.

I want to update the parent element when I child got updated. assuming I have this livewire like component function which sets or create likes. public function postLiked($id) { if (! $this->liked) { Like::create([ 'user_id' => auth()->user()->id, 'post_id' => $id, ]); $this->liked

Yousarssif's avatar
Yousarssif's avatar lgmm7mos agoLivewire
5
1
Last reply by lgmm 7mos ago
rassloff's avatar

Laravel 12 Problem after a new installation

I got this error ReflectionException vendor/laravel/framework/src/Illuminate/Routing/ResolvesRouteDependencies.php:88 Class "http\Client\Request" does not exist i am using Laravel for some years on my MAC with the newest OS Version. other projects running good, no problems. But what is the Problem with the new Version ???

rassloff's avatar
rassloff's avatar Snapey7mos agoDevOps
4
2
Last reply by Snapey 7mos ago
Ligonsker's avatar

Can't get Spatie Browsershot to work, few different errors

Hello, I am trying to make Spatie Browsershot work on Windows with XAMPP. First of all I installed puppeteer: npm install -g puppeteer At first I wanted to output the result directly to the browser, so I had the following code in the controller: use Spatie\Browsershot\Browsershot; public function createPDFWithBrowsershot(Request $request) { Browsershot::html('

Ligonsker's avatar
Ligonsker's avatar lance2k7mos agoCode Review
3
2
Last reply by lance2k 7mos ago
Jboomer's avatar

Larvel Redis Batches not running in queue

I have the weird issue with redis. If i dispatch the job on a particiular queeu in this case "redis-dev" it will run with out issue. If i bath the job the batch gets created in the database, the job gets created in redis i can see it. It alwys shows pending, and when i run php artisan queue:monitor redis-dev it says there are no jobs even though i can clearly se

Jboomer's avatar
Jboomer's avatar Yusuke19987mos agoLaravel
10
1
Last reply by Yusuke1998 7mos ago
seydmeti's avatar

How to download instagram story without login in php

I'm going to download instgram story and highlights without login in laravel. have you any idea? tnx for helping

seydmeti's avatar
seydmeti's avatar nathjas7mos agoLaravel
8
6
Last reply by nathjas 7mos ago
kousalikjan's avatar

Inertia and Translations

Hello, I am using Laravel, Inertia and Vue combination. I am dealing with translations. I tried using laravel-vue-i18n package but it's loading poorly on the first load (https://github.com/xiCO2k/laravel-vue-i18n/issues/213). How are you managing translations in your apps?

kousalikjan's avatar
kousalikjan's avatar LaryAI7mos agoInertia
1
10
Last reply by LaryAI 7mos ago
Scarf84's avatar

Error could not find driver

I have a problem. I can't run the command "php artisan optimize:clear." It gives me the error "could not find driver (Connection: sqlsrv, SQL: delete from [cache])" The rest of the command works correctly, only this one. How can I fix it?

Scarf84's avatar
Scarf84's avatar martinbean7mos agoLaravel
11
1
Last reply by martinbean 7mos ago
Chron's avatar

Validations & Custom Rule

Is there a way to prevent the Custom Rule from running when the prior rules failed? $userInput = [ 'offset' => [ 'a' => "abcd", 'b' => "abcd, ], 'photo' => $file ]; in FormRequest //... ['photo' => ['image']], ['offset' => ['bail', 'array:x,y', new OffsetCheck($this->photo)]], ['offset.*' => ['numeric'], OffsetCh

Chron's avatar
Chron's avatar Glukinho7mos agoLaravel
8
8
Last reply by Glukinho 7mos ago
lide's avatar

Request attributes

In Laravel 5.1 in middleware I add custom attribute to request $request->attributes->add(['company' => $company]); And in Controller.php i have acces this with following code use Illuminate\Http\Request; public function __construct(Request $request) { $company = $request->get('company'); } But now in Laravel 5.5 this not work anymore, any suggestions?

lide's avatar
lide's avatar martinbean7mos agoLaravel
10
4
Last reply by martinbean 7mos ago
Inquisitive's avatar

Best way to enable laravel debugbar on for superadmin or for certain ip

For now, I have created a middleware and added it into the 'web' group in kernel. MY DebugBarMiddleware have: { $debugBarEnabledIps = DebugBarWhitelistedIpAddress::where('updated_at','>=', Carbon::now()->subDays(7)) ->pluck('ip_address')->toArray(); if (auth()->check() && in_array($request->ip(), $debugBarEnabledIps)) {

Inquisitive's avatar
Inquisitive's avatar martinbean7mos agoLaravel
6
1
Last reply by martinbean 7mos ago
modiparth333-jpg's avatar

Livewire properties are not reactive when set in a method and the view does not update.

@if (!$sageIntegrationActive) <div class="row"> <div class="col-12"> <div class="alert alert-info">Sage token has expired. This trade application cannot be reviewed.</div> </div> </div> @endif <div class="row mt-2"> <div class="col-12"> <div class=&

modiparth333-jpg's avatar
modiparth333-jpg's avatar valentin_v...7mos agoLivewire
3
1
Last reply by valentin_vranic 7mos ago
Dicanio's avatar

Socialite with TwitterOAuth2

Hello, I wanted to use Socialite for the very first time but i have encountered problem that i cant solve, every provider works fine but twitter-oauth-2 return Socialite::driver($driver) ->stateless() ->redirect() ->getTargetUrl(); there's twitter-oauth-2 under $driver and it returns such an error "message" =

Dicanio's avatar
Dicanio's avatar chuks157mos agoLaravel
7
1
Last reply by chuks15 7mos ago
InCo2025's avatar

Sanctum Cookies 500 Error without response

Hey Guys, I have a vue frontend running via docker and nginx and a laravel 12 application as my backend working as an api and a little admin panel. I'm currently switching from tokens to cookies (which was working fine). I've followed the instructions of the laravel documentation. Here is the behavior: I can fetch the sanctum cookie and login. Then when I send a request to a ro

InCo2025's avatar
InCo2025's avatar TimGo977mos agoLaravel
4
2
Last reply by TimGo97 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.