Creo que termine con el admin del post

This commit is contained in:
Daniel Cortés
2019-06-23 20:12:37 -04:00
parent 8753ad62e7
commit 08f6e9a0ab
8 changed files with 82 additions and 12 deletions

View File

@@ -14,6 +14,6 @@ class AdminController extends Controller
public function posts()
{
return view('admin.posts.index', ['posts' => Post::all()]);
return view('admin.posts.index', ['posts' => Post::orderBy('created_at', 'desc')->get()]);
}
}