Let's build a "Follow Me" form for the profile page. This should toggle the follow status for the given user. To implement this, we'll discuss a few different approaches that you might consider.
View the source code for this episode on GitHub.
app/Models
directory. This means an App\Post
namespace should now be App\Models\Post
.