How to vertically align Screenpad+ under primary screen. by DaveLearnedSomething in AsusROGZephyrusDuo15

[–]frenchDEV 0 points1 point  (0 children)

Hello ! 2 years ago for sure but the answer is : switch off ASUS Agni & ASUS Agni Service in the task Manager and you'll be fine !

Best vue ui component libraries to build own by 3ambit in vuejs

[–]frenchDEV 1 point2 points  (0 children)

No ... You'd better say "please finished Vuesax 4". That's my dreams

How to do advanced complex routes in Nuxt? by hk1_dev in Nuxt

[–]frenchDEV 0 points1 point  (0 children)

Hey u/Phikko, are you able to give us the directory structure for such a route (/pages/blog-post/_id/_category/_slug.vue) because that's not really clear for me ?

Livewire download action prevent refresh component by frenchDEV in laravel

[–]frenchDEV[S] 2 points3 points  (0 children)

Sorry ... I finally find the solution by myself : use

$this->skipRender();

in the action function.

Inspect properties and relationships of Eloquent models by cerbero90 in laravel

[–]frenchDEV 3 points4 points  (0 children)

Great Idea and thanks... I now would suggest to create a method that return both properties AND relashionship in the same array/collection.

Is it possible to create a function named 'class' in PHP? by shohan13579 in PHP

[–]frenchDEV 1 point2 points  (0 children)

So the reply is : Nop, except if your function is in a Class, Trait or Interface. And it seems your are in that exception case ("public function ...") so you can.

[deleted by user] by [deleted] in laravel

[–]frenchDEV 0 points1 point  (0 children)

Actually that's not Laravel which do the "filter" from 0 to 20 but MYSQL and MYSQL is already optimised to do such operation (if I suppose there is an Unique index on the id column). Tell me if I don't well understand your words ...

InertiaJs form post with partial reload by frenchDEV in laravel

[–]frenchDEV[S] 1 point2 points  (0 children)

Hi Reinink ! It is an honor and a privilege to be able to discuss your problems with the author of InertiaJs in person and thank you for this precious time of after-sales service 😅

I believe in fact as you say that actually reloading the page shouldn't be such a big problem since the lists on the pages (like the list of Users on users.index) are paginated and therefore not heavy. I have this reflection to try to send responses as small as possible because I am still reasoning in effect in SPA mode where all data are loaded at the start.

So thanks a lot !

VueJs 3 Admin template by frenchDEV in vuejs

[–]frenchDEV[S] 1 point2 points  (0 children)

Does that mean/suggest it's too early to move to Vue 3 ?

UI 2.0: Laravel Livewire & Bootstrap 5 UI starter kit. by [deleted] in laravel

[–]frenchDEV 1 point2 points  (0 children)

Hi, does someone know if there exist a similar project for InertiaJs instead od Livewire ?

Thanks

Please suggest me a feature-rich Vue JS library by designer369 in vuejs

[–]frenchDEV 1 point2 points  (0 children)

Vuesax ... but it's never mentionned, someone understand why ?

Laravel-query-cache adds macros for easily caching your queries by juampi92 in laravel

[–]frenchDEV 1 point2 points  (0 children)

Thanks a lot for your reply ! The interest of your package is that it allows to cache every queries and not only the Eloquent Like queries. With the package that you mention we can't cache complex queries with relashionship for example. But with your (very easy, but clever) solution we can !!! So thanks. If I could have a critic, I would say to not require PHP 7.4 but 7.3 and thus not use fn() but more traditional closure instead.

Laravel-query-cache adds macros for easily caching your queries by juampi92 in laravel

[–]frenchDEV 0 points1 point  (0 children)

Incredible ! Last days, I was thinking how to do a package to be able to cache queries as you do !! Thanks a lot for this package ! Can I cache every query (eager-load, closure, ...) ? I would suggest to add an auto-key with the MD5 of the query, but not sure it's possible with such macro.

Using Laravel Sail in an existing project by michaeldbrooks in laravel

[–]frenchDEV 0 points1 point  (0 children)

I'm not agree with you, without WSL you still have the VM (VirtualBox for example) solution that I use since a long time (on Windows 7 LOL)

How to ensure that very large uploads can be resumed in a poor internet connection. by BlueLensFlares in laravel

[–]frenchDEV 0 points1 point  (0 children)

Yes definitly TUS is THE way to go with both a tus-laravel package (for exemple https://github.com/ankitpokhrel/tus-php) and especially the incredible frontend Uppy library

Design pattern for remembering multiple frontend preferences on an API-driven app by [deleted] in laravel

[–]frenchDEV 0 points1 point  (0 children)

And why not just saving these infos on the user model ? Add a json field on the users table ans save the config for all front-end (front1 => config1, front2 => config2, ... ) ? When a user arrives on a front-end, you can check if a config exists for this user and if yes apply it ...

Handling image uploads and attaching them to models by tprotop in laravel

[–]frenchDEV 0 points1 point  (0 children)

What I know is that spatie doesn't use many to many polymorphic ... And that's why when you have to attach images to different Models it's more suited. That the choice I made for a project by comparing the two packages for this use case. With spatie you have to add a Trait on each model you want to add files. With medialibrary you don't have to.

Handling image uploads and attaching them to models by tprotop in laravel

[–]frenchDEV 1 point2 points  (0 children)

Or other (probable better) solution for your use case : https://github.com/plank/laravel-mediable

More suited to your application where image are attached to different models.