Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

ammar_ahmed's avatar

403 Forbidden on /broadcasting/auth when using Laravel Echo + Pusher

I am implementing real-time broadcasting in Laravel 12 with React (Inertia) using Pusher and Laravel Echo. The backend event fires successfully, but the frontend does not receive the broadcast. In the browser console, I consistently get the following error: POST http://127.0.0.1:8000/broadcasting/auth 403 (Forbidden) 1. Route Where the Event Is Fired (web.php) The event is tr

ammar_ahmed's avatar
ammar_ahmed's avatar vincent150...6mos agoLaravel
1
2
Last reply by vincent15000 6mos ago
vincent15000's avatar

Sale funnel and asynchronous pipeline

Hello, I'm looking for a way to create an asynchronous pipeline for a sale funnel. return Pipeline::send($cart) ->through([ ReserveStock::class, CreateOrder::class, PayOrder::class, CommitStock::class, ClearCart::class, NotifyOrderConfirmation::class, ]) ->thenReturn(); 1 - Stock reservation is triggered by an a

vincent15000's avatar
vincent15000's avatar vincent150...6mos agoLaravel
5
2
Last reply by vincent15000 6mos ago
vincent15000's avatar

InertiaJS and redirection after POST, PUT and DELETE

Hello, Hmmm ... Let's have a look at this page about flash datas. https://inertiajs.com/docs/v2/data-props/flash-data#flash-data public function store(Request $request) { $user = User::create($request->validated()); Inertia::flash('message', 'User created successfully!'); // Or flash multiple values at once... Inertia::flash([ 'message' => 'User

vincent15000's avatar
vincent15000's avatar martinbean6mos agoInertia
3
1
Last reply by martinbean 6mos ago
vincent15000's avatar

Testing with InertiaJS - Not a valid Inertia response

