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

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 kanak096mos agoVite
4
8,958
Last reply by kanak09 6mos 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...6mos agoTesting
6
1
Last reply by vincent15000 6mos 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...6mos agoInertia
6
1
Last reply by Shivamyadav 6mos 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 xuan11186mos agoLaravel
2
1
Last reply by xuan1118 6mos 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-fotf6mos agoForge
2
5
Last reply by kylef-fotf 6mos 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...6mos agoGeneral
2
1
Last reply by garrettmassey 6mos 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...6mos agoTesting
3
1
Last reply by vincent15000 6mos 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...6mos agoJavaScript
3
1
Last reply by vincent15000 6mos 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 murugappan6mos agoLaravel
5
3
Last reply by murugappan 6mos 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 msaied6mos agoServers
4
1
Last reply by msaied 6mos 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...6mos agoLaravel
7
1
Last reply by OussamaMater 6mos ago
cmackinlay's avatar

Very slow local application response time

Hello, I have a large application in production that generally runs well - some page loads can take a few hundred ms but generally it works fine. Locally though (Windows, Herd Pro) each page load takes many seconds and even a simple Livewire interaction will generally take more than a second. In Debugbar almost all of the time is attributed to "Application" and "

cmackinlay's avatar
cmackinlay's avatar Stasgrin6mos agoGeneral
4
1
Last reply by Stasgrin 6mos ago
rt0611's avatar

Testing with Multiple DB Connections

Version 11.31. I have two MySQL connections; one table on connection A references a parent table on connection B. When I run tests with both connections in transactions (using DatabaseTransactions), inserting the child row blocks until MySQL throws Error: 1205 Lock wait timeout exceeded. I’d prefer to use RefreshDatabase so both databases roll back after each test, but running

rt0611's avatar
rt0611's avatar Tray26mos agoLaravel
3
1
Last reply by Tray2 6mos ago
bazz3l's avatar

Policies and production server

Hey all i have a question i am working a small project for learning and come across someting with the policies. My project works on local but as soon as i push it to my production server the policies fail. They always return false has anyone any ideas of why this might be.

bazz3l's avatar
bazz3l's avatar JussiManni...6mos agoLaravel
9
1
Last reply by JussiMannisto 6mos ago
vincent15000's avatar

Laravel Sanctum / Fortify / VueJS

Hello, I'm using Sanctum / Fortify / VueJS. For authentication, I have a VueJS login page and it works fine. To check if the user is authenticated, I retrieve the authenticated user via the API. If the request fails, it means that the user isn't authenticated. But in this case I get a JS error. Failed to load resource: the server responded with a status of 401 () How is it pos

vincent15000's avatar
vincent15000's avatar vincent150...6mos agoVue
4
3
Last reply by vincent15000 6mos ago
burntsock's avatar

HTTP 403/"Access Forbidden" when attempting to submit an exam answer

In creation of this post, I just found that this is a paid feature. Maybe have a badge on the button and/or a modal appear when clicked to explain this?

burntsock's avatar
burntsock's avatar Eimmaarose6mos agoFeedback
4
1
Last reply by Eimmaarose 6mos ago
thesimons's avatar

Ordering records with Filament

Hello, I have a database table with some records. I'd like to decide the order how these records are showed for users (I have created an order field for that). Is there a way, with Filament, to order them? Like a drag and drop in the table or arrow up/down. Thanks, Simon

thesimons's avatar
thesimons's avatar Eimmaarose6mos agoFilament
4
2
Last reply by Eimmaarose 6mos ago
Maria30's avatar

how can i make login and register links appear in the (navigation) layout of an inertia app with vue and jetstram?

Im trying to make a single layout for both guests and auth users.

Maria30's avatar
Maria30's avatar vincent150...6mos agoInertia
2
1
Last reply by vincent15000 6mos ago
myregistration's avatar

How can I access $data from within Filament's Wizard submitAction() method?

Is there a way to access $data from within Filament's Wizard submitAction() method? Thanks

myregistration's avatar
myregistration's avatar myregistra...6mos agoFilament
0
1
shmaltz's avatar

Saas Starter Kits - Larafast vs Saasykit vs Others

I'm looking to pick up a starter kit this Black Friday and was wondering if anyone had any experience with Larafast, Saasykit, or any other saas starter kits (even free ones). I want something that can give me subscriptions, one time payments, and maybe multi-tenancy out of the box. Any recommendations? Thanks!

shmaltz's avatar
shmaltz's avatar LaryAI6mos agoGeneral
1
5
Last reply by LaryAI 6mos ago
jtslaravel's avatar

Examples for Custom Git Repo in Forge

I am trying to find an example of what the correct syntax is for adding a Custom Git Repo (in this case AWS CodeCommit) to Forge. Forge lists the syntax as [email protected]:user/repository.git In this case the user is the ID generated by AWS IAM when you upload the public key. So for example I've tried things like [email protected]:AWSKEY/git-codecommit.re

jtslaravel's avatar
jtslaravel's avatar YazanStash6mos agoForge
5
1
Last reply by YazanStash 6mos ago
minaremonshaker's avatar

Returning Internal Server Errors as JSON in a Laravel API

Hi, I’m building an API, but I’m facing an issue where internal server errors are always returned as an HTML view instead of a JSON response. What options do I have to make these errors return as JSON? For example, in Postman, if I set the Accept header to application/json, the exception is returned as JSON — that’s one approach I’ve tried. I also attempted using a middleware,

minaremonshaker's avatar
minaremonshaker's avatar minaremons...6mos agoLaravel
2
1
Last reply by minaremonshaker 6mos ago
bmac32's avatar

Laravel Creating Random Cookies

In addition to my session and XSRF-TOKEN cookies, my laravel project creates multiple cookies with random strings. I'm not sure where or how these get set but we are running into an issue where our app is creating 5-6 of these cookies and is causing nginx to error out with "Request Header Or Cookie Too Large ". I am having a hard time finding any documentation on this

bmac32's avatar
bmac32's avatar sev_pro6mos agoLaravel
11
1
Last reply by sev_pro 6mos ago
shaneomac's avatar

CSRF - Why is it so painful? Laravel 12 w React/Inertia

can anyone add some input as how to best handle CSRF throughout a Laravel/React app? It was immensely painful to figure out with partial and occasional failures. Different ENVs failed at different rates. From our app to Stripe and back was a common 419 error. Our checkout session is excluded from CSRF to make it seamless. I have since mitigated almost entirely with a React Util

shaneomac's avatar
shaneomac's avatar shaneomac6mos agoLaravel
9
468
Last reply by shaneomac 6mos ago
mani273's avatar

Losing hope with inertia js ssr with react (typescript) and laravel. Hydration mismatch error but technically there should not be any mismatch!

I am unable to figure out why these errors occur. Initially I was faced with the route not defined error. I think I have figured it out to some extent (still not have fixed it) but now I am facing the hydration mismatch error! The problem is this error still pops up if I replace everything with a simple div! Here is the error: Browser console error Uncaught Error: Hydration fai

mani273's avatar
mani273's avatar JussiManni...6mos agoInertia
5
40
Last reply by JussiMannisto 6mos 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.