Тёмный
No video :(

Profile Page | Laravel 10 Tutorial #26 

Yelo Code
Подписаться 15 тыс.
Просмотров 6 тыс.
50% 1

Laravel 10 route grouping Tutorial
On this episode we will build user profile pages and prepare for next episode where we will learn how to do file uploads and upload profile images for our users.
Github Link:
github.com/Cod...
Playlist of Laravel 10 Tutorial Course :
• Laravel 10 Beginners C...
What is Laravel :
Laravel is a free and open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model-view-controller architectural pattern and based on Symfony.
en.wikipedia.o...
If you're looking to learn how to authenticate a user using Laravel 10, then this is the video for you! In this tutorial, In this tutorial, we'll create a simple registration form that users will be able to submit.
If you have any questions or problems please leave a comment.
Laravel Blade
Laravel crash course
Laravel Database and crud tutorial
Laravel Login and Authentication
Laravel registration

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

 

31 июл 2023

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@Yash__75
@Yash__75 8 месяцев назад
Doing Excellent Broo. Keep going 😊
@yelocode
@yelocode 8 месяцев назад
Thank you
@user-tk2ys1zy3x
@user-tk2ys1zy3x 10 месяцев назад
After several weeks of search, then you cam with this amazing set of tutorials. great work Yelo Code. Your'e the man!🙃😉😊😉🙃🙂😉😃😃😃😃😃😃😃😀
@yelocode
@yelocode 10 месяцев назад
Glad to hear the videos are helpful. Thanks for watching.
@user-sn4nb3ei8p
@user-sn4nb3ei8p Месяц назад
so far so good course ggwp
@MrOryly
@MrOryly Год назад
You made me love php again 😀
@yelocode
@yelocode Год назад
Happy to hear that :)
@learning5349
@learning5349 3 месяца назад
When you click the edit button in the profile box, you also edit all Ideas.
@LoneTaha
@LoneTaha 5 месяцев назад
perfect and useful 🤍🤍
@HamadAbdulla_7
@HamadAbdulla_7 Год назад
Thank you BOSS
@yelocode
@yelocode Год назад
🙏
@krimoHipo
@krimoHipo 3 месяца назад
For some reason when I tried doing the 6:49 I recieved an error saying |"Call to undefined method Illuminate\Foundation\Auth\User::ideas()"| and highlighted the |"{{$user->ideas()->count()}}"|. Edit: Its all good now. For some reason i wasn't using model for my UserController. I was suing this the whole time: use Illuminate\Foundation\Auth\User; when I was meant to use 'use App\Models\User;'
@krimoHipo
@krimoHipo 3 месяца назад
{{ auth()->user()->ideas()->count() }} {{ auth()->user()->comments()->count() }} ideas and comments now appear but it catches the same numbers when changing to the other users. I have user 1 and user 2 and tried to swap to another account (by users/2 while logged in to acc1) then it shares the same count as the logged in account. Edit to my comment: " I stopped using this because it just sends the same numbers of ideas and comments to another user(though it wasn't permanent), I followed the tutorial which works.
@PedroCoelho98
@PedroCoelho98 Год назад
Great progress. Quick question, why does compact function cannot take the variables with $ sign but only the strings with the variable name? It's a bit confusing for beginners imo
@yelocode
@yelocode Год назад
I think it's might be because there is no way to get the variable name itself when passing $sign, but it's possible to get the variable value from the name ,I could be wrong. I myself don't like using compact in my own projects and usually just pass an array instead. Will stop using it in future courses to avoid confusion. However, it is quite commonly used in opensource projects or laravel code you see online so I thought it's important to atleast know about it.
@PedroCoelho98
@PedroCoelho98 Год назад
@@yelocode I think you can use it in the future as indeed it's used by a lot of people. My question was just about curiosity alone. 😊
@femijeffery
@femijeffery 10 месяцев назад
Great job sir. Please, is there a way to successfully implement the profile page & route such that we have 127.0.0.1/johndoe instead of having 127.0.0.1/user/1 as used in this video ?
@yelocode
@yelocode 10 месяцев назад
You can do that in the route web.php file using something like below by adding a : Route::get('/users/{user:name} If like in the video you are using Route::resource, something like below will instruct laravel to use the username when doing route model binding Route::resource('users', UserController::class)->only('show')->parameters([ 'users' => 'user:name', ]); In the code example I'm using name, but you should have a separate username filed for this purpose and make sure it's unique.
@devisopen
@devisopen 7 месяцев назад
{{ auth()->user()->ideas()->count() }} ---- i get result in view as no of idea {{ auth()->user()->comments()->count() }} --- i get result in view as no of comments {{$user->name}} ---- didnt get result in view Did i miss something important? i have the relationship in model.
@devisopen
@devisopen 7 месяцев назад
Figured it out, its because of route binding
@krimoHipo
@krimoHipo 3 месяца назад
Interestingly enough, adding "auth()->" instead of "$user" actually worked for me.
@aman4069
@aman4069 9 месяцев назад
i just notice that you forgot to implement the authorization, so if i login as user 1 and try to access user/2/edit on route. the edit field still show. have you fix this?
@yelocode
@yelocode 9 месяцев назад
Thanks for watching. We fix this issue on ep38 after covering policies ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dyaYfnC5Lus.html
@Vichion
@Vichion 8 месяцев назад
you forgot if (auth()->id() !== $user->id) { abort(404); } in the edit part of the controller
@yelocode
@yelocode 8 месяцев назад
Great catch, this is something we fix in upcoming episodes covering authorization
@Vichion
@Vichion 8 месяцев назад
​@@yelocode I love that you're still active with this series, even though you have new ones coming out.
Далее
Emails & Mail Trap testing | Laravel 10 Tutorial #29
16:17
Qora Gelik
00:26
Просмотров 420 тыс.
Муж на час 😂
00:37
Просмотров 931 тыс.
Like Button | Laravel 10 Tutorial #33
27:37
Просмотров 6 тыс.
Form Request | Laravel 10 Tutorial #39
16:56
Просмотров 3,5 тыс.
AMD slayed the dragon - AMD Ryzen 9 9900X & 9950X
8:39
AMD Core-Parking problems FIXED once and for all!
24:17
Qora Gelik
00:26
Просмотров 420 тыс.