Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

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...8mos agoGeneral
9
1
Last reply by Shivamyadav 8mos 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 june238mos agoLaravel
2
1
Last reply by june23 8mos 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...8mos agoEloquent
3
1
Last reply by krisi_gjika 8mos 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 faizH38mos agoVite
2
3
Last reply by faizH3 8mos 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 maytham5538mos agoLivewire
2
2
Last reply by maytham553 8mos 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...8mos agoLivewire
7
1
Last reply by valentin_vranic 8mos 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 laracoft8mos agoLaravel
9
1
Last reply by laracoft 8mos 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 shaneomac8mos agoLaravel
9
1
Last reply by shaneomac 8mos 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 jlrdw8mos agoDevOps
2
1
Last reply by jlrdw 8mos 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...8mos agoDevOps
1
1
Last reply by vincent15000 8mos 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...8mos agoTesting
7
1
Last reply by vitorjustin 8mos 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 Glukinho8mos 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 martinbean8mos agoLaravel
3
1
Last reply by martinbean 8mos 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 Rens5598mos agoLaravel
4
1
Last reply by Rens559 8mos 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 kanak098mos agoVite
4
28
Last reply by kanak09 8mos 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...8mos agoTesting
6
10
Last reply by vincent15000 8mos 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...8mos agoInertia
6
1
Last reply by Shivamyadav 8mos 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 xuan11188mos agoLaravel
2
1
Last reply by xuan1118 8mos 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-fotf8mos agoForge
2
1
Last reply by kylef-fotf 8mos ago
garrettmassey's avatar

PHP7.4 & composer issue with Herd - Allocation of JIT memory failed

We recently inherited a PHP7.4 site, and I'm trying to set up the environment locally so that I can begin working with it, but when I switch my PHP version to 7.4 in Herd, and try to run composer install (or try to run any composer command) I am met with this error: Fatal error: Uncaught ErrorException: preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. T

garrettmassey's avatar
garrettmassey's avatar garrettmas...8mos agoGeneral
2
1
Last reply by garrettmassey 8mos ago
AlessioGiacobbe's avatar

./artisan test wipes both main and tests db

hello! i'm running laravel 12 and testing with PHPunit, i have configured it like so in my phpunit.xml: <env name="DB_CONNECTION" value="pgsql_testing"/> and in my database.php config: 'pgsql_testing' => [ 'driver' => 'pgsql', 'database' => env('DB_DATABASE', '') . '_test', i use some tests with the RefreshDat

AlessioGiacobbe's avatar
AlessioGiacobbe's avatar vincent150...8mos agoTesting
3
1
Last reply by vincent15000 8mos ago
Chron's avatar

Dropzonejs: Is there a way to validate image dimensions?

I want to check the image dimensions before accepting the file. The problem is this, for eg, the maxFiles is set to 2, if I dragged like 5 files, it accepts all of them. That only happens when I added the last condition import fileTypeChecker from "file-type-checker"; accept: async function(file, done) { const buffer = await file.slice(0, 64).arrayBuffer(); con

Chron's avatar
Chron's avatar vincent150...8mos agoJavaScript
3
1
Last reply by vincent15000 8mos ago
pthai-it-dev's avatar

Connection problem with mariadb in laragon

This is my first time i use laragon. After switching to mariadb version 10.6.3 or 10.6.7, i change password to 1234. But everytime i access to database, i get error "Access denied for user 'root'@'localhost' (using password: YES)". When i use mariadb version 10.2.x, everything is normal, i change password to 1234 and connected successfully to the database. Can anyone

pthai-it-dev's avatar
pthai-it-dev's avatar murugappan8mos agoLaravel
5
1
Last reply by murugappan 8mos ago
Ashraam's avatar

Load balancer and CSRF Token exception

I am testing an infrastructure for a web application which include a load balancer, a database server and 2 web servers. All the server are on the same datacenter (provided by Digital Ocean) The redis server is a managed database product from DO too. I'm using laravel 6.6. The load balancer works well (using the Round Robin algorithm), but when I try to login, I always got 419

Ashraam's avatar
Ashraam's avatar msaied8mos agoServers
4
1
Last reply by msaied 8mos ago
deebow's avatar

Laravel Service Container: Am I doing the right thing?

I have an invokable action class called: AttachMembersToRoom . Now, aside from basic form request validations, I also have complex validation, like comparing values across members, identify overlapping member rooms, and more... so I decided to make each validations into custom invokable classes, like CompareMembersValues, IdentifyOverlaps , and more.... At first, I did the foll

deebow's avatar
deebow's avatar OussamaMat...8mos agoLaravel
7
2
Last reply by OussamaMater 8mos 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.