Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

minaremonshaker's avatar

Question About Adding Custom Methods in Laravel Policies

Hi, I have a question about Laravel policies. Is it possible to define a custom method in a policy, like createOwn, or is it better to stick with the default methods provided in the policy stubs? I'm asking because, in the method below, I want to ensure that a user can only create their own ticket, so I plan to pass the ticket ID as an argument. public function create(User

minaremonshaker's avatar
minaremonshaker's avatar tykus6mos agoLaravel
14
1
Last reply by tykus 6mos ago
Avijit's avatar

Which Laracasts courses teach Laravel with Inertia.js and React?

I’m curious about building full-stack applications using Laravel, Inertia.js, and React. Can anyone recommend Laracasts courses that cover these topics from beginner to advanced?

Avijit's avatar
Avijit's avatar LaryAI6mos agoReact
2
1
Last reply by LaryAI 6mos ago
vincent15000's avatar

Livewire and Service class with business logic

Hello, I'm using some Livewire components in a Laravel application. I'm using a service class with the business logic. Here is how I use it inside the Livewire component. private TableService $tableService; public function boot(TableService $tableService) { $this->tableService = $tableService; } Here is an example of a function in the table service class. public functi

vincent15000's avatar
vincent15000's avatar Snapey6mos agoLivewire
10
1
Last reply by Snapey 6mos ago
vincent15000's avatar

Strange behavior with AlpineJS and the sort plugin

Hello, In a Laravel project, with Alpine.js I'm using the sort plugin When I drag and drop an element, I see the element move with my mouse (the element follows my mouse). After moving a first element, when I move a 2nd one, the element I'm dragging no longer follows the mouse, but appears at the top of the screen. But once the drop is done, the items are correctly sorted. I fi

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

Should I prop-drill usePage contents?

I have this in App.vue <script setup> import { computed } from 'vue'; import { usePage } from '@inertiajs/vue3' const page = usePage(); const auth = computed(() => page.props.auth ?= "Guest"); </script> <template> You are logged in as {{ auth }}! </template> But then, I also need to use auth on other pages, should I just declare it i

Chron's avatar
Chron's avatar Chron6mos agoInertia
2
1
Last reply by Chron 6mos ago
vincent15000's avatar

Lovable vs traditional web developer

Hello, I just followed these last 4 days a short challenge about web marketing using AI. Hmmm ... very interesting ... I didn't know anything (or perhaps so few) about marketing, I'm eager to try some things. During this challenge, the trainer has shown how to use Lovable to create a website to promote one's activity or product. It's really amazing. So I asked for more informat

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

Forge was unable to build the frontend assets for your site

I am trying to set up a new site on a Forge server but I keep running into the message in the subject. I've created a number of sites from Github repos on Forge but not run into this error. Not sure where to look to resolve the problem. Suggestions?

earmsby's avatar
earmsby's avatar earmsby6mos agoForge
4
1
Last reply by earmsby 6mos ago
Amplify2234's avatar

Alpine.js multi-select not working when using x-model with :selected

I'm facing an issue with an Alpine.js multi-select element. when i use x-model on a select multiple along with a :selected binding on the option elements, i’m unable to select or change options in the multi-select. <div class="col-12"> <label class="form-label form-label-sm"> Test Methods <span class="text-danger">*<

Amplify2234's avatar
Amplify2234's avatar LaryAI6mos agoGeneral
1
1
Last reply by LaryAI 6mos ago
peterdev's avatar

Subtitles on Laracast

Hi, I suggest to enable subtitles for all your courses, sometime is difficult to understand all the words if english is not your native language.

peterdev's avatar
peterdev's avatar burlakov6mos agoGeneral
2
1
Last reply by burlakov 6mos ago
MoSalem's avatar

Trait "Illuminate\Console\Prohibitable" not found

Hello When i tried to deploy nwidart laravel module package using command " composer require nwidart/laravel-modules" I got this error in terminal : Trait "Illuminate\Console\Prohibitable" not found at vendor\nwidart\laravel-modules\src\Commands\BaseCommand.php:17 13▕ use Symfony\Component\Console\Output\OutputInterface; 14▕ 15▕ use function Laravel\Prompts\

MoSalem's avatar
MoSalem's avatar michelsouz...6mos agoLaravel
5
1
Last reply by michelsouza 6mos ago
lelobo's avatar

Which is the best IDE: Cursor or PhpStorm?

Hello everyone 👋 I would like to start this forum to get your opinions on which IDE you consider the best for working with Laravel: Cursor or PhpStorm. I’ve noticed that many developers are currently using Cursor, and I wonder if it is really a professional alternative compared to PhpStorm. I would also like to know whether Cursor works well with the Laravel Idea plugin and if

lelobo's avatar
lelobo's avatar mbg226mos agoGeneral
4
2
Last reply by mbg22 6mos ago
beracah.kings's avatar

Login Logic in Inertia JS

How to customize logic for login in inertiajs

beracah.kings's avatar
beracah.kings's avatar vincent150...6mos agoInertia
5
1
Last reply by vincent15000 6mos ago
razorext2's avatar

cURL error 56: Recv failure: Connection was reset when dispatch an event

several days ago, i was playing with reverb and it work fine, idk why today my broadcast message has stop working. im on local development and i think i dont have any issue with my configuration, since i've try to reinstall again and again, test it on another pc, and it still suck. what i have do is just use livewire table to one of my pages, and i think its not the problem. he

razorext2's avatar
razorext2's avatar hmawla6mos agoReverb
1
1
Last reply by hmawla 6mos ago
danielpetrica's avatar

Feedback request

