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

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 LaryAI5mos agoFilament
1
1
Last reply by LaryAI 5mos 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 LaryAI5mos agoFilament
1
1
Last reply by LaryAI 5mos 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 jlrdw5mos agoGeneral
3
1
Last reply by jlrdw 5mos 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 martinbean5mos agoDesign
15
3
Last reply by martinbean 5mos 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...5mos agoLaravel
13
4
Last reply by vincent15000 5mos 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 LaryAI5mos agoForge
1
1
Last reply by LaryAI 5mos 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 Niush5mos agoInertia
1
1
Last reply by Niush 5mos 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...5mos agoLaravel
3
4
Last reply by giorg-332048 5mos 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 martinbean5mos agoLaravel
4
3
Last reply by martinbean 5mos 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 martinbean5mos agoLaravel
12
114
Last reply by martinbean 5mos 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 martinbean5mos agoLaravel
6
1
Last reply by martinbean 5mos 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 LaryAI5mos agoFilament
1
1
Last reply by LaryAI 5mos ago
troccoli's avatar

Larastan and Eloquent relations

I'm starting a new project so I installed Larastan from the start, set at level 8. I have two models DataPortal and Programme and a belongsTo relationship between the two class DataPortal extends Model { public function programme(): BelongsTo { return $this->belongsTo(Programme::class); } } Running Larastan returns the following error: Method App\Models\

troccoli's avatar
troccoli's avatar silveira5mos agoLaravel
10
69
Last reply by silveira 5mos ago
FunCoding's avatar

auth()->id() global displaying error warning in VS Code

I have user model named Employee. I'm using this with Sanctum. This project is an api only, no frontend integration from Laravel. I'm using VS Code. The user global is triggering the ugly red line in VS Code. This typically how I use it: $user_id = auth()->id(); I have a project where User is the model, and I get no warning. In this project Employee is the user model and

FunCoding's avatar
FunCoding's avatar silveira5mos agoLaravel
6
1
Last reply by silveira 5mos ago
it-is-all-about-laravel's avatar

herd / inertia / vue - build

i've created an laravel 12 +inertia+vue project via herd on windows. on my local machine i can view the project in web browser, but when i make changes to vue components i do not see the changes take affect in the web browser. i tried npm run dev in the terminal, that seems to execute with vite reporting it's ready. however that made it worse - as soon as vite is running i get

it-is-all-about-laravel's avatar
it-is-all-about-laravel's avatar lukgol265mos agoLaravel
6
6
Last reply by lukgol26 5mos ago
GeorgeSource's avatar

Install the last version of Vagrant box laravel/homestead in Virtualbox

When I install the Laravel/Homestead box for Virtual box, it always installs version 12.2.0, but it is old, the most recent, as of today, is 14.0.2. I have tried several alternatives, but without success. I have downloaded version 14.0.2 from: "app vagrantup com laravel boxes homestead", but when installing the box, it says that the file is not versioned and assigns i

GeorgeSource's avatar
GeorgeSource's avatar kereborn5mos agoServers
7
1
Last reply by kereborn 5mos ago
adamnet's avatar

Create a function to be called by every other function i a controller

In my application, I want to create a function that will contain some basic tasks to be executed before presenting data in the app views. I.e. I want every view at its top to have the name of the company which will be no static but will be fetched dynamically from the database. Obviously I do not want to repeat this query analytically in every method in the controllers. I want

adamnet's avatar
adamnet's avatar adamnet5mos agoLaravel
4
4
Last reply by adamnet 5mos ago
minaremonshaker's avatar

Sorting Users by Related Table Columns in Laravel API

Hi, I want to implement sorting on my users table using some columns from related tables — for example, date_of_birth from the profiles table and status from the tickets table — combined with columns from the users table itself. Currently, I’m constructing the URL like this: http://localhost:8000/authors?search=Co&searchBy=first_name&sort=profiles.date_of_birth,users.st

minaremonshaker's avatar
minaremonshaker's avatar minaremons...5mos agoLaravel
7
2
Last reply by minaremonshaker 5mos ago
husnainisworking's avatar

After 6 accounts of claude ai free version limit hit

I face numerous bugs , but copilot, chatgpt pro, grok , all dont help at all , always escalate issue, is there any better free ai like claude for code?

husnainisworking's avatar
husnainisworking's avatar martinbean5mos agoLaravel
5
25
Last reply by martinbean 5mos ago
GodziLaravel's avatar

Looking for a ready-to-use Bagisto repository with maximum addons/modules included

Hi everyone, I’m looking for a Bagisto-based repository or starter project that already includes as many addons/modules as possible (official and/or community), ideally close to a production-ready setup. The goal is to avoid starting from a very minimal core and instead build on top of: Common ecommerce features already enabled Popular Bagisto extensions (payments, shipping, ma

GodziLaravel's avatar
GodziLaravel's avatar martinbean5mos agoGeneral
1
1
Last reply by martinbean 5mos ago
b15063368's avatar

Diagnosing Lag and Input Delay in Geometry Dash (System-Level Issue)

Hi everyone, I know Laracasts is mainly focused on development, but I’m hoping someone here can help me understand a technical issue I’m facing while playing Geometry Dash, as it seems more like a system/performance problem than a game issue. geometrydeshapks.com While playing Geometry Dash, I experience random lag, frame drops, and brief screen freezes, especially on levels wi

b15063368's avatar
b15063368's avatar DigitalArt...5mos agoCode Review
3
14
Last reply by DigitalArtisan 5mos ago
zayadur's avatar

403 forbidden when submitting exam

I'm trying to submit my responses to exams but keep getting a 403 forbidden screen on submit. Is anyone else experiencing this? I've tried on both Safari and Google Chrome to check if it's a client-side issue but it's happening in both scenarios.

zayadur's avatar
zayadur's avatar zayadur5mos agoFeedback
0
1
thesimons's avatar

Filament keeps timeout

Hello, I'm dev mode locally using Herd Pro. I'm working with a pretty heavy panel powered by Filament 4. I have tweaked the tweak-able things. I have max exec time at 300 seconds. But it keeps going timeout. Any idea how to avoid it? I have hard this issue before but the solution was for Windows. Thanks, Simom

thesimons's avatar
thesimons's avatar Tray25mos agoFilament
1
2
Last reply by Tray2 5mos ago
vincent15000's avatar

Laravel Envoy and environment variables

Hello, Is there any way to access the environment variables or the configuration files from Envoy.blade.php ? Thanks for your help. V

vincent15000's avatar
vincent15000's avatar Glukinho5mos agoLaravel
5
1
Last reply by Glukinho 5mos ago
beracah.kings's avatar

Unauthorised File Upload

Im maintaining a laravel application that has a feature to upload image files to the server. Recently I could notice unwanted files being uploaded to the image files folder . The application runs on Apache. We face thiis issue when Php File upload option is enabled, How to resolve. Please advice

beracah.kings's avatar
beracah.kings's avatar beracah.ki...5mos agoLaravel
1
1
Last reply by beracah.kings 5mos 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.