Livewire CRUD with Modals - Code Review

  Рет қаралды 28,159

Laravel Daily

Laravel Daily

Күн бұрын

Пікірлер: 35
@adityakadam2256
@adityakadam2256 2 жыл бұрын
That’s a great video. Thanks for sharing it. Would like to mention my personal experience of using Livewire for CMS. Our SaaS app Garchi CMS was made with Livewire initially but it was a nightmare when more functionalities were added over the period of time. The event messages used to mess up a lot plus it was a pain to use third party libraries in modal. Not to mention about component rendering on every event. Finally we switched to Inertia Vue 3 and it solved tons of problems allowing the app to be more customisable. I have nothing against Livewire it is great for CRUD. I feel Vue 3 and Inertia though you have to write extra code but it is worth it, especially for complex apps.
@necrotikS
@necrotikS 2 жыл бұрын
Thank you for your knowledge. I'm looking for ways to keep checking for start / end date in Laravel, and do something when the time comes (e.g., post should start 2022-05-05 10:00:00 (notify frontend at this time), end at 2022-05-05 18:00:00 (notify frontend at this time)). Which is the best way to implement this using Laravel?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Maybe a scheduler that would run the check every hour and notify everyone? kzbin.info/www/bejne/qF6uo6aHZcmBbpI
@alishan5901
@alishan5901 Жыл бұрын
Hello, Povilas I'm using livewire with custom modals/drawers but the issue is I have dynamic Fields with select2 and each time I have to reinitialize them and as I have each field against a array index it's a bit messy couldn't find a logic or think of any : as we update any property component gets refreshed which refreshes the select2 to normal select I have to check this on every property update any solution for that ??
@LaravelDaily
@LaravelDaily Жыл бұрын
I advise to NOT use any jQuery scripts woth Livewire, they just don't work properly. I suggest Tom Select or Virtual Select.
@alishan5901
@alishan5901 Жыл бұрын
@@LaravelDaily thanks for the quick response let me try those
@mohamednour.t7606
@mohamednour.t7606 Ай бұрын
Great Content . I want to use Livewire , I'm following Repository pattern in Laravel . but the controller is minimal , I don't use it . the business logic inside service , and the data inside the repository , livewire component handle the view , is this right approach ?
@LaravelDaily
@LaravelDaily Ай бұрын
There's no right or wrong approach. If this approach works for you, great!
@GergelyCsermely
@GergelyCsermely 2 жыл бұрын
Livewire is a back-end street for big projects. It is really easy to start with it, bite there are too many limitations and slow.
@krekas
@krekas 2 жыл бұрын
What's slow? For example filament admin works very quick with many records
@arifdevcoding
@arifdevcoding 2 жыл бұрын
​@@krekas it is very very slow when you have hundreds of deeply nested components constantly updating themselves. i am nerver going back to livewire again.
@martinh4982
@martinh4982 2 жыл бұрын
@@arifdevcoding I have to ask: What sort of an application are you making that requires "hundreds of deeply nested components" on a single page? Sounds like a complete nightmare in any framework.
@26kito
@26kito 2 жыл бұрын
@@arifdevcoding sir? Can you answer the question above? Don't get me wrong, I'm curious too with your thoughts. So please answer the question if you have time
@ilhampamungkas5716
@ilhampamungkas5716 Жыл бұрын
You like part of competitor livewire 😂😂 like vue or react .. maybe 😂😂
@MrNotsoft
@MrNotsoft 2 жыл бұрын
How do you transition from livewire methods in view to liveware controller code? Some special plugin for phpstorm?
@jagdishpatel7405
@jagdishpatel7405 2 жыл бұрын
Do you know any source where I can get help to achieve same using Yajra Datatables? I have used single modal for create and update data and Yajra Datatable for listing data. While clicking on edit button I want to open modal with data and save it but I did not found any source to achive the same.
@masonhows6352
@masonhows6352 2 жыл бұрын
Hello sir. I'm sorry. I need to analyze the tables related to the product's dynamic attribute, that a product can have one or more attributes, such as a mobile product that also has a color attribute and a warranty attribute. Do you have any reference for the attributes of a product?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
I have a video about it: kzbin.info/www/bejne/iV7HZauof6aSkNU
@Lections-w3y
@Lections-w3y 2 жыл бұрын
Hello, Povilas. Thank you for your lessons. I have an idea for your next video. It would be nice to see how to protect images from public folder in address bar using middleware or something else. Can we only show files to auth users?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
My old article about it: laraveldaily.com/laravel-upload-file-and-hide-real-url-for-secure-download-under-uuid/
@Lections-w3y
@Lections-w3y 2 жыл бұрын
​@@LaravelDaily Thx, your article is really helpful!
@ahmedsafaa1097
@ahmedsafaa1097 2 жыл бұрын
The smart dialogue for update and create That what i was talking about about one disadvantage of quick admin panel Your system generate 2 forms for each model create and update Hope this would be a a choice in the future
@LaravelDaily
@LaravelDaily 2 жыл бұрын
That was actually a deliberate choice by us: two separate forms are easier to customize however you want, and for our users, the goal was to be as easy to customize as possible, the goal wasn't the re-usability and smart structures of everything.
@saravanasai2391
@saravanasai2391 2 жыл бұрын
Hi sir really a great content. I have gained experience in web development for 1 year. I have worked in laravel Vue 3 and react. Build some decent application. I have attend interview yesterday. They asked some question on laravel about middileware and some more. Then interviewer asked me what is the output of this code should snippet $a='1' ; $b = &$a ; $b = "2$a" echo $a. ', '. $b I know it's as variable passed by referrence but I can't tell crt output Doest it really determine my skills on development or else I need learn php fundamental again with more in depth suggest me a good answer sir And its question of all other team members of my office as junior
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Such "tricky" questions about the output is the WORST way to interview a candidate, because in real projects you wouldn't need to perform such $a $b manipulations. So don't pay attention and keep looking for a job elsewhere.
@saravanasai2391
@saravanasai2391 2 жыл бұрын
@@LaravelDaily thanks for the suggestion.... Sir. But what skills does really need to one year of experience in laravel or general as full stack web developer...
@nrzaly
@nrzaly 2 жыл бұрын
21, 21
@saravanasai2391
@saravanasai2391 2 жыл бұрын
@@nrzaly i have answered same ..and got selected in that interview but i really don't think it determine my skill
@ricko13
@ricko13 2 жыл бұрын
Nice t-shirt man
@surendrabudhathoki8069
@surendrabudhathoki8069 2 жыл бұрын
Jack of traits
@mohamed77599
@mohamed77599 2 жыл бұрын
laravel 9 with vite
@waleedikhlaq5277
@waleedikhlaq5277 2 жыл бұрын
Hi! I am stuck in my project at one point, and want to share with you the issue via email since I wrote a document and included images in it of the project. Can you please share your email address?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Sorry I don't have time for any new code reviews until at least September.
@waleedikhlaq5277
@waleedikhlaq5277 2 жыл бұрын
@@LaravelDaily no worries I managed to solve it.
Faster Eloquent: Avoid Accessors with Foreach
9:35
Laravel Daily
Рет қаралды 54 М.
PHP 8.4: 3 New Features That I WON'T Use
6:25
Laravel Daily
Рет қаралды 6 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 13 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 58 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 39 МЛН
Laravel Livewire - Камень, ножницы, бумага (часть 1)
28:59
Пятиминутка PHP
Рет қаралды 10 М.
9 Tips for Shorter Laravel Code
10:16
Laravel Daily
Рет қаралды 62 М.
Eloquent Performance: TOP 3 Mistakes Developers Make
7:59
Laravel Daily
Рет қаралды 49 М.
I build a TODO list app with Laravel in 17 minutes.
17:58
Josh Cirre
Рет қаралды 7 М.
Laravel Modal Using Alpine JS + Livewire 3
31:27
Yelo Code
Рет қаралды 29 М.
Got a New Laravel Job? 3 Tips to Analyze Project Codebase Fast
7:23
Laravel Daily
Рет қаралды 2,3 М.
4 Packages You Need in ANY Laravel Project
8:14
Laravel Daily
Рет қаралды 62 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 13 МЛН