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

amitRoy1999's avatar

Config for max concurrency for a singel job

I am using Laravel 11 with Horizon and a Redis queue. I have a job that runs daily — I dispatch 500 instances of this job for 500 numbers. The job calls an external API and updates my database; it takes 10–20 minutes depending on the API response. I want to know if there’s a simple configuration available where I can define, by job name, that only 100 concurrent instances of a

amitRoy1999's avatar
amitRoy1999's avatar Glukinho7mos agoLaravel
6
4
Last reply by Glukinho 7mos ago
donatello's avatar

Errors with puppeteer while setting up Browsershot for blade->PDF download

0 I have a laravel 10 app. In my index.blade.php I have list of workers, each of whom has a separate view page, in index.blade.php I have a print button, which on click should print the pdf version of the separate blade view page of the worker. Since dompdf doesn't support Arabic, flexbox etc. I thought of using browsershot by spatie. I followed instructions as per documenation

donatello's avatar
donatello's avatar 3xc-cchadw...7mos agoLaravel
7
2
Last reply by 3xc-cchadwick 7mos ago
OPTesseract's avatar

Laravel 6.x site not showing

I have a Laravel site that I recently transitioned over from being hosted by Wordpress. I am now using Bluehost for hosting, which is using pHp 8.2. I regenerated the vendor folder but am still seeing the file index when I go to my site url. What are the most common fixes for this?

OPTesseract's avatar
OPTesseract's avatar JussiManni...7mos agoLaravel
2
1
Last reply by JussiMannisto 7mos ago
AntV's avatar

Status of Cache Tags in laravel 12

I've noticed that after two versions of it being absent from the documentation, Cache tags reappeared. I tried searching to whether that means that the/most/some issues have been fixed but I did not find anything. The way it is written with no warning (other than it won't work on most drivers) makes me hopeful that it only means that they should work as intended. Has anyone any

AntV's avatar
AntV's avatar ian_h7mos agoLaravel
11
970
Last reply by ian_h 7mos ago
maikeltweak's avatar

Dynamically rendering components in livewire

Hey guys, Im working on a stepper component that renders different component based on the current step. I came up with the following test scenario, but its not working and i don't understand why: <?php namespace App\Http\Livewire; use Livewire\Component; class ParentTest extends Component { public $component_name; protected $listeners = ['setChild']; public

maikeltweak's avatar
maikeltweak's avatar kingsleyuc...7mos agoLivewire
9
45
Last reply by kingsleyuchenna 7mos ago
laracoft's avatar

How to create missing `bootstrap/providers.php`?

I just learnt about bootstrap/providers.php here https://laravel.com/docs/12.x/providers My Laravel 5 project was upgraded over the years to L12 now, but I don't see it. Who is suppose to create it? Developer or Laravel? If there are differences with config/app.php, who is the single source of truth?

laracoft's avatar
laracoft's avatar martinbean7mos agoLaravel
4
38
Last reply by martinbean 7mos ago
Shivamyadav's avatar

When will the laracasts black friday will arrive?

@JeffreyWay I am super excited to watch the laravel-workshop series. So waiting for the black friday deal to activate the subscription.

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...7mos agoGeneral
9
1
Last reply by Shivamyadav 7mos ago
june23's avatar

Show me your Github Profiles :)

Hi, to all the professional Laravel coders on laracasts.com :) Can you show me your Github Profiles with maybe a few of your side projects you have going on right now? That would be awesome :)

june23's avatar
june23's avatar june237mos agoLaravel
2
3
Last reply by june23 7mos ago
menashe's avatar

Return Object rather than Array of stdout

