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

madprabh's avatar

TrustProxies for Hetzner load balancer

Hey Folks, Does anyone know what proxies I should trust to work with Hetzner loadbalancer? I am facing a problem where my site complains that asset urls were loaded over http and doesn't render anything on the browser. My TrustProxies.php is this right now protected $proxies = '*'; /** * The headers that should be used to detect proxies. * * @var int */

madprabh's avatar
madprabh's avatar adamparuse...4mos agoLaravel
3
21
Last reply by adamparusel 4mos ago
abdunnasir's avatar

Laravel best way to execute 100 jobs in parallel

Hello, I am building an uptime monitoring application as a hobby project. Suppose I want to monitor 1000 websites every minute. What is the best way to do this? If I add all 1000 websites to a queue, it will take more than one minute to process all the checks. That means the next monitoring cycle may start after 3–4 minutes, so I cannot achieve a true 1-minute interval. What is

abdunnasir's avatar
abdunnasir's avatar JussiManni...4mos agoDevOps
1
1
Last reply by JussiMannisto 4mos ago
martinbean's avatar

Livewire 3 vulnerability found. Update now!

A vulnerability has been discovered that affects Livewire 3 versions up to and including 3.6.3 (https://nvd.nist.gov/vuln/detail/CVE-2025-54068). If you’re running a vulnerable version, you’re advised to upgrade immediately. This includes if you’re using a package (such as Filament) that relies on affected versions.

martinbean's avatar
martinbean's avatar aurawindsu...4mos agoLivewire
5
90
Last reply by aurawindsurfing 4mos ago
mstdmstd's avatar

How to fix Class "MongoDB\Driver\Manager" not found error under homestead ?

I have installed Homestead with mongodb In my Homestead.yaml I have : ... features: - mongodb: true ... But running the app I got Class "MongoDB\Driver\Manager" not found I have restarted mongod with command sudo systemctl restart mongod and I have under vagrant : $ sudo systemctl status mongod ● mongod.service - MongoDB Database Server Loaded:

mstdmstd's avatar
mstdmstd's avatar Bapquad4mos agoGeneral
10
1
Last reply by Bapquad 4mos ago
suhkha's avatar

FatalThrowableError in Client.php line 81: Class 'MongoDB\Driver\Manager' not found

I have my laravel v.53 project with Homestead (before scotchbox). So in Homestead I install mongodb, so if I type: mongodb --version I got the version 3.2 so it's ok because I use the package jenssegers/laravel-mongodb First I'm not 100% sure if my config is correct: database.php 'mongodb' => array( 'driver' => 'mongodb', 'host' => 'local

suhkha's avatar
suhkha's avatar Bapquad4mos agoLaravel
22
1
Last reply by Bapquad 4mos ago
Swaz's avatar

Livewire 4 sorting across groups?

How is it possible to detect sorting across groups if the only values we get are the $item and $position? from the docs use Livewire\Component; use Livewire\Attributes\Computed; new class extends Component { public User $user; public function sortItem($item, $position) { $item = $this->todo->items()->findOrFail($item); // Update the it

Swaz's avatar
Swaz's avatar Swaz4mos agoLivewire
15
1
Last reply by Swaz 4mos ago
Pixelairport's avatar

Test Spatie Permissions with Orchestra Testbench policy

I use spatie permissions in my package and want to test with orchestra. That means I need Workbench\Models\User::class instead of User\Models\User::class as user model. I set this in phpunit.xml: <env name="AUTH_MODEL" value="Workbench\Models\User::class"/> Now I want to test the policy. But the user model implements spatie permissions trait and then

Pixelairport's avatar
Pixelairport's avatar kei_mx4mos agoTesting
3
5
Last reply by kei_mx 4mos ago
Samart69's avatar

Install Laravel 10 on shared hosting

I have read all the related discussions here with no resolution. I cannot change the virtual host document root on the server as this is a shared hosting environment. Most of the articles I read suggested a .htaccess in the root of the project, this works to a degree. The site works as expected UNTIL you add a trailing slash to the URL like so /test/, and the site redirects you

Samart69's avatar
Samart69's avatar HoudaifaBS4mos agoLaravel
11
295
Last reply by HoudaifaBS 4mos ago
Shivamyadav's avatar

Should I use laravel telescope in production ?

Should I use laravel telescope in production ? If yes, then what should I focus for the security and other stuffs. If nope, then why I should not use it into the production.

Shivamyadav's avatar
Shivamyadav's avatar hinlocaesa...4mos agoLaravel
14
29
Last reply by hinlocaesar-75309181 4mos ago
Adailton de Jesus Cerqueira Junior's avatar

Which library do you indicate for create PDF in laravel?

Hi, Currently, we are using barryvdh/laravel-dompdf for create PDF's file in our system. However, we are searching a new modern alternative package. We found spatie/laravel-pdf library, but we yet not test it. So, we would like which library the community recommends. Best Regards.

Adailton de Jesus Cerqueira Junior's avatar
Adailton de Jesus Cerqueira Junior's avatar hinlocaesa...4mos agoLaravel
4
42
Last reply by hinlocaesar-75309181 4mos ago
Shivamyadav's avatar

Landing page AI workflow cards mobile device issue?

This section on the landing page Learn the AI workflows of the pros On my mobile device each cards doesn't have space in between them and some height overlapping to each others. @JeffreyWay

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...4mos agoFeedback
0
1
lift_spindle's avatar

string interpolation or .

in python I use f strings all the time. in php i use the . all the time, but php can string interpolate if you use double quotes. maybe that's why pint tells me to use single quotes... any way. what do you use?

lift_spindle's avatar
lift_spindle's avatar hinlocaesa...4mos agoGeneral
4
10
Last reply by hinlocaesar-75309181 4mos ago
zYxNiRV's avatar

Best Resources & Courses to Prepare for Laravel Certification

Hi everyone! I’ve been thinking about pursuing the Laravel Certification, and I wanted to start a discussion to gather thoughts and recommendations from the community. My Goal I want to: Understand what the Laravel certification exam covers Find high-quality courses or resources that help prepare for the exam Know which areas to focus on, especially for real-world application a

zYxNiRV's avatar
zYxNiRV's avatar zYxNiRV4mos agoFeedback
4
22
Last reply by zYxNiRV 4mos ago
abdunnasir's avatar

Best Laravel approach/package for project-based roles and resource access?

I’m building a Laravel application using Laravel Auth for authentication. In my app, a user can be either the owner of a project or a collaborator. Each project has multiple resources, and access to those resources depends on the user’s role within that specific project (not global roles). Is there an existing Laravel package that supports project-scoped roles and permissions,

abdunnasir's avatar
abdunnasir's avatar martinbean4mos agoLaravel
1
1
Last reply by martinbean 4mos ago
FRodrigues's avatar

Filament / Livewire / Flux - Component Render Issues

I have been working with custom livewire pages inside filament. Everything works fine except for Livewire/flux components. I have configured the following, AppServiceProvider.php, inside boot use Illuminate\Support\Facades\Blade; if (request()->is('admin/flux*')) { FilamentView::registerRenderHook( PanelsRenderHook::BODY_END, fn (): string => Blade::r

FRodrigues's avatar
FRodrigues's avatar SolidBridg...4mos agoFilament
2
16
Last reply by SolidBridge 4mos ago
an.leclerc's avatar

Problem with foreach - array offset on null

Hi, I've a problem, in my component I've 2 methods : #[Computed] public function resourceTypes() { return ResourceTypeModel::orderBy('name', 'ASC')->get(); } #[Computed] public function periodicityTypes() { return PeriodicityTypeModel::orderByRaw("FIELD(reference, 'mensuelle', 'trimestrielle', 'semestrielle', 'annuelle') DESC&quo

an.leclerc's avatar
an.leclerc's avatar an.leclerc4mos agoLivewire
8
1
Last reply by an.leclerc 4mos ago
minaremonshaker's avatar

How does Laravel determine route specificity and matching priority?

I'm trying to get a solid grasp on how Laravel handles route specificity when multiple routes could potentially match a given URI. From what I've read, routes are matched based on the order they're defined, with more specific (static) routes taking precedence over parameterized ones. But I'd love some clarification and examples from experienced devs. For instance: If I have R

minaremonshaker's avatar
minaremonshaker's avatar martinbean4mos agoLaravel
2
1,294
Last reply by martinbean 4mos ago
minaremonshaker's avatar

Does Gate::before bypass a policy if the callback returns true for a given permission?

I’m defining a global Gate::before check in my AppServiceProvider like this: Gate::before(function (User $user, $ability) { if ($user->hasAnyPermission(['view_any_ticket'])) { return true; } return null; }); In my TicketPolicy, the view method looks like this: public function view(User $user, Ticket $ticket): bool { if ($user->hasPermissionTo('vie

minaremonshaker's avatar
minaremonshaker's avatar tykus4mos agoLaravel
5
12
Last reply by tykus 4mos ago
the_lar's avatar

Confused by vite build and images or lack thereof

Hi, I'm currently mid way through the React From Scratch series - https://laracasts.com/series/react-from-scratch I'm using my knowledge for a bit of challenge project and have hit a bit of an issue which is probably me doing something stupid but maybe you can help! The file layout of my project looks like this: https://ibb.co/Rk59dGZV I have a header component with a simple SV

the_lar's avatar
the_lar's avatar the_lar4mos agoReact
2
1
Last reply by the_lar 4mos ago
shez1983's avatar

Testing FORM component - sometimes fails (have to duplicate filling fields)

So i have a simple test, i m guessing it fails because i have a little bit of logic to update server when user types something.. so what I am having to do is: visit(route('referrals.create')) ->type('#company', $company->name) ->select('#type_id', '1') ->select('#type_id', '1') // repeat this line again ->screenshot(true) // or do this

shez1983's avatar
shez1983's avatar shez19834mos agoLivewire
2
1
Last reply by shez1983 4mos ago
UAlex's avatar

Is there a problem with the 'Ask AI' tabs in each lesson?

I’m having trouble with the 'Ask AI' tab in each lesson. It looks like it’s generating an output, but then it just disappears. I'm left with nothing. I’ve switched between Chrome and Firefox, but it still isn't working. Is anyone else seeing this?

UAlex's avatar
UAlex's avatar JeffreyWay4mos agoFeedback
1
1
Last reply by JeffreyWay 4mos ago
vincent15000's avatar

Single method for different instantiations

Hello, I need to use this code. $calculationService->loadVariables(); But the loadVariables method doesn't contain the same code according to the Livewire component in which it is used. I could simply write the method in both components, but I also need to use it in other contexts. So I thought about an interface, but I'm not sure it's a good idea. I also thought about

vincent15000's avatar
vincent15000's avatar vincent150...4mos agoLaravel
5
1
Last reply by vincent15000 4mos ago
phpMick's avatar

How are you deploying your Laravel API's currently?

Hi, We are just planning on deploying a new API which a third party will use to send us data. We are considering all deployment options and not just an EC2 instance. It will be AWS. What would you suggest, what is popular nowadays? Cheers, Mick

phpMick's avatar
phpMick's avatar martinbean4mos agoGeneral
2
2
Last reply by martinbean 4mos ago
davidmarsmalow's avatar

Livewire 4 @island inside a loop (foreach/forelse)

How to use @island inside a loop (@foreach / @forelse) in Livewire 4? I’m experimenting with the new @island feature in Livewire 4, and I’m running into an issue when trying to use it inside a loop. My use case is a Kanban-style board where columns are rendered dynamically using @foreach. Inside each column, I want to wrap part of the UI with @island so that it can be independe

davidmarsmalow's avatar
davidmarsmalow's avatar DigitalArt...4mos agoLivewire
1
1
Last reply by DigitalArtisan 4mos ago
PeteBatin's avatar

Shopify App using Laravel learning material?

Hi all, I'm feeling pretty down. I've been looking forward to doing the "Build Shopify Apps with Laravel" Laracasts course, it's one of the main reasons I decided to get a subscription. I've completed other courses in the run up to this one and this week was going to be the week to finally do it. I started Tuesday and discovered the content is so out of date, both S

PeteBatin's avatar
PeteBatin's avatar PeteBatin4mos agoTips
4
6
Last reply by PeteBatin 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.