Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

Frostist's avatar

Livewire & Flux Routes exposed?

Hi guys. If I run php artisan route:list I see the following in the response: GET|HEAD flux/editor.css generated::2bgScuHRO1iqIrjM › Flux\AssetManager@editorCss › AssetManager@editorCss GET|HEAD flux/editor.js ... generated::E7Gn0gDkt8QICUgE › Flux\AssetManager@editorJs › AssetManager@editorJs GET|HEAD flux/editor.min.js generated::SZnULyhA6rducCgw › Flux\AssetManager

Frostist's avatar
Frostist's avatar Frostist8mos agoLivewire
2
1
Last reply by Frostist 8mos ago
Shivamyadav's avatar

Which broadcast should I use and why?

Pusher (cloud, managed) Redis (self-hosted, needs Echo server) Laravel WebSockets (BeyondCode, self-hosted) Laravel Reverb (official Laravel 11+ solution)

Shivamyadav's avatar
Shivamyadav's avatar martinbean8mos agoLaravel
1
1
Last reply by martinbean 8mos ago
laracoft's avatar

Cron some tasks as `root`

Is there a Laravel way setup cron to run most tasks as www-data and some tasks as root? The docs show only https://laravel.com/docs/12.x/scheduling#running-the-scheduler which implies only 1 user can be specified. It feels dangerous to set it as root.

laracoft's avatar
laracoft's avatar JussiManni...8mos agoLaravel
5
3
Last reply by JussiMannisto 8mos ago
Pixelairport's avatar

vendor:publish vars on workbench:build not working

I use orchestra testbench and in my testbench.yaml I have: ... build: - asset-publish - create-sqlite-db - db-wipe - vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" - migrate-fresh ... But --provider="Spatie\Permission\PermissionServiceProvider" ist not used, when I use workbench:build. When I only use vendor:p

Pixelairport's avatar
Pixelairport's avatar Pixelairpo...8mos agoTesting
4
1
Last reply by Pixelairport 8mos ago
rohitjangir's avatar

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (Connection: mysql, SQL: alter table `users` add unique `users_email_unique`(`email`))

Hello friends, when I try to install Laravel 12 project, every time i get this issue. what is the permanent solution for this. rohitjangir@DESKTOP-BP29VVL MINGW64 /c/wamp64/www/test-project $ php artisan migrate:fresh Dropping all tables ................................................................................................................. 75.40ms DONE INFO Preparing

rohitjangir's avatar
rohitjangir's avatar ajinaniyan8mos agoGeneral
9
1
Last reply by ajinaniyan 8mos ago
bvfi-dev's avatar

Collapsing a <div> section is laggy only in the initialization

I have a pretty simple form. Basically I have a status select dropdown and I want an animation when the status is a certain ID: <div class="grid grid-cols-1 gap-6" x-data="{statusId: $wire.entangle('courseForm.status_id'),ztComing: {{ (int) $ztCourseComingSoon }},isComingSoon(){ return Number(this.statusId) === this.ztComing; }}"> <!-- Section 1 =&

bvfi-dev's avatar
bvfi-dev's avatar bvfi-dev8mos agoLivewire
3
1
Last reply by bvfi-dev 8mos ago
laracoft's avatar

Planning work

I have several repos and many issues across all of them Is there any tool that can help me go through them and sort out which one the team should work on first? Update I'm already using Issues in Gitea But seeing 100s of issues is overwhelming and I'm not sure where is the best place to start After some thoughts, I realized a big factor is that some issues are clear, e.g. bu

laracoft's avatar
laracoft's avatar laracoft8mos agoGeneral
6
1
Last reply by laracoft 8mos ago
thesimons's avatar

Sharing private function among different controllers

Hello, what's the best way to share a private function among different controllers? I have an area of my about Working Hours with partners: always, everyday (same hours for every day), custom. I have split the logic in 3 different controllers. However there are 3 private functions to be used in each controller. What's the best approach to share them? Thanks, Simon

