package.json like bootstrap, jquery, popper.js, vue (removes frontend scaffolding)php artisan preset noneExcept the following packages"devDependencies": {
"axios": "^0.19",
"cross-env": "^7.0",
"laravel-mix": "^5.0.1",
"lodash": "^4.17.19",
"resolve-url-loader": "^3.1.0",
"sass": "^1.15.2",
"sass-loader": "^8.0.0"
}php artisanpublic function destroy($id)
{
$post = POST::find($id);
$post->delete();
return redirect('/posts')->with('success', 'Post Removed');
}ckeditor we should use {!!$post->body!!} instead of {{$post->body}}ckeditor package for textareascreated_at with descending order, to see the newly created posts at the top/posts (with success message) after successfully saving the postpublic function store(Request $request)
{
// Validating
// Saving
// Redirecting
return redirect('/posts')->with('success', 'Post created');
}validate method validates title and name fields$request->validate([
'title' => 'required|unique:posts|max:255',
'name' => 'required',
]);