The most easy way is to have a boolean flag on the post that is false by default. Then you need a page for the admin with the post to approve.
$posts = Post::where('approved', false)->get();
And on the page where you want to display the post you need to filter on approved to only show the approved ones. $posts = Post::where('approved', true)->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community