liandro-silva's avatar

liandro-silva liked a comment+100 XP

3mos ago

It's subjective but I prefer not using livewire, I suggest a React or Vue approach. But Axios JS is many times used behind the scenes anyway.

Some custom frond end work with regular javascript and Axios JS is real easy to achieve.

I tend to like stable, not the latest hot thing that's only been around a few months.

Also with React or Vue I think you have more custom control when needed.

But just my 2 cents.

liandro-silva's avatar

liandro-silva liked a comment+100 XP

3mos ago

I have 6 years of experience with Node and React, but the ecosystem's instability led me back to PHP. I am building a SaaS for autism clinics (billing, scheduling, ABA, VB-MAPP) using Laravel, which will be wrapped in Capacitor for mobile deployment.

To ensure the best mobile performance, do you recommend Livewire with AlpineJS, or would it be better to use Inertia with Svelte?

I really would like to avoid client-side Javascript as much as possible LoL.

P.S.: Please be patient, as it has been a while since I worked with PHP. I 'm amazed at how much the ecosystem has evolved (Livewire, Filament, Inertia, etc.), considering I stopped back in PHP 5.

Tks ;)

liandro-silva's avatar

liandro-silva wrote a reply+100 XP

3mos ago

Recife - Pernambuco - Brazil 🏖️🏖️

Img

liandro-silva's avatar

liandro-silva started a new conversation+100 XP

3mos ago

I have 6 years of experience with Node and React, but the ecosystem's instability led me back to PHP. I am building a SaaS for autism clinics (billing, scheduling, ABA, VB-MAPP) using Laravel, which will be wrapped in Capacitor for mobile deployment.

To ensure the best mobile performance, do you recommend Livewire with AlpineJS, or would it be better to use Inertia with Svelte?

I really would like to avoid client-side Javascript as much as possible LoL.

P.S.: Please be patient, as it has been a while since I worked with PHP. I 'm amazed at how much the ecosystem has evolved (Livewire, Filament, Inertia, etc.), considering I stopped back in PHP 5.

Tks ;)

liandro-silva's avatar

liandro-silva wrote a comment+100 XP

3mos ago

@aztec_gold It's been a year since this comment, but I'll reply anyway to reinforce my knowledge . I'm migrating from the JavaScript ecosystem to PHP.

I did it the way we do in Tinker.

        $jobs   = Job::factory()->count(10)->create();
        $tags = Tag::factory()->count(10)->create();

        $jobs->each(fn ($job) => $job->tags()->attach($tags->random(3)));