thesimons's avatar
thesimons's avatar june238mos agoLaravel
3
1
Last reply by june23 8mos ago
SPresnac's avatar

whereRelation using another connection

I do have a relation in one of my models, that uses a different db-connection. So, some code: Model Employee: class Employee extends Model { protected $connection = 'kpidashboard'; protected $table = 'employees'; protected $fillable = [ 'employee_name', 'kuerzel', 'username', 'active_employee', ]; public function user(): Has

SPresnac's avatar
SPresnac's avatar krisi_gjik...8mos agoEloquent
3
1
Last reply by krisi_gjika 8mos ago
bearbytestudio's avatar

How do I set form data, and then immediately submit? Getting stale data sent to controller.

Hi everyone! Using React / Inertia / Laravel, I'm having a hard time updating form data using setData, then immediately making an AJAX request with the updated data. The data becomes stale. Here is the code, the "due" field being submitted is stale: const {data, setData, put} = useForm({ "due": "", }); const updateDate = (d) => { setDat

bearbytestudio's avatar
bearbytestudio's avatar noxioustoo8mos agoInertia
4
4
Last reply by noxioustoo 8mos ago
rmsc-dev's avatar

Extend ShadcnUI components

Is possible to make an extension of the base components i.e the Button, I want to inherent all variants and properties to like a MyButton with my custom variants and properties?

rmsc-dev's avatar
rmsc-dev's avatar rmsc-dev8mos agoReact
0
1
jekinney's avatar

SEO and structured data

Been a few posts about seo. I thought I'd share this tid bit: Meta tags with site description and keywords is pretty much ignored by search engine spiders along with hidden content because devs abused them and the search results were unpredictable for the user. Now I work a lot in the Google eco system including apps, analytics and search console to ensure and monitor client we

jekinney's avatar
jekinney's avatar Whomesee8mos agoTips
8
1
Last reply by Whomesee 8mos ago
bvfi-dev's avatar

Reply doesn't appear

I replied to my own post about a significant update and I am unable to see what I have written, eventhough its mentioned that I have done it on the "Forums" frontpage. The related post is: Post When I am in the post it says "2 Replies", however on the frontpage it says 3, which is correct if my Reply is included.

bvfi-dev's avatar
bvfi-dev's avatar JussiManni...8mos agoFeedback
1
1
Last reply by JussiMannisto 8mos ago
jmrufus's avatar

SQLSTATE[HY000] [2002] Connection refused table sessions

Hi guys. I'm a little desperate with this issue. I've deployed a project to production. I created the DBase and imported SQL with tables and corresponding data. However, when I try to access the site, it shows me the following error: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from sessions where id = M4Uh039sUChdeOHtHM1vDnf4lEN2lY2Zk9e5oBTq limi

jmrufus's avatar
jmrufus's avatar JussiManni...8mos agoLaravel
13
1
Last reply by JussiMannisto 8mos ago
sumeetghimire's avatar

added something I’ve always wanted in Laravel’s AI ecosystem multi-provider fallback orchestration.

Multi-Provider Fallback in Laravel AI Orchestrator Now in Laravel AI Orchestrator, you can chain multiple AI providers, and it will automatically try the next one if one fails — no manual try/catch, no downtime. Ai::prompt("Summarize why caching improves Laravel performance.") ->using('openai') ->fallback(['anthropic', 'gemini', 'ollama']) ->toTex

sumeetghimire's avatar
sumeetghimire's avatar sumeetghim...8mos agoAI
0
2
banerjeeadityaorima's avatar

Event Driven Architecture

Hi all, I want to get some knowledge and maybe a course to build an event driven architecture design using Azure Service Bus and PHP and MySql database. Can someone shed some light on this? Many thanks for your help and support.

banerjeeadityaorima's avatar
banerjeeadityaorima's avatar banerjeead...8mos agoGeneral
2
1
Last reply by banerjeeadityaorima 8mos ago
ApolloBLN's avatar

Next JS

wondering why there is no course on that?

ApolloBLN's avatar
ApolloBLN's avatar jlrdw8mos agoJavaScript
2
1
Last reply by jlrdw 8mos ago
corbosman's avatar

3 way relationship

Hi all, I'm working on a small inhouse app to manage an authorization matrix we need for ISO requirements. We need to manage documentation on all apps, and which users/roles have access to what application and with what level. I have the following tables: Users Roles (A user has many Roles) (Things like CEO, Developer, Operations, etc) Applications Permissions (things like &q

corbosman's avatar
corbosman's avatar jlrdw8mos agoFilament
2
1
Last reply by jlrdw 8mos ago
jlrdw's avatar

OP original date

I notice in post (thread) list to the right shows the latest reply time. And once you open the post, times are showed for the people who replied. However I cannot see the original time date of the post. How would one determine if it's older? The OP's post doesn't have this. I did notice it shows OP's time if no replies, however once a reply the reply time time overrides the O

jlrdw's avatar
jlrdw's avatar JeffreyWay8mos agoFeedback
2
1
Last reply by JeffreyWay 8mos ago
jlrdw's avatar

Reply not showing

The forum list shows last reply but the actual answer is not showing the reply. https://laracasts.com/discuss/channels/filament/3-way-relationship If cached maybe replies shouldn't be cached, just a thought. Edit: Works under all post, just no replies yet is not working.

jlrdw's avatar
jlrdw's avatar jlrdw8mos agoFeedback
0
1
ahmadreza1383's avatar

The EasySail repo for simplifying working with Sail.

Hey Laravel community! 👋 I’ve been working on a new package called EasySail: github.com/karbordia/easysail The goal of this package is twofold: Provide a reliable source of pre-built Laravel Sail images so you don’t have to rebuild them every time. Eliminate extra dependencies like installing Composer or PHP on your host machine. Eventually, I’m planning to add a CLI tool to

ahmadreza1383's avatar
ahmadreza1383's avatar martinbean8mos agoFeedback
8
1
Last reply by martinbean 8mos ago
PetroGromovo's avatar

Why I got error Request rate limit has been exceeded with openai-php/laravel library?

I have just created new account at openai.com, but when I try to ask a question in my Php\Laravel programm with https://github.com/openai-php/laravel library, with sample code like : $response = OpenAI::responses()->create([ // 'model' => 'gpt-5', // I tried all models // 'model' => 'gpt-4o', 'model' => 'gpt-4.1', 'input' => 'Hello!', ]); echo $

PetroGromovo's avatar
PetroGromovo's avatar ajithlal8mos agoLaravel
1
1
Last reply by ajithlal 8mos ago
ahoi's avatar

Schema::replace does not change postgres data structure?

Hi there, I would like to change the name of a table inside of a migration command I built: \Schema::rename('stored_events', 'stored_events_bak'); \Schema::rename('stored_events_migrated', 'stored_events'); Now the problem is: The stored_events_migrated table is indeed renamed to stored_events, but the Postgres data structure is still referencing the original t

ahoi's avatar
ahoi's avatar Tray28mos agoLaravel
2
1
Last reply by Tray2 8mos ago
Snapey's avatar

Not seeing any indication of solved..

This seems to have disappeared from smaller displays? (on the index)

Snapey's avatar
Snapey's avatar JeffreyWay8mos agoFeedback
1
1
Last reply by JeffreyWay 8mos ago
mix359's avatar

Order by eager loaded colum

Hi to all, I'm having some trouble finding the right/best way to do one thing: I've some case where I need to do the sorting based on a column that is loaded through eager loading. Here an example: Account (id, name, surname) <-> Teacher (account_id) Teacher::with('account')->orderBy('surname'); Usually the eager loading work great in those situation, where I need to a

mix359's avatar
mix359's avatar Snapey8mos agoEloquent
10
1
Last reply by Snapey 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.