Estoy avanzando en el adminpanel

This commit is contained in:
Daniel Cortés
2019-06-23 18:18:35 -04:00
parent be42d6f599
commit 8753ad62e7
10 changed files with 352 additions and 40 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Controllers;
use App\Post;
use Illuminate\Http\Request;
class AdminController extends Controller
@@ -10,4 +11,9 @@ class AdminController extends Controller
{
return view('admin.index');
}
public function posts()
{
return view('admin.posts.index', ['posts' => Post::all()]);
}
}