Create a forum with Laravel 8 | Setup Thread model and HasAuthor Trait | Part 18

preview_player
Показать описание
In this lesson, we will set up methods inside our Thread Model as well as create a trait for authors

Starter Template:

Eager Loading relationships

Timestamps:
0:00 Introduction and setup
0:31 Create HasAuthor trait
7:20 Setup Thread Model
13:52 Add remove tags method in HasTags trait
Рекомендации по теме
Комментарии
Автор

I'm following along and noticed that the "matches" method in the isAuthoredBy function. Any idea what I might be missing?

EDIT/UPDATE: Apparently since Laravel 5.3 the $auth()->user() has an "is" function that can be used to compare User objects. I haven't tried it in runtime, but the code syntax is recognized. :-)

jimmacdiarmid
Автор

following from Africa kenya. Can i make each of this pages responsive to all screens using front css frameworks? Or Livewire classes will prevent me from doing that?

happyblackie