Hello, When I write exactly the same test as in the documentation, I get this error. Not a valid Inertia response describe('CategoryController', function () { describe('index', function () { it('returns inertia response with categories for authorized user', function () { $user = User::factory()->hasAttached(Role::factory()->hasAttached(Permission

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

Dark Mode Remove

I tried enabling dark mode during creating my laravel app. I am far into my project now and I want to delete the feature because I want a consistent look on my project. How do I remove/disable the dark mode? Thanks in advance!

pekkorina's avatar
pekkorina's avatar DaemonKeen6mos agoLaravel
2
1
Last reply by DaemonKeen 6mos ago
vandan's avatar

Laravel Developer Seeking Remote Job Opportunities

Hi everyone, I’m a Laravel developer with 6+ years of experience building web applications using Laravel, MySQL, REST APIs. I’m currently seeking remote Laravel job opportunities — either full-time or part-time. I’m open to working with startups or established teams. I’d love any job leads or advice on companies that are hiring Laravel devs. Thanks so much!

vandan's avatar
vandan's avatar vandan6mos agoGeneral
4
1
Last reply by vandan 6mos ago
AlAdler's avatar

Configuring different TurstProxies per environment

I need to have different TurstProxies configuration in different environments. I'm having trouble coming up with a good solution for this. TrustProxies are configured in bootstrap/app.php, but .env variables are not available yet there, so you cannot have an environment variable to check and act accordingly. Does anyone have any ideas on how this can be solved?

AlAdler's avatar
AlAdler's avatar n_jain6mos agoDevOps
6
1
Last reply by n_jain 6mos ago
yaswanthgupta's avatar

Reverse Proxy + Laravel (React Starter Kit) Issue

My Setup Laravel React Starter Kit hosted on IIS (Port 81) Nginx running on Port 8000 Configuration Details Nginx A location block is configured with proxy_pass pointing to port 81 When a user visits, http://server_ip:8000/app1 it proxies to http://server_ip:81/app1 Vite - vite.config.js base: '/app1/' Laravel - bootstrap/app.php ->withMiddleware(function (Middlewar

yaswanthgupta's avatar
yaswanthgupta's avatar yaswanthgu...6mos agoVite
2
1
Last reply by yaswanthgupta 6mos ago
nickb6437's avatar

Inertia Redirect (vue/laravel/inertiaJs)

Really sorry if this has been covered before but I can't find a working solution and have even asked numerous work colleagues. I have a form which sends a POST request to my MailController, validation and everything works just as expected, but on success, I want to redirect to a Thank you page. The Post request returns either a 200 or 302 depending on the method I try but ever

nickb6437's avatar
nickb6437's avatar 3xc-cchadw...6mos agoInertia
3
3
Last reply by 3xc-cchadwick 6mos ago
patressz's avatar

Laravel / Typescript enum

Hello guys, i have an laravel/inertia-vue app where i have defined some PHP enums, for consistency i use "spatie/typescript-transformer" package to generate native enums for typescript from PHP enums. it looks like below: // resources/js/types/generated.d.ts declare namespace App.Enums { export enum Period { 'EVEN_WEEK' = 0, 'ODD_WEEK' = 1, 'EVERY_WEEK' = 2, }

patressz's avatar
patressz's avatar niewiadoms...6mos agoJavaScript
1
1
Last reply by niewiadomsky-73797882 6mos ago
christian.giupponi's avatar

Add API to existing Laravel project

Hi, I'd like to know how to add API for an existing project. The only think that comes to my mind was return a json instead a view, but how to manage authentication? What is the best workflow in this type of situation?

christian.giupponi's avatar
christian.giupponi's avatar martinbean6mos agoLaravel
7
1
Last reply by martinbean 6mos ago
sr57's avatar

Schedule:list - description with a closure?

With this job $schedule->job(new MyJob)->daily(); php artisan schedule:list gives | | 0 0 * * * | App\Jobs\%yJob | 2021-08-20 00:00:00 +00:00 | With this closure ( from the doc ) $schedule->call(function () { DB::table('recent_users')->delete(); })->daily(); php artisan schedule:list gives | | 0 0 * * * | | 2021-08-20 00:00:00

sr57's avatar
sr57's avatar BayronVazq...6mos agoLaravel
4
1
Last reply by BayronVazquez 6mos ago
liandro-silva's avatar

Help a newcomer to the PHP ecosystem.

I have 6 years of experience with Node and React, but the ecosystem's instability led me back to PHP. I am building a SaaS for autism clinics (billing, scheduling, ABA, VB-MAPP) using Laravel, which will be wrapped in Capacitor for mobile deployment. To ensure the best mobile performance, do you recommend Livewire with AlpineJS, or would it be better to use Inertia with Svelte?

liandro-silva's avatar
liandro-silva's avatar jlrdw6mos agoLaravel
1
1
Last reply by jlrdw 6mos ago
earmsby's avatar

custom Select options

I have a model and filament resource called Contract. It has a HasMany relationship called royaltyDefinitions to the ContractRoyaltyDefinition model. The Contract model has a BelongsToMany relationship with Accounts. The ContractRoyaltyDefinition model has a BelongsTo relationship with Accounts. In my relation manager on the Contract resource for the royaltyDefinitions relation

earmsby's avatar
earmsby's avatar LaryAI6mos agoFilament
1
1
Last reply by LaryAI 6mos ago
raobilal4822's avatar

action is not working filament

Grid::make() ->schema([ Actions::make([ Action::make('configureDeposit') ->label(fn (Get $get) => $get('deposit_direct_to_owner') ? 'Edit Owner' : 'Deposit Direct to Owner')

raobilal4822's avatar
raobilal4822's avatar LaryAI6mos agoFilament
1
1
Last reply by LaryAI 6mos ago
vincent15000's avatar

Prompt injection : a new attack ?

Hello, I have read that there is a new attack called prompt injection. Can a standard Laravel application be attacked by prompt injection ? If yes, how is it possible to prevent an application from being attacked by a prompt injection ? Thanks for your answers. V

vincent15000's avatar
vincent15000's avatar jlrdw6mos agoGeneral
3
5
Last reply by jlrdw 6mos ago
vincent15000's avatar

Games application database design

Hello, I want to develop an application for treasure hunts. Each hunt can have several quests and each quest can have several challenges. A challenge can be any type of game : type a word, multiple choice, unique choice, puzzle, words pairing, localisation, ... I'm thinking about how I can design the database to store all types of games with the same database tables. Do you hav

vincent15000's avatar
vincent15000's avatar martinbean6mos agoDesign
15
1
Last reply by martinbean 6mos ago
adamnet's avatar

No repeating Eloquent query statements in the mathods of a controller

I have an Eloquent model query with quite a few statements which is repeated the same in almost all the methods of a controller. Is there a way to save it somewhere and call it with a name into the methods of the controller with a single line?

adamnet's avatar
adamnet's avatar vincent150...6mos agoLaravel
13
3
Last reply by vincent15000 6mos ago
itsonlyjeff's avatar

Reverb on Forge - No Connection

On my local environment, Reverb works fine. I can’t get it running on my VPS in Laravel Forge (SSL-related). BROADCAST_CONNECTION=reverb REVERB_APP_ID=138624 REVERB_APP_KEY=base64:cQjR32gTlNeDzg3bzUJ80CcYyT/yNN6BuQc0ro2JAas= REVERB_APP_SECRET=xxxxxx REVERB_SERVER_HOST=0.0.0.0 REVERB_SERVER_PORT=8080 REVERB_HOST=websockets.xxxxxx.xx REVERB_PORT=443 REVERB_SCHEME="https&qu

itsonlyjeff's avatar
itsonlyjeff's avatar LaryAI6mos agoForge
1
1
Last reply by LaryAI 6mos ago
Shivamyadav's avatar

Seeing the json data instead of the vue component pages?

When using a mobile device, specifically the Chrome or Firefox mobile browsers, I encounter a problem. After loading a page on my application and closing the browser, upon reopening it, I see JSON code instead of the expected page

Shivamyadav's avatar
Shivamyadav's avatar Niush6mos agoInertia
1
1
Last reply by Niush 6mos ago
giorg-332048's avatar

adminLTE and datasource() filter

Hi, I'm using Laravel 12 with sebastian heyd boiler plate (first day I post here so I cannot link the referring site. I'm trying to setup a datasource for a datatable, which works fine: class SubscriptionsDatatable extends Datatable { public $slug = 'subscriptions'; public function datasource() { return Subscription::with('customer'); } ... and in the blade I use: <x-bo

giorg-332048's avatar
giorg-332048's avatar giorg-3320...6mos agoLaravel
3
2
Last reply by giorg-332048 6mos ago
minaremonshaker's avatar

Passing the request to a service method is a good practice or not ?

hi Merry Christmas! I have a UsersService class with a method that handles filtering and sorting data from the request. Is it good practice to pass the Request object directly to this service method (or inject it via the service provider), or should I avoid it? If not, what are the better alternatives? note: i am using spaite query builder package

minaremonshaker's avatar
minaremonshaker's avatar martinbean6mos agoLaravel
4
1
Last reply by martinbean 6mos ago
jaynarayan's avatar

How to disable route cache during development. (without artisan optimize or cache : clear)

I don't want to use artisan optimize or clear: cache everyt ime I update my route files.

jaynarayan's avatar
jaynarayan's avatar martinbean6mos agoLaravel
12
1
Last reply by martinbean 6mos ago
Slowhand's avatar

Restrict access based on subscriptions Laravel Cashier

Hi all. I've just installed Cashier and made some tests and it works great. I created a product on Stripe with 2 prices (montly payments and one time payment) Both prices should give access to the same content but I don't know how to restrict from viewing certain parts of my website or "block" certain routes (like creating posts). My app is a simple nwesportal website

Slowhand's avatar
Slowhand's avatar martinbean6mos agoLaravel
6
1
Last reply by martinbean 6mos ago
raobilal4822's avatar

suffixAction with Toggle in filament

i want to use suffix action with toggle but it is showing error ``` Toggle::make('deposit_direct_to_owner') ->label('Deposit to Be Registered') ->required() ->suffixAction( Action::make('copyCostToPrice') ->icon('her

raobilal4822's avatar
raobilal4822's avatar LaryAI6mos agoFilament
1
1
Last reply by LaryAI 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.