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

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...7mos agoGeneral
2
5
Last reply by garrettmassey 7mos 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...7mos agoTesting
3
1
Last reply by vincent15000 7mos 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...7mos agoJavaScript
3
1
Last reply by vincent15000 7mos 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 murugappan7mos agoLaravel
5
22
Last reply by murugappan 7mos 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 msaied7mos agoServers
4
1
Last reply by msaied 7mos 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...7mos agoLaravel
7
1
Last reply by OussamaMater 7mos 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 Stasgrin7mos agoGeneral
4
20
Last reply by Stasgrin 7mos 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 Tray27mos agoLaravel
3
1
Last reply by Tray2 7mos 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...7mos agoLaravel
9
1
Last reply by JussiMannisto 7mos 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...7mos agoVue
4
1
Last reply by vincent15000 7mos 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 Eimmaarose7mos agoFeedback
4
1
Last reply by Eimmaarose 7mos 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 Eimmaarose7mos agoFilament
4
10
Last reply by Eimmaarose 7mos 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...7mos agoInertia
2
1
Last reply by vincent15000 7mos 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...7mos 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 LaryAI7mos agoGeneral
1
43
Last reply by LaryAI 7mos 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 YazanStash7mos agoForge
5
1
Last reply by YazanStash 7mos 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...7mos agoLaravel
2
1
Last reply by minaremonshaker 7mos 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_pro7mos agoLaravel
11
1
Last reply by sev_pro 7mos 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 shaneomac7mos agoLaravel
9
729
Last reply by shaneomac 7mos 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...7mos agoInertia
5
1
Last reply by JussiMannisto 7mos ago
aoualmiaabdou's avatar

Spatie/laravel-pdf throw an error in laravel cloud

helo, i try to add pdf generation functionality to my filament dashboard, how ever in my local server everything is fine, but when i deploy the project to laravel cloud this error poop out when i try to generate a pdf : The command "PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=`npm root -g` node '/var/www/html/vendor/spatie/browsershot/src/../bin/browser.cjs' '{&q

aoualmiaabdou's avatar
aoualmiaabdou's avatar aecioneto7mos agoLaravel
7
7
Last reply by aecioneto 7mos ago
stackprogramer's avatar

Why The command "passport:keys" does not exist in php artisan::call

I installed successfully passport package, it works correctly in Laravel controller i need passport key generate again but i have error. How can solve this problem? I don't have access shell exec I want to do it in php. For me it is important to change passport key when I reinstalled my Laravel App. For Laravel key it works but for passport .... More: I have in laravel 10 thee

stackprogramer's avatar
stackprogramer's avatar BMO-VIK7mos agoGeneral
3
1
Last reply by BMO-VIK 7mos ago
woogygun's avatar

Validation Errors For Nested Fields

Im trying to validate a nested array of values with laravel. The fields are getting posted off with axios via vuejs as follows. { name: 'john doe', staff_profile: { mobile: '000 111 2222' } { Im validating the fields via a FormRequest object in laravel as follows: return [ 'name' => 'required' 'staff_profile.mobile' => 'required' ]; If the validation fa

woogygun's avatar
woogygun's avatar josepdecid7mos agoVue
3
1
Last reply by josepdecid 7mos ago
jackade2024's avatar

Multiple tables that share the same structure

Hi, I have a problem with multiple tables that share the same structure. For example, I have several orders tables for each year, such as orders_2020, orders_2021, and so on. These tables are created dynamically every year. Now, I want to handle all of them through a single model called OrderAll. I would like to use this model in a way that allows me to access all Eloquent func

jackade2024's avatar
jackade2024's avatar martinbean7mos agoEloquent
6
3
Last reply by martinbean 7mos ago
deebow's avatar

Correct way of executing array of invokable classes

First of all, I'm a Laravel newbie, and feel free to roast what I did :D Before getting to my main question, here’s the context: the app uses a lot of invokable action classes, and they’re executed like this: app(SomeActionClass::class)($data) So here are my questions: If these invokable classes don’t have any dependencies, why call them using app() instead of the classic (ne

deebow's avatar
deebow's avatar martinbean7mos agoCode Review
4
1
Last reply by martinbean 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.