Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

TarikAli's avatar

Refactor function and DB Transaction

Hello, i have this function in a service : public function createOptionWithValues(array $data): Option { $data = $this->prepareOptionData($data); $validationErrors = $this->validateOption($data); if (!empty($validationErrors)) { throw ValidationException::withMessages($validationErrors); } $option =

TarikAli's avatar
TarikAli's avatar tykus7mos agoLaravel
3
1
Last reply by tykus 7mos ago
DomHutton's avatar

LaraPress

Does a Laravel Wordpress clone exists? I'm not interested in the plugin architecture but User Management + WYSIWYG Posts/Pages + User Management System would have saved me budget on plenty of projects. Do other people feel the same? Would it be something I should investigate making when I next have the budget for it?

DomHutton's avatar
DomHutton's avatar Tray27mos agoLaravel
4
1
Last reply by Tray2 7mos ago
Cushty's avatar

Postcode lookup

Hi, what do you guys use for UK postcode search? i can use google but seems it can get expensive, ive seen https://postcodes.io/ just checking what you guys use? Thanks

Cushty's avatar
Cushty's avatar Cushty7mos agoLaravel
4
1
Last reply by Cushty 7mos ago
fritsjan's avatar

ticketing for laravel?

Hi All, I am developing a dashboard in laravel (inertia, vue) and would like my users to be able to give me feedback. A simple message system would be enough for now, but bug reports or feature requests or support would be nice in the future. An integrated ticketing system would be nice. This might be an option but has been updated 3 years ago: https://github.com/coderflexx/lar

fritsjan's avatar
fritsjan's avatar LaryAI7mos agoGeneral
1
2
Last reply by LaryAI 7mos ago
vincent15000's avatar

How to apply CSS styles and show images in an html email for Gmail ?

Hello, I just created a mailable and its blade view. Sent to Gmail and some other mail clients, the styles are deactivated. Same thing with base64 encoded images that are not displayed. How is it possible to apply CSS styles that can be applyed and displayed in Gmail ? How is it possible to show images in an html mail received on Gmail ? Thanks for your help. V

vincent15000's avatar
vincent15000's avatar Snapey7mos agoLaravel
12
2
Last reply by Snapey 7mos ago
HubertVanD's avatar

First option of select dropdown returns NULL

I have a Livewire component which contains a dropdown menu filled by values from the database: <form wire:submit.prevent='createIdea' action="#" method="POST" > <div> <select wire:model="category" name="category_add" id="category_add"> @foreac

HubertVanD's avatar
HubertVanD's avatar Snapey7mos agoLivewire
7
3
Last reply by Snapey 7mos ago
helloejsulit's avatar

How does e-wallet works?

Hello, I am having a bit of confusion regarding how does money coming from PayPal or credit card be converted to an e-wallet balance and use that balance as payment to the merchant? Say, I cash in $100 to my e-wallet account using PayPal. That transaction should be saved on my database, right? Then, I'll update the user's e-wallet balance to $100. Now, I'm going to purchase an

helloejsulit's avatar
helloejsulit's avatar helloejsul...7mos agoGeneral
14
1
Last reply by helloejsulit 7mos ago
SaeedPrez's avatar

What Are Some PHP Twitter Accounts Everyone Should Follow?

Hey guys, I've been on Twitter since 2009 but barely ever used it. I did my first ever tweet a couple of days ago. So I'm wondering, what are some PHP related accounts/people everyone should follow? So far I have.. https://twitter.com/laracasts https://twitter.com/jeffrey_way https://twitter.com/laravelphp https://twitter.com/taylorotwell https://twitter.com/stauffermatt https

SaeedPrez's avatar
SaeedPrez's avatar dodomedia7mos agoPHP
16
2
Last reply by dodomedia 7mos ago
raobilal4822's avatar

Live and Reactive is not wokring using relationship

I am using a relation with a section like this ->relationship('commissionSetup') ->schema(function (Get $get, $record) use ($serviceLevel) { $wizardServiceLevel = $get('../../meta.service_level'); $finalServiceLevel = $serviceLevel ?? $wizardServiceLevel ?? self::getPropertyServiceLevel($get('parent_

raobilal4822's avatar
raobilal4822's avatar LaryAI7mos agoFilament
1
1
Last reply by LaryAI 7mos ago
minaremonshaker's avatar

Managing API Exception Handling with Custom Formats in bootstrap/app.php

Hello, I am developing an API and want to handle exceptions in a specific format. I have added this format to the bootstrap/app.php file, but I want to avoid putting too much code in that file. Is it possible to extend the NotFoundHttpException and customize its response so that it appears according to my desired format? If this is possible, how can I apply it within bootstrap/

minaremonshaker's avatar
minaremonshaker's avatar minaremons...7mos agoLaravel
14
1
Last reply by minaremonshaker 7mos ago
minaremonshaker's avatar

Bearer Token Visibility in API Testing Tools

Hi, when I use Insomnia or Postman to test my API, I notice that the bearer token appears. Is this normal, or should it be secured in some way? Does it not appear at all in production? below is a copy of the console tap in insomnia * Preparing request to http://ticket-please.local/api/v1/users/1 * Current time is 2025-12-01T16:01:22.190Z * Enable automatic URL encoding * Using

minaremonshaker's avatar
minaremonshaker's avatar JussiManni...7mos agoLaravel
10
1
Last reply by JussiMannisto 7mos ago
vincent15000's avatar

Inline attachment with a Mailable

Hello, I'm trying to add an inline attachment. https://laravel.com/docs/12.x/mail#inline-attachments But I get this error message. Undefined variable $message The documentation says that the $message variable is not available in plain-text messages. I don't have any text attribute in the content class. public function content(): Content { return new Content( view:

vincent15000's avatar
vincent15000's avatar vincent150...7mos agoLaravel
3
2
Last reply by vincent15000 7mos ago
thesimons's avatar

Alternative way to achieve this kind of validation

Hello, don't kill me please. I tried the Laravel "validation" style but I'm unable to get the same result for the following (dirty) code. public function update(Request $request) { if (empty($request->current_password)) { return back()->withInput() ->with('error', 'lang.profile.settings.preferences.password.current_pas

thesimons's avatar
thesimons's avatar Tray27mos agoLaravel
5
1
Last reply by Tray2 7mos ago
DavidSprauel's avatar

Vue 3 TreeSelect

Hello, i'm using this package https://github.com/megafetis/vue3-treeselect for a Tree Select component, and it works like a charm in a front point of view, but it spam my console with warning which I can't get rid of. I would have like to post an issue in the package github but it isn't supported anymore. To be fair, I know I should be looking for another package, but i've been

DavidSprauel's avatar
DavidSprauel's avatar agb17mos agoVue
4
1
Last reply by agb1 7mos ago
AtlasApollo's avatar

Shai-hulud 2.0 and dev/prod environments

Hi, I have a Laravel/Vue SaaS and just got a new dev machine. I wanted to set up the environment, but was concerned about Shai-hulud 2, and 3 and so on: From https://www.darkreading.com/cyberattacks-data-breaches/shai-hulud-variant-cloud-ecosystem: "...the new variant "also automatically backdoors every npm package maintained by the victim, republishing them with mali

AtlasApollo's avatar
AtlasApollo's avatar LaryAl7mos agoGeneral
3
1
Last reply by LaryAl 7mos ago
Jarhakoz's avatar

Slot in persistent Inertia layout

I'm following the guide in https://inertiajs.com/pages#persistent-layouts And I'v placed a named slot in one of the layout components, <TopBar> And I'm then trying to use that named slot from the Inertia page component, but the problem is that the page component does not import the layout, hence it's persistent. Now how does one use the slot int the (parent) layout compon

Jarhakoz's avatar
Jarhakoz's avatar Shivamyada...7mos agoInertia
8
1
Last reply by Shivamyadav 7mos ago
woweya's avatar

Using $this when not in object context (Script JS)

Hello to everyone, when in my PHP Blade View I use: @script <script> </script> @endscript It returns an Exception which is: "Using $this when not in object context" Why is that? My controller doesn't have even anything inside other than the render method and the mount method.

woweya's avatar
woweya's avatar kevintherm7mos agoLivewire
14
1
Last reply by kevintherm 7mos ago
vincent15000's avatar

Discussion around Livewire / VueJS vs htmx

Hello, I know Livewire and VueJS quite well, but I don't know htmx (just some quick tries). I wonder ... if I have an application in which only one or two pages are really complex, is it worth using Livewire or VueJS for these pages ? or is it better to use htmx ? I have seen that htmx seems to be very light beside of Livewire or VueJS. Who has already used htmx ? Is it a good

vincent15000's avatar
vincent15000's avatar Snapey7mos agoGeneral
4
1
Last reply by Snapey 7mos ago
Ligonsker's avatar

Translation of capitalized and non-capitalized English word

Hi, using the JSON translation, I currently have to have separate keys for capitalized and non-capitalized words, for example: "addresses": "<some translation>", "Addresses": "<same translation as above>" but in the language I want to translate there is no such thing as capitalization.. so I currently have to manually add b

Ligonsker's avatar
Ligonsker's avatar Glukinho7mos agoGeneral
2
1
Last reply by Glukinho 7mos ago
earmsby's avatar

file upload field on Filament form

This is a combination Filament and server/php question. I have a file upload field on a Filament form with this set up: FileUpload::make('pdf_file') ->disk('public') ->directory('music_pdfs') ->maxSize(20000) ->visibility('public'), In the PHP ini file on

earmsby's avatar
earmsby's avatar earmsby7mos agoFilament
4
1
Last reply by earmsby 7mos ago
zYxNiRV's avatar

Seeking Practical Project Ideas to Enhance Laravel Skills After Completing 30 Days Tutorial

Hello Laravel Community! I’ve recently completed the 30 Days of Laravel tutorial, and it was an amazing learning experience. Now that I feel more comfortable with the basics, I’m eager to level up my skills and apply my knowledge in a real-world project. I’m looking for some interesting project ideas that could help me improve my Laravel proficiency, especially in areas like: A

zYxNiRV's avatar
zYxNiRV's avatar LaryAI7mos agoGeneral
1
1
Last reply by LaryAI 7mos ago
chad-orases's avatar

Training Not Loading

Is anyone having have an issue with the videos not loading?

chad-orases's avatar
chad-orases's avatar sean20257mos agoGeneral
3
1
Last reply by sean2025 7mos ago
ravasaurio's avatar

Deciding what item remains in a collection after unique method is applied

I have a test model and a question model, with a many to many relationship. I am making a method that combines n tests. It takes all the questions in all the tests and creates a new test using the questions on the tests, removing duplicates. $questions = $questions->unique('id')->sortBy('id'); But I can not simply use the ID. See, each question has a tag field, which I am

ravasaurio's avatar
ravasaurio's avatar pilat7mos agoLaravel
9
1
Last reply by pilat 7mos ago
TarikAli's avatar

get user in multi guards same route

Hello, i have these routes Route::group([ 'prefix' => LaravelLocalization::setLocale(), 'middleware' => ['localeSessionRedirect', 'localizationRedirect', 'localeViewPath'] ], function () { Route::group([ 'prefix' => 'shared', 'as' => 'shared.', 'middleware' => ['auth:admin,teacher'], ],

TarikAli's avatar
TarikAli's avatar martinbean7mos agoLaravel
4
1
Last reply by martinbean 7mos ago
earmsby's avatar

connect to Forge DB from remote website

I have a php site set up on Forge (not Laravel). Another related site on a different server needs to access the database for my Forge site. I researched how to do this a while ago but now I can not find the location where I had found a way to do it. I did search the Forge documentation and got as far as setting up firewall rule for the remote site. But there must be more to it

earmsby's avatar
earmsby's avatar martinbean7mos agoForge
3
1
Last reply by martinbean 7mos 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.