Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

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 Stasgrin8mos agoGeneral
4
1
Last reply by Stasgrin 8mos 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 Tray28mos agoLaravel
3
1
Last reply by Tray2 8mos 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...8mos agoLaravel
9
1
Last reply by JussiMannisto 8mos 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...8mos agoVue
4
1
Last reply by vincent15000 8mos 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 Eimmaarose8mos agoFeedback
4
1
Last reply by Eimmaarose 8mos 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 Eimmaarose8mos agoFilament
4
1
Last reply by Eimmaarose 8mos 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...8mos agoInertia
2
2
Last reply by vincent15000 8mos 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...8mos 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 LaryAI8mos agoGeneral
1
1
Last reply by LaryAI 8mos 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 YazanStash8mos agoForge
5
1
Last reply by YazanStash 8mos 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...8mos agoLaravel
2
1
Last reply by minaremonshaker 8mos 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_pro8mos agoLaravel
11
1
Last reply by sev_pro 8mos 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 shaneomac8mos agoLaravel
9
2
Last reply by shaneomac 8mos 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...8mos agoInertia
5
2
Last reply by JussiMannisto 8mos 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 aecioneto8mos agoLaravel
7
1
Last reply by aecioneto 8mos 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-VIK8mos agoGeneral
3
1
Last reply by BMO-VIK 8mos 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 josepdecid8mos agoVue
3
1
Last reply by josepdecid 8mos 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 martinbean8mos agoEloquent
6
1
Last reply by martinbean 8mos 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 martinbean8mos agoCode Review
4
1
Last reply by martinbean 8mos ago
fogley's avatar

Redirecting to route with additional query parameters

I tried redirecting like this... return redirect()->route('home', [ 'param1' => 'val1', 'param2' => 'val2', ]); Expecting it to redirect to the following URL... https://domain.tld/path?param1=val1&param2=val2 However, this is not the case. The array parameter passed to the route() function only seems to take into account variables that have been defined direc

fogley's avatar
fogley's avatar fogley8mos agoLaravel
5
5
Last reply by fogley 8mos ago
3rgo's avatar

Parallel testing with multiple database connections

Hi ! I'm currently working on an API that needs to have multiple database connections. At the moment it uses : 1 MySQL + 1 PostgreSQL + 1 MongoDB. MySQL and PostgreSQL may be merged in the future, but it will at least keep a MongoDB in parallel of the PostgreSQL. Connection to MongoDB is handled by the jenssegers/mongodb package This API is tested with Pest, but the current ~90

3rgo's avatar
3rgo's avatar Čamo8mos agoTesting
7
1
Last reply by Čamo 8mos ago
FireBlade's avatar

Delete Model Livewire Component

I have a Livewire component that deletes models : ... public function setRecord($model,$recordId){ $this->resetDialog(); $this->model = $model; $this->recordId = $recordId; } ... setRecord is called from Blade template : ```php @if($canDelete) <x-jet-dropdown-link @click="Livewire.emit('setDeleteRecord','Post',{

FireBlade's avatar
FireBlade's avatar FireBlade8mos agoLivewire
7
1
Last reply by FireBlade 8mos ago
Darkdawg's avatar

Autocompletion for public/computed properties in Livewire views?

Looking for extensions/tips to improve my VS Code experience with Livewire 3/4 MFC/SFC. I'm currently using the MFC/class based approach, but what bugs me the most is that my views have zero knowledge of my classes, so whenever I reference any variable all I get is (global variable) $category even if this is defined as public Category $category in the class. Not sure if this is

Darkdawg's avatar
Darkdawg's avatar Darkdawg8mos agoLivewire
2
1
Last reply by Darkdawg 8mos ago
Gabotronix's avatar

getting 419 CSFR Token Mismatch on POST/PUT requests to unprotected api routes with axios

I have been getting this error for the last week on all my axios POST/PUT/DELETE requests (GET requests work properly) to my api routes, eventhough I'm not using sanctum or any middleware to protect these routes. I added the proper meta-tag to all my blade files: <meta name="csrf-token" content="{{ csrf_token() }}"> I'm attaching csrf token to all my

Gabotronix's avatar
Gabotronix's avatar Eimmaarose8mos agoGeneral
3
2
Last reply by Eimmaarose 8mos ago
n2fole00's avatar

Xdebug not running on Sail

Hi, I can't get xdebug working on Sail. I've followed the steps in the Laravel Sail docs and also tried this article https://iwasherefirst2.medium.com/how-to-set-up-xdebug-with-laravel-sail-a-complete-guide-98d6498b382a My launch.json is { "version": "0.2.0", "configurations": [ { "name": "Listen for Xdebug (Sail)", &q

n2fole00's avatar
n2fole00's avatar jlrdw8mos agoDevOps
1
1
Last reply by jlrdw 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.