Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

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...5mos 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 shez19835mos agoLivewire
3
3
Last reply by shez1983 5mos 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 shoboske5mos agoLaravel
1
2
Last reply by shoboske 5mos 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 codeXX5mos agoLaravel
1
4
Last reply by codeXX 5mos 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 LaryAI5mos agoLaravel
1
3
Last reply by LaryAI 5mos 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 imqqmi5mos agoLaravel
11
2
Last reply by imqqmi 5mos 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 rikw5mos agoGeneral
3
3
Last reply by rikw 5mos 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 shez19835mos 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...6mos 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 mg2k46mos agoDevOps
2
1
Last reply by mg2k4 6mos 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...6mos agoNova
4
1
Last reply by indivitech-dev 6mos 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...6mos agoLaravel
10
14
Last reply by JussiMannisto 6mos 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 NekaDava6mos agoLaravel
4
1
Last reply by NekaDava 6mos 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 Snapey6mos agoInertia
2
1
Last reply by Snapey 6mos ago
siemankohe's avatar

Undefined variable: hours and another

Hello, I have another problem with my site and i think this is not last problem. Problem: Undefined variable: hours code: @foreach($hours as $hour) all the error is now on this page: http://wwlodarczyk.pl/hours Please help because after correcting one mistake another one pops up ...

siemankohe's avatar
siemankohe's avatar martinbean6mos agoLaravel
5
2
Last reply by martinbean 6mos ago
yumna12-coder's avatar

Validation upload image

how to validate image ? public function addproduct(AddProductRequest $request){ $imagepath=null; if($request->hasfile('image')){ $imagepath=$request->file('image')->store('photos','public');} $product = Product::create([ 'name'=> $request->validated('name'), 'price'=> $request->validated('price'), 'description'=>$request->validated('descri

yumna12-coder's avatar
yumna12-coder's avatar LaryAI6mos agoLaravel
1
1
Last reply by LaryAI 6mos ago
MIS1st's avatar

Best query Distinct Approch

hello every one i have done this public function index(TenantBranchCustomerMoneyExchangeFilter $filter): JsonResponse { $moneyExchange = TenantBranchCustomerMoneyExchange::query() ->whereIn('id', function ($q) { $q->selectRaw('MAX(id)') ->from('tenant_branch_customer_money_exchanges')

MIS1st's avatar
MIS1st's avatar MIS1st6mos agoLaravel
10
2
Last reply by MIS1st 6mos ago
waleed_lara_1's avatar

Connection Timed Out (522)

Hello Everybody I have been facing a strange issue since 2 weeks now, It was reported to me by my client that he seems to getting quite a lot of "Connection Timed Out" Errors, And since then i have been trying to solve the issue but haven't gotten anywhere, I am on Hostinger KVM 2 VPS using AlmaLinux2, I have WHM installed and my Laravel website on it, We have been us

waleed_lara_1's avatar
waleed_lara_1's avatar jlrdw6mos agoServers
1
1
Last reply by jlrdw 6mos ago
mathewberry's avatar

Envoyer showing 404 when trying to clone repo from Bitbucket

As of yesterday, both my Envoyer accounts (using 2 different Bitbucket profiles) stopped deploying and every time Envoyer attempts to clone the repository on any of the projects it just says 404. Connecting to bitbucket.org (bitbucket.org)|2401:1d80:3210::bbc:1:df7c|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2026-01-20 10:14:52 ERROR 404: Not Found

mathewberry's avatar
mathewberry's avatar graham19916mos agoEnvoyer
1
1
Last reply by graham1991 6mos ago
Bloobz's avatar

livewire starter kit

Hi guys, anyone having trouble grabbing the latest version of the livewire starter kit for v4? Like the livewire starter kit is different on the github version compared to what I'm downloading? On the github version under resources/views/ they have the pages integration for v4 Using laravel new {app name} command -> selecting livewire [starter kit] -> authentication scaff

Bloobz's avatar
Bloobz's avatar Bloobz6mos agoLaravel
2
2
Last reply by Bloobz 6mos ago
OligarchCat's avatar

Error uncompromised() method on MacOs

Hello all! When I was writing password rules for my API, I encountered an issue where the rules worked when deployed to Ubuntu 24.04. On MacOS (M1), I got an error. After testing, it turned out there was an error in the method uncompromised(). Has anyone encountered this issue? The project was deployed five times on each machine (without Docker, PHP 8.4). Password::defaults(sta

OligarchCat's avatar
OligarchCat's avatar martinbean6mos agoLaravel
2
1
Last reply by martinbean 6mos ago
sanjayacloud's avatar

What is the best way to config laravel logs in kubernetes

What is the best way to config laravel logs in kubernetes

sanjayacloud's avatar
sanjayacloud's avatar sanjayaclo...6mos agoLaravel
0
1
faificz's avatar

livewire4 error A request already contains one of the messages in this array

Hi , aften I updated my project from livewire 3 to livewire 4 I had an error livewire.js?id=8b575521:5200 Uncaught Error: A request already contains one of the messages in this array at compileRequest (livewire.js?id=8b575521:5200:21) at livewire.js?id=8b575521:4248:9 at livewire.js?id=8b575521:5196:9 at Array.forEach () at livewire.js?id=8b575521:5195:29 at Array.forEach () at

faificz's avatar
faificz's avatar faificz6mos agoLivewire
2
2
Last reply by faificz 6mos ago
amitgupta's avatar

Add to Watchlist and Mark Series Complete buttons not visible

On a series page, the buttons to add the series to watchlist or to mark it as complete are not visible at normal page zoom settings. If one zooms out to less than 100% then those are visible, not at the default 100% zoom.

amitgupta's avatar
amitgupta's avatar amitgupta6mos agoFeedback
3
1
Last reply by amitgupta 6mos ago
Basile404's avatar

Using laravel/boost in a docker environment

Hi I recently saw a video from Jeffrey Way about Boost, and thought: I will give it a try. I am also trying to move more towards Docker (not using Sail at the moment) as well. The context The way I have it set up right now is as follows: Laravel 12 (livewire/blade components) npm v22 & Vite 7 docker-compose.yml services: app: build: context: .

Basile404's avatar
Basile404's avatar martinbean6mos agoDevOps
6
1
Last reply by martinbean 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.