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

vincent15000's avatar

Services used inside controllers

Hello, What's the bests way of using services inside controller ? private $eventService; private $locationService; private $typeService; public function __construct() { $this->eventService = new EventService; $this->locationService = new LocationService; $this->typeService = new TypeService; } This way the services ar

vincent15000's avatar
vincent15000's avatar JussiManni...4mos agoLaravel
4
1
Last reply by JussiMannisto 4mos ago
Cavalcantefilipe's avatar

Best place to put a Laravel into production.

I need to publish a Laravel application that I believe will have peaks of up to 200 users and many database calls. What is the best place to deploy it considering cost and performance? AWS? It's for a mobile app.

Cavalcantefilipe's avatar
Cavalcantefilipe's avatar DigitalArt...4mos agoLaravel
4
2,625
Last reply by DigitalArtisan 4mos ago
wonder95's avatar

Unable to use Google font in Vue/Inertia/Tailwind app

In my Vue3/Interia/Laravel/Tailwind v4 app, I need to make some modifications to match another site, and part of that is implementing the Hind Vadadora font. In order to make it more performant, my idea was to import the font and just run it locally, so I installed it via NPM npm install @fontsource/hind/vadadora added these lines to /resources/css/app.css @config "../..

wonder95's avatar
wonder95's avatar ian_h4mos agoInertia
3
23
Last reply by ian_h 4mos ago
forkingbeardman's avatar

React + InertiaJS InfiniteScroll Issue

Hey so i've been facing this weird issue, using Inertia's InfiniteScroll component and Inertia::scroll() method. On every odd direct visit to the page it only loads first page and nothing else and on every even visit it works. To make sure that nothing on my page was causing it i set up a test route with very simple Test page and still same results. here's the code for my test

forkingbeardman's avatar
forkingbeardman's avatar forkingbea...4mos agoInertia
2
1
Last reply by forkingbeardman 4mos ago
jswoolf01's avatar

Database conflict when running two Laravel apps on same server

I have two Laravel apps that I'm trying to get to work together on a local XAMPP server. Specifically, I'm testing a reporting feature on application 1 (a retail-sales-tracking app) that requests some data from application 2 (an inventory-tracking app). In production the two run on different servers, but this is my local test machine so they're both running on the same server

jswoolf01's avatar
jswoolf01's avatar Glukinho4mos agoLaravel
8
4
Last reply by Glukinho 4mos ago
trondhuso's avatar

Unable to call component method. Public method [toJSON] not found on component

In my web application I have a few dropdowns where a user can click on different checkboxes. When that happens, the result table is being re-rendered. Seconds later I get the modal telling me: Unable to call component method. Public method [toJSON] not found on component And then I see this in the body in the laravel debug-modal. I upgraded from LW2 to LW3, so that could be a r

trondhuso's avatar
trondhuso's avatar sajad234mos agoLivewire
5
10
Last reply by sajad23 4mos ago
Shivamyadav's avatar

My notification reply does not updates the UI?

