I have a member profile page where I also have a field to update username. The username field is unique in the database. My problem is that when I update my profile and don't chanmge the username, it won't save ...
I'm getting this error with Laravel when I try to access a page on my blog.
Call to undefined method IlluminateDatabaseQueryBuilder::firstOrFail()
This is the query I changed:
$category = DB::table('blog_post_categories')->where('slug', $slug)->firstOrFail();
What am I doing wrong?