I use the following code to return an Eloquent ORM, including the latest price per item. $purchases = Purchase::with([ 'packaging', 'packaging.item', 'packaging.item.manufacturer', 'packaging.item.brand', 'packaging.unit', 'packaging.price' => function ($query) use ($shopping_date) { $query->select(DB::raw('

menashe's avatar
menashe's avatar krisi_gjik...7mos agoEloquent
3
1
Last reply by krisi_gjika 7mos ago
andrews-quest's avatar

Vite: Error generating types

Hi, when building with Vite I get the following message: error during build: [@laravel/vite-plugin-wayfinder] [plugin @laravel/vite-plugin-wayfinder] Error generating types: Error: Command failed: php artisan wayfinder:generate --with-form And that's only at the dev server. When I try the same on the release, everything runs smooth. I've tried comparing the composer.lock files

andrews-quest's avatar
andrews-quest's avatar faizH37mos agoVite
2
10
Last reply by faizH3 7mos ago
starrover's avatar

Livewire Navigate to use replaceState instead of pushState

Is there any way to replace state when navigate? Currently, it always push state. For example, if I call $this->redirect('/dashboard', navigate:true) after submitting a form, I want to make users not able to go back to the form by hitting the browser back button like when we use Javascript window.location.replace(). The solution from the A.I might work, but it doesn't actual

starrover's avatar
starrover's avatar maytham5537mos agoLivewire
2
1
Last reply by maytham553 7mos ago
oliver-modernmc's avatar

How to render livewire child components on the fly?

I have multiple livewire component wrapped insisde the if condition. I am able to load the initial page however the page just crashes whenever I go to the next step. <div class="flex flex-col gap-4 min-h-0" wire:key="questionnaire-step-{{ $step }}"> @if ($step == 1) <livewire:questionnaires.step1 wire:key="q-step1" /> @e

oliver-modernmc's avatar
oliver-modernmc's avatar valentin_v...7mos agoLivewire
7
1
Last reply by valentin_vranic 7mos ago
VSTeamParadoxical's avatar

Package Discovery/loading order

I have two custom package for laravel, I am using laravel11. is it possible to control the order in which these packages are discovered/loaded?

VSTeamParadoxical's avatar
VSTeamParadoxical's avatar laracoft7mos agoLaravel
9
82
Last reply by laracoft 7mos ago
fakeman2332's avatar

CSRF Token mismatch

Hi! I use NextJS and Laravel with cookie-based authorization (session). (Yes, it probably sounds crazy.) I am sending a request to /csrf-cookie endpoint, which responds successfully. But the POST request fails and returns a CSRF-token error. Im using this function: await axios.get(RETRIEVE_XSRF_TOKEN_URI).then(async csrf => { await axios.post(API_BASE_URI + '/discord/unl

fakeman2332's avatar
fakeman2332's avatar shaneomac7mos agoLaravel
9
9
Last reply by shaneomac 7mos ago
kajol's avatar

How I Structure Laravel APIs for Android Apps (Versioning, Auth, Queues, Performance & Multi-Tenant Setup)

Over the past few years I’ve been building Android apps paired with Laravel backends, and I kept running into the same problems: breaking older app versions because I changed an API inconsistent response formats heavy logic inside controllers causing UI delays background tasks slowing down mobile requests auth flows that worked in Postman but failed on real devices rate limiti

kajol's avatar
kajol's avatar jlrdw7mos agoDevOps
2
1
Last reply by jlrdw 7mos ago
ahmedde's avatar

Production-ready Docker configuration for Laravel?

Hi, I'm a beginner at Docker, and was looking if there was a ready-made configuration for Laravel using Docker. Being paid is totally ok. I'm looking for something resilient and tested that covers all the processes that comes with Laravel (Composer, Octane, Queues, Horizon, Cron, Reverb, Scout, etc). This configuration will be used later with Kubernetes for running horizontal s

ahmedde's avatar
ahmedde's avatar vincent150...7mos agoDevOps
1
1
Last reply by vincent15000 7mos ago
bjenkins24's avatar

$this->partialMock doesn't call the constructor?

I guess this is how partialMock works? But to me it seems to be useless now. There's a method I want to mock in a class, but the constructor has to be called or everything will fail. But for some reason it's not getting called? I don't see that in the docs and Google is not helping, which makes me think either I'm doing something very wrong or misunderstanding something very si

bjenkins24's avatar
bjenkins24's avatar vitorjusti...7mos agoTesting
7
71
Last reply by vitorjustin 7mos ago
Glukinho's avatar

Thread can't be seen while replying from mobile

Hi, I can't see a thread I'm replying to while replying from mobile - reply area takes all screen (see the screenshot). It's quite inconvenient as I often want to see original thread or quote something from it. I remember it was different few months ago, before last changes - reply area occupied about half of screen and a thread was seen in other half. It would be nice to have

Glukinho's avatar
Glukinho's avatar Glukinho7mos agoFeedback
0
1
wim91's avatar

Is it possible to track when a user has completed downloading a file using download()?

Is there a way to track when a user has completed a file upload? I want to rename the file after the upload is complete. Is there a way? I couldn't find one.

wim91's avatar
wim91's avatar martinbean7mos agoLaravel
3
3
Last reply by martinbean 7mos ago
Rens559's avatar

my mail wont send within the execution time

i am trying to send a mail using gmail but it doest work it's not sending within the execution time i have this in my env file MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME= my personal email MAIL_PASSWORD= my app password MAIL_FROM_ADDRESS=my personal email MAIL_FROM_NAME="${APP_NAME}" this is my mailable use App\Models\Order; class orderplace

Rens559's avatar
Rens559's avatar Rens5597mos agoLaravel
4
1
Last reply by Rens559 7mos ago
kanak09's avatar

Vite is building assets with hash in filename but hash is missing in manifest.json and js entry point

Hello CoMmunity, [TLDR] After "npm run build", my local website searches for /build/assets/Home-CAF9ffrI.css but real file is under /build/assets/Home-CAF9ffrI-b1476d91.css. A hash is added to the file but not in the manifest.json I am struggling so much building to production my Laravel-Vue-Inertia app. For now everything was running ultra well in dev mode using vi

kanak09's avatar
kanak09's avatar kanak097mos agoVite
4
9,619
Last reply by kanak09 7mos ago
AlessioGiacobbe's avatar

Cannot run --parallel tests

hello! i'm trying to run my integration and unit tests in parallel, i have followed the official guide and installed paratest as a dev dependency. But when i try to run them with the --parallel parameter i get NunoMaduro\Collision\Adapters\Laravel\Exceptions\RequirementsException Running Collision 8.x artisan test command in parallel requires at least ParaTest (brianium/parate

AlessioGiacobbe's avatar
AlessioGiacobbe's avatar vincent150...7mos agoTesting
6
6
Last reply by vincent15000 7mos ago
Shivamyadav's avatar

Send the request to register the user and getting redirect on the post method.

I am using laravel, inertia with vue. In my network tab I am getting this // 302 is post method ( I can also not see any errors into the form object) register 302 xhr / Redirect Register.vue:51 1.2 kB 103 ms register 200 xhr register my controller <?php namespace App\Http\Controllers; use App\Http\Requests\AuthenticationRequest; use App\Models\User; use Illuminate\Http\Re

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...7mos agoInertia
6
1
Last reply by Shivamyadav 7mos ago
xuan1118's avatar

SQLSTATE[08S01] Exception is Always Thrown When New Processes Are Created

Horizon Version 5.40.1 Laravel Version 11.46.1 | 12.10.1 PHP Version 8.4.14 Redis Driver PhpRedis Redis Version phpRedis 6.3.0 Database Driver & Version pdo_sqlsrv 5.12.0, ODBC Driver 18 for SQL Server 18.5.1.1 Description 'supervisor-1' => [ 'connection' => 'redis', 'queue' => ['default'], 'balance' => 'auto', 'autoScalingStrategy' => 'time',

xuan1118's avatar
xuan1118's avatar xuan11187mos agoLaravel
2
1
Last reply by xuan1118 7mos ago
earmsby's avatar

Can't deploy due to my own dumb error

This is really more of a Git question rather than Forge, but the app is on Forge and the issue is in running the deployment on Forge so here goes. I have a Laravel app on Forge with a Github repo. I stupidly made a tiny edit to a file directly on the server then totally forgot I did that. Then I made a bunch of other changes, added them to git, committed them and pushed them to

earmsby's avatar
earmsby's avatar kylef-fotf7mos agoForge
2
3
Last reply by kylef-fotf 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.