I have a notification show page, inside it i have a form to reply only 1 time. After a reply to that particular mail my controller return back and my show page props and ui did not gets updated. my controller code public function store(AdminReplyRequest $request, Notification $notification) { // protecting form the sending the request if already 1 reply exists

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...4mos agoInertia
0
1
NextBestThing's avatar

Update on the Laravel Forge SDK 4.x

Hi! First of all. I really like Forge and the way its going. Especially with the feature drop of October last year. However I'm using the Forge SDK for automation and doesn't seem to support 4.x yet. Is there any update regarding the upgrade from 3.x to 4.x? The documentation tells you that we have 'till March of this year to upgrade but the SDK seems to be outdated for a while

NextBestThing's avatar
NextBestThing's avatar NextBestTh...4mos agoForge
1
1
Last reply by NextBestThing 4mos ago
vincent15000's avatar

Notifications available for several users

Hello, By default a notification is attached to a specific user. What could be the solution if I need that a notification is available for several users (for example the managers can see the notifications) and once a manager has handled the notification, it is destroyed from the database, so that other managers don't see it anymore. Is it a solution by using the standard Larave

vincent15000's avatar
vincent15000's avatar vincent150...4mos agoLaravel
8
7
Last reply by vincent15000 4mos ago
joffreypersia's avatar

Which app Jeffrey uses into his series AI to voice to text ?

Hi, I saw Jeffrey prompting with his voice. I am interested to know which app he is using. Best, Joffrey

joffreypersia's avatar
joffreypersia's avatar LaryAI4mos agoTips
1
1
Last reply by LaryAI 4mos ago
Shivamyadav's avatar

Modal closes on clicking as soon on the delete button?

Modal closes on clicking as soon on the delete button? Even the request is not completed yet and resource is not deleted. After a 1 or 2 sec resource gets removed form the ui. My Modal component used in the Users/Index.vue file and the delete functionality. <!-- Modal Teleported to body --> <teleport to="body"> <Modal v-model="showModa

Shivamyadav's avatar
Shivamyadav's avatar vincent150...4mos agoVue
3
1
Last reply by vincent15000 4mos ago
Shivamyadav's avatar

How to show the pusher realtime notification count?

My vue AdminLayout.vue file code onMounted(() => { Echo.channel('new-contact-mail') .listen('.contact.mail.received', (e) => { messages.value.unshift(e.notification); }); }) I am getting the data. I want to show the new contact mail notification count. If the new mail received counts get updated without page refresh. If the notifications

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...4mos agoLaravel
0
1
shez1983's avatar

listening to dynamic livewire events from Javascript

so I can get this to work: $this->dispatch("post-updated.{$post->id}"); and listen from component #[On('post-updated.{post.id}')] but having diffculty trying to access it from global js document.addEventListener('livewire:init', () => { Livewire.on(post-updated', ({ postId }) => { alert(14); console.log(14); //

shez1983's avatar
shez1983's avatar shez19834mos agoLivewire
3
1
Last reply by shez1983 4mos ago
christaiwo's avatar

How to Stop WorkOS From Automatically Creating Users in a Laravel 12 App

I want to disable automatic user creation triggered by WorkOS in a Laravel 12 app. I already disabled self-registration in the WorkOS dashboard, so users no longer see the registration page. The issue is that when a user clicks the login button, if the account exists in WorkOS, the callback flow still creates a new user record in my Laravel app. In my setup, only an admin shoul

christaiwo's avatar
christaiwo's avatar shoboske4mos agoLaravel
1
1
Last reply by shoboske 4mos ago
codeXX's avatar

Laravel Cashier + stripecli - 405 response to all events

I am trying to listen to webhook events for stripe and I am seeing 405 response in the CLI, no events triggered in the Laravel. Here is my setup: I have added the CSRF exception in bootstrap/app ''' $middleware->validateCsrfTokens(except: [ 'stripe/*', ]); ''' I am running the stripecli from docker with host network. I added the STRIPE_WEBHOOK_SECRET and the value is from t

codeXX's avatar
codeXX's avatar codeXX4mos agoLaravel
1
1
Last reply by codeXX 4mos ago
SaschaWaitz's avatar

Laravel 12: Pest and multiple databases

Hello everyone, I have come across a problem. I have two databases a main database and another database for another project. I can migrate in both without any problems and also the tests for the main database are working like they should be working. But as soon as I test a model which uses the second database the test fails and tells me that the table of the model is not existe

SaschaWaitz's avatar
SaschaWaitz's avatar LaryAI4mos agoLaravel
1
1
Last reply by LaryAI 4mos ago
dixitchopra's avatar

Database Queue - Reserved problem

I am using Database Queue. I am able to see 1 in Reserved column. Can someone please tell me why does it go to reserved column? Even my server gets hang in the middle. I don't know whether it's because of reserved queue or hanging is causing job to go to reserved state.

dixitchopra's avatar
dixitchopra's avatar imqqmi4mos agoLaravel
11
1
Last reply by imqqmi 4mos ago
rikw's avatar

Using Akeneo with Herd (APCu)

I'm trying to run Akeneo with Herd but it is struggling with APCu not being present. There is no way I can find how to fix it. Has anybody here managed to install APCu with Herd?

rikw's avatar
rikw's avatar rikw4mos agoGeneral
3
1
Last reply by rikw 4mos ago
shez1983's avatar

updating search results, get part of previous result with new result

what happens is, when i click on a category to show related posts, it works initially (fresh page load) - but on subsequent click on a different category, if there are 3 results, 2 of them will be related to NEW cat, the third one will be of the previous category. i use <a wire:click=method(id)>cat</a> to send cat type to component, re-run the search (which is a l

shez1983's avatar
shez1983's avatar shez19834mos agoLivewire
1
1
vincent15000's avatar

About NativePHP and the compatible technologies for a mobile application

Hello, I'd like to use NativePHP for a mobile application (Android and iOS). A few months ago, I read a part the of NativePHP documentation and I remember that it' wasn't possible to code with VueJS / InertiaJS ... just Laravel and Livewire, but no other technologies for coding a mobile application. Today I read the documentation once again and now it seems possible to code wit

vincent15000's avatar
vincent15000's avatar vincent150...4mos agoGeneral
0
1
mg2k4's avatar

Dockavel - Production Docker Stack for Laravel

Hey Laracasts community! 👋 I've been learning from Jeffrey's videos for years, and I wanted to share my first open source project with you all. What is Dockavel? A production-ready Docker stack for Laravel that handles deployment, SSL, and security automatically. Why I Built It After deploying Laravel apps for ~10 years, I got tired of repeating the same setup for every project

mg2k4's avatar
mg2k4's avatar mg2k44mos agoDevOps
2
4
Last reply by mg2k4 4mos ago
saeedn's avatar

Laravel Nova Tool Navigation Issue

I've created a custom tool in Laravel Nova that contains two Vue components loaded within the main Tool.vue component. While the tool itself works perfectly when loaded, I'm encountering a navigation issue: Current Behavior: The tool loads and functions correctly initially When trying to navigate to other Nova pages (resources or tools): The URL changes correctly But the new

saeedn's avatar
saeedn's avatar indivitech...4mos agoNova
4
1
Last reply by indivitech-dev 4mos ago
stratboy's avatar

Why Breeze is out of starter kits?

Hi, I was wondering if anyone know: why Breeze isn't a starter kit choice anymore? But more in general, why there are no more non-js-framework starter kits? So are we all supposed to develop javascript frontendsn or livewire? No more simple php?

stratboy's avatar
stratboy's avatar JussiManni...4mos agoLaravel
10
2,712
Last reply by JussiMannisto 4mos ago
adamnet's avatar

Run Mysql script in Laravel

When I want to truncate a table which has foreign key cobstraints I will use phpmyadmin and will run a script as follows set foreign_key_checks=0; truncate table mytable; set foreign_key_checks=1; Is it possible to run this through some method in Laravel?

adamnet's avatar
adamnet's avatar NekaDava4mos agoLaravel
4
3
Last reply by NekaDava 4mos ago
wonder95's avatar

Laravel 12 Breeze conflicts with path name case changes

I have been using Breeze with Vue and Inertia and Tailwind since Laravel 10, and it's been pretty flawless. However, the Laravel 12 installation has been somewhat painful, and one issue that stands out is casing of directory names vs values returned from controllers via Inertia.render(). One change has been the casing of the directory names under /resources/js. Where in the pa

wonder95's avatar
wonder95's avatar Snapey4mos agoInertia
2
1
Last reply by Snapey 4mos 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.