Following snippet will help you to get rows from a table which are either NULL or NOT NULL
// rows where post_url is null Post::select(['id','title','post_url'])->whereNull('post_url')->get() // rows where post_url is not null Post::select(['id','title','post_url'])->whereNotNull('post_url')->get()