$dbPost = Post::select('id, name');
if(isset($post['author_id']))
{
$dbPost = $dbPost->where('author_id', $post['author_id']);
}
$dbPost->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community