Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

Lykos22's avatar

403 access forbidden on storage/public folder

Hi, I have seen the posts from a few other people having the same issue, but although I have tried the suggested solutions I still have this problem getting a 403 access forbidden when trying to access the image url on the browser. I am not sure if it is because my Laravel app is running on Docker, maybe some further input would help. What I have done far: I have created a sym

Lykos22's avatar
Lykos22's avatar islamsamy2...7mos agoLaravel
3
1
Last reply by islamsamy214 7mos ago
bvfi-dev's avatar

Livewire FormObject isDirty() equivalent?

Im trying to use FormObjects for all my livewire components to reduce duplicate code, but I keep running into an issue where I need to check if the model was changed, like when in an edit form and checking if the initial state and save state are different, so that I can save on my API calls. In my Livewire Form, I have: public function preFillEntry(User $entry):void { $entry

bvfi-dev's avatar
bvfi-dev's avatar bvfi-dev7mos agoLivewire
2
4
Last reply by bvfi-dev 7mos ago
dmytroshved's avatar

Laravel Sanctum SPA Auth: 419 Token mismatch error in logout

Hey everyone I am struggling with annoying 419 error trying to logout. The login and register are working fine. My api and spa are on the same top-level domain, but different ports api - localhost:8000 spa (vue) - localhost:5173 After hours of debugging and changing the different settings I still get the 419 backend: env APP_URL=http://localhost:8000 FRONTEND_URL=http://localho

dmytroshved's avatar
dmytroshved's avatar Dmytro_Shv...7mos agoLaravel
13
1
Last reply by Dmytro_Shved 7mos ago
zufflie's avatar

Laravel Pest Test fails when run together, but pass when alone

Hey Guys. I watched Pest Driven Laravel and wanted to implement it in my own personal Project. I have a weird error which i can not get around. I have a Backend Part in Routes, shielded by the these middlewares: Route::middleware(['auth:sanctum', config('jetstream.auth_session'), Admin::class]) Admin::class is just checking. if (! Auth::user()->isAdmin()) { ret

zufflie's avatar
zufflie's avatar Shafqat_al...7mos agoDevOps
6
1
Last reply by Shafqat_ali 7mos ago
sllkevin's avatar

How to return Flux component from a class method?

Is there a way to have a class method return a Flux component? My work around was to create my own blade component to hold the Flux tags then return view('my-flux-component'). But can I just call Flux directly without concatenating a string in the method? For example, I have a list of Posts I want to add an action menu: View, Delete, etc. I want to have an action class that han

sllkevin's avatar
sllkevin's avatar Snapey7mos agoLivewire
3
1
Last reply by Snapey 7mos ago
DhPandya's avatar

Laracasts 2FA

Hello @JeffreyWay First of all, thank you very much for the high-quality content Laracasts provides. Today, I was just walking through the profile section and noticed that Laracasts didn't have 2FA. What are your thoughts on it? Are you adding it by near time? Regards,

DhPandya's avatar
DhPandya's avatar jlrdw7mos agoFeedback
5
1
Last reply by jlrdw 7mos ago
ctrlaltdelme's avatar

The process has been signaled with signal "4" when running tests

When running tests for my Inertia + Vue app, I get the error in the title. Logs here: [2025-11-26 00:59:39] local.ERROR: The process has been signaled with signal "4". {"exception":"[object] (Symfony\\Component\\Process\\Exception\\ProcessSignaledException(code: 0): The process has been signaled with signal \"4\". at /home/ubuntuserver/Phpstor

ctrlaltdelme's avatar
ctrlaltdelme's avatar jlrdw7mos agoLaravel
3
1
Last reply by jlrdw 7mos ago
earmsby's avatar

prompt for input in bulk action?

I have a bulk action on a Filament relation manager that allows the user to move a group of works from one contract to another. Right now (for development) I have hard coded the new contract to move the works to like so: BulkAction::make('move') ->icon(Heroicon::ArrowRight) ->label('Move to contract')

earmsby's avatar
earmsby's avatar earmsby7mos agoFilament
2
1
Last reply by earmsby 7mos ago
sllkevin's avatar

Tinker is returning only the Model namespace, without properties, only sometimes.

Why is this happening? See my first three queries that won't return any data, but using find() works great. I have cleared cache, routes, config. I've dumped autoload. I've downgraded versions. I've tried another project where it works as expected. If I add ->id to any of them, it works. Why?? > \Laravel\Cashier\Subscription::query()->where('id','=','3')->first() =

sllkevin's avatar
sllkevin's avatar tykus7mos agoGeneral
4
3
Last reply by tykus 7mos ago
earmsby's avatar

Search results in Attach method

In a Filament 4 relation manager I have an attach method like this: AttachAction::make() ->label('Link Existing Account') ->schema(fn(AttachAction $action): array => [ $action->getRecordSelect(), Select::make('author_role') ->options(function () {

earmsby's avatar
earmsby's avatar earmsby7mos agoFilament
2
1
Last reply by earmsby 7mos ago
adamnet's avatar

laravel keep pagination after editing a record

Hello. I am using Laravel pagination and would like to know if there is a way after editing a record, to return to the page where this record was found. Any example would help a lot! Thanks

adamnet's avatar
adamnet's avatar adamnet7mos agoLaravel
0
1
rikw's avatar

Flash messages in Livewire

Hi all, By no way can I get flash messages to work in my Lirewire components. Some posts say it cannot be done, others give code sample that do not do anything (for me). Who has the definitive answer? Basically I have a form and a list component. After saving the form I want to redirect to the list and show a flash message that the form was successfully saved. Who can help me o

rikw's avatar
rikw's avatar bvfi-dev7mos agoLivewire
3
7
Last reply by bvfi-dev 7mos ago
pmaechler's avatar

Laravel Authentication partially working

Hello I'm struggeling with an Authentication problem since many hours. Background Created an Application with Laravel 11 from scratch (eloquent, some livewire stuff, etc). Working fine so far Now I need to add authentication and authorization to the app. If possible via Azure socialite plugin. But first I'll do it agains the local database After filling out the login form, i ge

pmaechler's avatar
pmaechler's avatar Snapey7mos agoLaravel
10
3
Last reply by Snapey 7mos ago
ismail_bourbie's avatar

Laravel Authentication logic.

I’m using a custom model (e.g., an App model) for authentication with Laravel Sanctum. Do I need to make this model implement the Authenticatable interface? If so, it seems to imply that the model uses passwords and the rememberToken field, even though Sanctum does not require them. This also feels like a violation of the Interface Segregation Principle. In practice, implementi

ismail_bourbie's avatar
ismail_bourbie's avatar ismail_bou...7mos agoLaravel
2
1
Last reply by ismail_bourbie 7mos ago
deebow's avatar

Vue/React codebase structure reference

Most of my career has been spent working with Angular. While I’ve also used Vue 2 and React in the past, Angular is where I’m most comfortable mainly because it’s opinionated, structured, and follows an MVC-style approach, so I never have to worry too much about organizing the project. I’m starting a new project now and want to build the frontend using either Vue 3 or React. Be

deebow's avatar
deebow's avatar deebow7mos agoGuides
0
1
Cadorin's avatar

Black Friday

Hello... When is Black Friday here this year? What will the annual cost be?

Cadorin's avatar
Cadorin's avatar JeffreyWay7mos agoFeedback
5
1
Last reply by JeffreyWay 7mos ago
VinayPrajapati's avatar

Make Crossword And Search Word

I want to make crossword 15*15, Put random word upto(15) HORIZONTAL VERTICAL DIAGONAL And Search. Any Suggestion.

VinayPrajapati's avatar
VinayPrajapati's avatar Auqcion7mos agoGeneral
2
1
Last reply by Auqcion 7mos ago
jjudge's avatar

soketi with a config file using docker compose

I am trying to run soketi using docker compose, to handle multiple sites on the same server. To do that I need to use the config file option rather than environment variables, since that allows multiple apps to be set up. What I don't know, is how to pass the [JSON] config file path to soketi when it is run in a container from docker compose. Are there any examples of this that

jjudge's avatar
jjudge's avatar jjudge7mos agoDevOps
3
1
Last reply by jjudge 7mos ago
wonder95's avatar

XDebug won't run in PHPStorm 2024.1.1 on Mac M2 when installed/configured

I have a fancy new MacBook Pro M2, and I installed PHP via Homebrew as I usually do. However, for some reason, even though I ran brew install php@82, it installed both the php(aka8.3) and [email protected],and therefore both /opt/homebrew/etc/php/8.3*and/opt/homebrew/etc/php/8.2*, with 8.3as the one actually being used. I also need to run XDebug, so, per the instructions, I installed it

wonder95's avatar
wonder95's avatar LinboLen7mos agoLaravel
5
1
Last reply by LinboLen 7mos ago
scidirect's avatar

AWS secret manager and EC2 instance with IAM role

Has anyone been able to retrieve AWS secret manager with this exact setup? Laravel 10, AWS EC2 instance using IAM role (the role has read access to secret manager), instead of IAM user. Package: aws/aws-sdk-php: "^3.269.11". The EC2 instance and the secret manager are both in the same zone.

scidirect's avatar
scidirect's avatar Harendra127mos agoForge
2
1
Last reply by Harendra12 7mos ago
alireza_hadizadeh's avatar

What is the best architecture in Laravel for handling features that rely on external APIs (some with authentication, some without)?

I have an existing Laravel e-commerce project that uses an external SMS provider for sending OTP codes and notifications. The provider offers a full API for its own panel, and I want to integrate parts of that panel directly into my e-commerce admin dashboard to improve convenience for my clients (companies and start-ups who buy the project). Inside my app I already send SMS th

alireza_hadizadeh's avatar
alireza_hadizadeh's avatar jlrdw7mos agoLaravel
3
1
Last reply by jlrdw 7mos ago
minaremonshaker's avatar

Unexpected Slow Performance Despite Caching and Optimization

I have a users table containing only five records. When retrieving these users from the database using a standard query, the request takes about 2642 ms. However, even when fetching the same data from cache, it still takes around 1977 ms. I’m unsure why this happens. I have already applied several optimizations, including running php artisan optimize:clear, caching query result

minaremonshaker's avatar
minaremonshaker's avatar minaremons...7mos agoLaravel
30
21
Last reply by minaremonshaker 7mos ago
joffreypersia's avatar

What is the best way to deal with Inertia and Checkboxes

Hi, I'm working on a Laravel + Vue.js + Inertia v2 project and struggling to find the right approach for form handling with non-native form elements. My setup: Using Inertia v2's new <Form> component (https://inertiajs.com/docs/v2/the-basics/forms) Using shadcn-vue components for UI (https://www.shadcn-vue.com) The problem: Shadcn-vue components like Checkbox don't rend

joffreypersia's avatar
joffreypersia's avatar vincent150...7mos agoInertia
7
1
Last reply by vincent15000 7mos ago
murtaza1904's avatar

Why sanctum doesn't dispatch logout event?

If revoke token in sanctum mean same as doing logout in web then why it doesn't dispatch logout event by default?

murtaza1904's avatar
murtaza1904's avatar vincent150...7mos agoLaravel
5
1
Last reply by vincent15000 7mos ago
zer0uno's avatar

Load different service providers based on the environment

In Laravel 12 how can I load different service providers based on the environment? I think the documentation is lacking on this topic. So far I've found 3 potential places: inside the bootstrap/providers.php using app()->environment() BUT in case of "php artisan make:provider" it will be overwritten inside the config/app.php under the "providers" key BUT

zer0uno's avatar
zer0uno's avatar vincent150...7mos agoLaravel
1
1
Last reply by vincent15000 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.