Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

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...5mos agoLaravel
4
1
Last reply by hinlocaesar-75309181 5mos 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...5mos 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...5mos agoGeneral
4
1
Last reply by hinlocaesar-75309181 5mos 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 zYxNiRV5mos agoFeedback
4
1
Last reply by zYxNiRV 5mos 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 martinbean5mos agoLaravel
1
1
Last reply by martinbean 5mos 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...5mos agoFilament
2
2
Last reply by SolidBridge 5mos 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.leclerc5mos agoLivewire
8
1
Last reply by an.leclerc 5mos 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 martinbean5mos agoLaravel
2
1
Last reply by martinbean 5mos 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 tykus5mos agoLaravel
5
1
Last reply by tykus 5mos 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_lar5mos agoReact
2
1
Last reply by the_lar 5mos 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 shez19835mos agoLivewire
2
1
Last reply by shez1983 5mos 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 JeffreyWay5mos agoFeedback
1
1
Last reply by JeffreyWay 5mos 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...5mos agoLaravel
5
2
Last reply by vincent15000 5mos 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 martinbean5mos agoGeneral
2
1
Last reply by martinbean 5mos 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...5mos agoLivewire
1
1
Last reply by DigitalArtisan 5mos 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 PeteBatin5mos agoTips
4
1
Last reply by PeteBatin 5mos ago
hinlocaesar-75309181's avatar

Request for Certificate Upon Completion of the Laravel Architect Path

I plan to complete the Laravel Architect learning path. Upon successful completion, in addition to building real-world projects, I hope Laracasts will consider issuing a certificate to formally recognize the skills and expertise I gain through this program. This certificate would allow me to showcase my achievements on LinkedIn and during tech interviews, which I believe would

hinlocaesar-75309181's avatar
hinlocaesar-75309181's avatar lift_spind...5mos agoFeedback
1
2
Last reply by lift_spindle 5mos ago
minaremonshaker's avatar

Is it a good practice to assign direct permissions to users when using the Spatie permissions package?

hi i am using spaite permissions for authorization , I want to ask what are the situation where i can assign direct permissions to users

minaremonshaker's avatar
minaremonshaker's avatar vincent150...5mos agoLaravel
6
1
Last reply by vincent15000 5mos ago
raobilal4822's avatar

Cluster navigation filament

i want to edit the view of cluster's navigation. i want to change the bg of navigation of cluster.

raobilal4822's avatar
raobilal4822's avatar lift_spind...5mos agoFilament
2
1
Last reply by lift_spindle 5mos ago
Developer654079525's avatar

The PsySH tool

Latest framework update made some security and workflow changes to the PsySH library used in Tinker. Now, the first time we start the Tinker we are greeted with the confirmation dialog. This looks like a major shift from a usage perspective. I understand they are tackling the security issue, but not sure if the library is the one that should be displaying the dialog. What are y

Developer654079525's avatar
Developer654079525's avatar DigitalArt...5mos agoLaravel
2
1
Last reply by DigitalArtisan 5mos ago
wannabe-laravel-dev's avatar

Efficient Infinite scroll using Livewire?

Are there any known techniques/methods for implementing infinite scroll or load more on scroll using Livewire without querying the database for all previous results? All tutorials on the web seem to show exactly the same inefficient way of implementing it which is like this.. At first 10 results are loaded When load more is called 20 results are loaded Each time you load more

wannabe-laravel-dev's avatar
wannabe-laravel-dev's avatar thepanda5mos agoLivewire
5
1
Last reply by thepanda 5mos ago
earmsby's avatar

Should I change the timezone for my server?

I have a filament app on a forge server which has a widget to fetch my WooCommerce orders for today. The WooCommerce site is on a completely different server and I use the API to interact with it on my filament app. I fetch orders like this: //get today's orders $today_start = date('Y-m-d') . 'T00:00:00'; $today_end = date('Y-m-d') . 'T23:59:59';

earmsby's avatar
earmsby's avatar earmsby5mos agoForge
4
1
Last reply by earmsby 5mos ago
Shivamyadav's avatar

Any AWS tutorial for learning from scratch?

Would you guys please give me your 1 or 2 mins to suggest me a good 😊 AWS tutorial and I can't find the way from where should I start?

Shivamyadav's avatar
Shivamyadav's avatar lift_spind...5mos agoGeneral
3
1
Last reply by lift_spindle 5mos ago
lewiswildman's avatar

How to track form data?

I'm using intertia with wayfinder to build my forms. But I've ran into a situation where I need to track any changes to the form data. However, I can't see any way of doing that? With the form context, I can do something like form.getData(), but that only returns a snapshot of the data and not the actual state. But on the form context itself, I see no way of getting the state o

lewiswildman's avatar
lewiswildman's avatar JussiManni...5mos agoInertia
3
1
Last reply by JussiMannisto 5mos ago
ian_h's avatar

Forum - Post removal doesn't reset the REAL "last updated" time

It seems when comments (largely spam) are removed from a thread, the thread still remains as a recently updated thread, when in reality, it's not if it's had the last record removed. Would be great to see the date reset to the last comment date so that 2 year old (for example) threads don't appear in the latest updated threads. This thread for example: https://laracasts.com/dis

ian_h's avatar
ian_h's avatar Glukinho5mos agoFeedback
2
1
Last reply by Glukinho 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.