File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 6
6
Route::resource ('categories ' , 'CategoryController ' );
7
7
});
8
8
9
- Route::get ('posts/{post} ' , 'PostController@show ' )->name ('posts.show ' );
9
+ Route::group (['middleware ' => 'web ' ], function () {
10
+ Route::get ('posts/{post} ' , 'PostController@show ' )->name ('posts.show ' );
11
+ });
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function index()
35
35
->orderBy ('created_at ' , 'desc ' )
36
36
->paginate (10 );
37
37
38
- return view ('admin.posts.posts ' , compact ('posts ' ));
38
+ return view ('blog. admin.posts.posts ' , compact ('posts ' ));
39
39
}
40
40
41
41
/**
@@ -47,7 +47,7 @@ public function create()
47
47
{
48
48
$ post = new Post ;
49
49
50
- return view ('admin.posts.post ' , [
50
+ return view ('blog. admin.posts.post ' , [
51
51
'post ' => $ post ,
52
52
'categories ' => Category::all (),
53
53
'tags ' => Tag::all (),
@@ -107,7 +107,7 @@ public function edit(Post $post)
107
107
{
108
108
$ post ->load ('category ' , 'tags ' );
109
109
110
- return view ('admin.posts.post ' , [
110
+ return view ('blog. admin.posts.post ' , [
111
111
'post ' => $ post ,
112
112
'categories ' => Category::all (),
113
113
'tags ' => Tag::all (),
You can’t perform that action at this time.
0 commit comments