Hi everyone, I’ve been working on a site to help fellow Laravel developers, and I’d really appreciate your feedback and suggestions to make it better. The site is laraplugins.io. Its goal is to help developers quickly and easily assess the health and reliability of Laravel plugins—ideally in under five minutes, without needing to dive into the GitHub source code. Right now, eve

danielpetrica's avatar
danielpetrica's avatar danielpetr...6mos agoGeneral
3
1
Last reply by danielpetrica 6mos ago
enadabuzaid's avatar

Want to select php 8.4 on forge

Why, when create new website, does the selected PHP version just have PHP 8.3? how can select PHP 8.4 or PHP 8.5

enadabuzaid's avatar
enadabuzaid's avatar NoLAstNamE6mos agoForge
3
3
Last reply by NoLAstNamE 6mos ago
Tempestad's avatar

Does Laravel Cloud support Snappy PDF/Image Wrapper for Laravel?

I'm currently deploying a Laravel application to Laravel Cloud, I want to use barryvdh/laravel-snappy to generate PDFs and images. Since this package relies on wkhtmltopdf and wkhtmltoimage binaries, I would like to know: Are these binaries already available on Laravel Cloud servers? If not, is it possible to install them manually? Has anyone successfully used Snappy PDF on Lar

Tempestad's avatar
Tempestad's avatar olotintemi...6mos agoLaravel
1
1
Last reply by olotintemitope 6mos ago
thesnakebite's avatar

Media Uploads for Workshop the Laravel Course - Best Approach?

Following Jeffrey, Jeremy, and Simon's Workshop the Laravel, I extended the application with search, bookmarks, and guest access. Now I want to add image/video uploads to posts. Stack: Laravel 12 + Inertia v2 + Vue 3 Requirements: 1-4 images OR 1 video per post Image preview before publishing Display in the timeline Options I'm considering: Native Inertia useForm() + file in

thesnakebite's avatar
thesnakebite's avatar thesnakebi...6mos agoLaravel
0
1
mozew's avatar

React: MUI Menu does not render although data exists (object vs array issue)

I am working on a React shopping cart component. I pass a cart item as a prop to my CartItem component: <CartItem item={item} qty={item.quantity} /> I confirmed with console.log that props.item exists and contains data: { _id: "...", productTitle: "...", price: 15000000, ram: "6GB" } I want to show a Material-UI Menu that lists all

mozew's avatar
mozew's avatar JussiManni...6mos agoReact
2
1
Last reply by JussiMannisto 6mos ago
Shubbi's avatar

Resolved AlpineJs + Ajax plugin $slot-issue: not replacing x-target

I've encountered an issue that took me hours to resolve - and for me, it was a weird one. I just wanna share it and hopefully someone (1) can explain it, or/and (2) maybe this post will help someone to find a solution to the same issue. My layout component file is a simple one, without any clutter it's structured like this: <html> <head> // scripts and styles </h

Shubbi's avatar
Shubbi's avatar Shubbi6mos agoJavaScript
2
1
Last reply by Shubbi 6mos ago
raobilal4822's avatar

Get $get data in other section from an another section in filament

Section::make('How your Property Looks like') ->schema([ Select::make('meta.contains_unit') ->label('') ->options([ PropertyContainsUnitEnum::SingleRentable->value => 'Single Unit', PropertyContainsUnitEnum::MultipleRentable->value => 'Multiple Units', ]) // ->default(PropertyContainsUnitEnum::

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

why live data is not updating on select box in filament

Select::make('meta.contains_unit') ->label('') ->options([ PropertyContainsUnitEnum::SingleRentable->value => 'Single Unit', PropertyContainsUnitEnum::MultipleRentable->value => 'Multiple Units', ]) ->default( PropertyContainsUnitEnum::MultipleRentable->value) ->required() ->reactive() ->columns(2) ->formatStateUsing(fn (string $state): strin

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

Not working multi-filter system in my real estate laravel 10 project

Hello everyone! i hope you all are doing well. I am developing a real estate website, there is a property page. In this page the requirement is that there will be a multi filtering system. User can filter properties by category, price range, parking spots, and BHK(Bedroom, Hall and Kitchen). Suppose user first will select apartment category, according to that category every pro

reeju619's avatar
reeju619's avatar reeju6196mos agoJavaScript
5
1
Last reply by reeju619 6mos ago
damoramo's avatar

Laravel not sending emails from 365 after I changed Godaddy Server

I upgraded my EOL server from Godaddy, now all of my subsites can't send emails. I'm using exchange online. My DNS is correct on Godaddy. Failed to authenticate on SMTP server with username "[email protected]" using the following authenticators: "LOGIN", "PLAIN". Authenticator "LOGIN" returned "Expected response code "235"

damoramo's avatar
damoramo's avatar jlrdw6mos agoFeedback
1
1
Last reply by jlrdw 6mos ago
jewelhuq's avatar

How to handle mutliple browser session in redis instead of database

https://jetstream.laravel.com/2.x/features/browser-sessions.html You can say it is saying use session driver database, instead if we use redis can we do it?

jewelhuq's avatar
jewelhuq's avatar vpuentem6mos agoGeneral
1
1
Last reply by vpuentem 6mos ago
anjanesh's avatar

Lead Generation via Landing Page System

Is there some composer package or some boilerplate code for using Laravel just for marketing purpose ? (No WordPress). I want to use Laravel for a landing page for lead generation and have some sort of simple CRM platform as a dashboard for the leads generated via the Landing page. One I've come across is krayincrm but how do I have to wire it to krayin or the likes ?

anjanesh's avatar
anjanesh's avatar anjanesh6mos agoGeneral
4
1
Last reply by anjanesh 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.