30 Days to Learn Laravel, Ep 06 - View Data and Route Wildcards

preview_player
Показать описание
We can pass an array of data as the second argument of the view() function. Each key in this array will then be extracted into a variable within your view. Let's build a basic two-page Job listings section to illustrate this.

Рекомендации по теме
Комментарии
Автор

Thank you for making this serie.

Your tutorials are really clear and interesting.

TheZamirOrion
Автор

if someone is getting null at 16:35 it's probably because you're using === instead of ==

mohamedaminedammak
Автор

Thank you so much man! keep up the good work!

JacquesAsinyo-ei
Автор

what extension used for intellisense and for formatting?

mihirlakhamje
Автор

how add active props on dynamic routes?
if user clicks jobs/1 the jobs route should remains active, right?
the routes are in hierarchical or they are individual?

mihirlakhamje
Автор

I'm coming from Python and Django, but I want to jump into the world of php and Laravel. But now it's a bit confusing with laravel about the many options someone can take to develop a website. So now my question is what option has this Series taken? e.g Livewire, inertia etc. I did the first video in the series but couldn't find that.

DevCyberOps
Автор

the class seems unnecessary/overkill when you can just use an array search, right?
$job = $jobs[array_search($id, array_column($jobs, 'id'))];
this will work since php5

the class function seems to use multiple nested foreach... seems bloated?

shadeblack
Автор

why I would change the <a> to a <button> some unnecessary examples while you can do something more practical

Community-Comment
Автор

omg I had taken a long time to know that is " == " not " = " 16:00 $job = Arr::first($jobs, fn($job) => $job['id'] == $id);

khessamahmed
Автор

Tooo much over eddited audio.
Please keep distance from the mic.
The audio is so much annoying and fake(boosted lower frequencies), why don't you sound like in real life?

khanra