Тёмный
No video :(

Organizing data with Laravel Collections 

Andrew Schmelyun
Подписаться 36 тыс.
Просмотров 28 тыс.
50% 1

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 39   
@realhelmi
@realhelmi 3 года назад
Your tuts are of great style and pace and are very helpful for me as a relative Laravel newbie. Thank you.
@JohnSmith-zl8rz
@JohnSmith-zl8rz 3 года назад
This channel needs more views and more videos. Thanks.
@aschmelyun
@aschmelyun 3 года назад
Thank you! I'm working on getting there, haha.
@JohnSmith-zl8rz
@JohnSmith-zl8rz 3 года назад
@@aschmelyun I know, I bet you have a real world job and this tuts are an extra, you teach so well, I bet if you make complete series you will get tons of views.
@seunoyebode
@seunoyebode 3 года назад
This is an amazing tutorial. I've watched several tuts on Collections but this stands out for me. Awesome Tut, Awesome Example. Awesome Pace. Thank you Andrew
@oladayoagbolade3676
@oladayoagbolade3676 3 года назад
So you got here sir This tutorial saved me
@seunoyebode
@seunoyebode 3 года назад
@@oladayoagbolade3676 yes o 😃
@nudecode
@nudecode 2 года назад
Fantastic! Best tutorial on collections I’ve seen
@thebirdhasbeencharged
@thebirdhasbeencharged 3 года назад
Video on your phpstorm setup
3 года назад
Very cool. Thanks for sharing!
@meetmewada4944
@meetmewada4944 Год назад
Great quality content
@sastrakancana
@sastrakancana 3 года назад
thanks tons...
@markcorrigan293
@markcorrigan293 Год назад
I am not seeing your result. From the filter method I get ErrorException undefined array key "post_hint". I am using Laravel 10?
@markcorrigan293
@markcorrigan293 Год назад
Hi there. I found the solution - I think: public function filter() { $posts = $this->posts->filter(function($post, $key) { if( empty($post['data']['post_hint'])) { return false; } return \Illuminate\Support\Str::contains( $post['data']['url'], 'i.redd.it'); });
@user-zs3hl8ze9j
@user-zs3hl8ze9j 8 месяцев назад
Great Work thank u go ahead
@savlukAV
@savlukAV 3 года назад
Why do you initialize a PRIVATE property through the controller CONSTRUCTOR for the index method?
@kamiseta05
@kamiseta05 3 года назад
Because the constructor is always called to initialize the controller class. That way, he doesnt have to initialize it on all the other methods.
@josuebarros-desenvolvedorw2490
@josuebarros-desenvolvedorw2490 3 года назад
So... if I get some Real Estate data coming from a external api (json), convert into a Laravel Collection I can paginate the results with pagination method?
@stephenmcatieno3849
@stephenmcatieno3849 2 года назад
Good question. Did you hack this? Been struggling with the same. After converting Odata to collection how do you paginate without first saving to db table
@josuebarros-desenvolvedorw2490
@josuebarros-desenvolvedorw2490 2 года назад
@@stephenmcatieno3849 hmmm, I don't quite remember because its been a while... since I hit apis with ReactJS now, I can get the results and modify in any format using javascript functions
@asifm3520
@asifm3520 3 года назад
Great info.
@BilotoS89
@BilotoS89 3 года назад
Can you make an example with foreign tables queries on livewire? I have an example that I'm struggling with
@christiaanlouwerman4333
@christiaanlouwerman4333 2 года назад
Some objects in the collection don't have the post_hint key anymore which causes it to return an error: Undefined array key "post_hint"
@aschmelyun
@aschmelyun 2 года назад
Ah, thanks for letting me know!
@markcorrigan293
@markcorrigan293 Год назад
@@aschmelyun Please can you help me / us with a solution as to how to get around the problem Undefined array key "post_hint" with collections filter method. I am struggling to find a solution for days now.
@DevenSitapara
@DevenSitapara 3 года назад
Which editor you are using and which plugins ?
@asifm3520
@asifm3520 3 года назад
Phpstorm
@adikprasetyo6327
@adikprasetyo6327 3 года назад
thanks for sharing
@munandisichali605
@munandisichali605 3 года назад
Love this wow
@nror1311
@nror1311 3 года назад
I hope you can make videos related to laravel CI/CD
@hiajayy
@hiajayy 3 года назад
Nice thank you
@elmarzougui
@elmarzougui 3 года назад
amazing
@rajabhishek2936
@rajabhishek2936 3 года назад
Please start laravel project
@nror1311
@nror1311 3 года назад
what is dcr?
@seunoyebode
@seunoyebode 3 года назад
He uses Docker. so it's a docker specific command not Laravel. Can't remember, he's talked about it before.
@aseemlalfakawma5084
@aseemlalfakawma5084 3 года назад
Okay, better tell us all about your keyboard now mister.
@Nusrattales327
@Nusrattales327 2 года назад
too fast
@markcorrigan293
@markcorrigan293 Год назад
Hi here is the work I put in for pluck. Seems to be working. 1. declare $images at top of controller then public function pluck() { $images = $this->posts->filter(function($post, $key) { if( empty($post['data']['post_hint'])) { return false; } return \Illuminate\Support\Str::contains( $post['data']['url'], 'i.redd.it'); }) ->pluck('data.url') ->all(); return view('collections.pluck' , [ 'images' => $images ]); } 2. In pluck.blade.php @foreach($images as $image) blabla blabla@endforeach
Далее
5 tips for supercharged Laravel Eloquent queries
16:29
You don't need a frontend framework
15:45
Просмотров 120 тыс.
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Просмотров 8 млн
New Dyna Skin is OP🥵🔥 | Brawl Stars
00:16
Просмотров 487 тыс.
Build a shopping cart with Laravel Cashier and Vue
55:07
Improving Tailwind by doing these 3 things
15:06
Просмотров 2,9 тыс.
Can we use Laravel as a Next.js alternative?
20:13
Просмотров 16 тыс.
Laravel Migrations: 12 Useful Tips in 12 Minutes
12:06
Modern monoliths: SPA and API in a single codebase
11:55
Laravel: Change Two Symbols to Boost Eloquent Speed
6:34