4
4
5
5
use Chriscreates \Blog \Category ;
6
6
use Chriscreates \Blog \Requests \ValidateCategoryRequest ;
7
- use Illuminate \Http \JsonResponse ;
7
+ use Illuminate \Http \Request ;
8
8
9
9
class CategoryController extends Controller
10
10
{
11
11
/**
12
- * Instantiate a new controller instance .
12
+ * Display a listing of the resource .
13
13
*
14
- * @return void
14
+ * @return \Illuminate\Http\Response
15
15
*/
16
- public function __construct ()
16
+ public function index ()
17
+ {
18
+ }
19
+
20
+ /**
21
+ * Show the form for creating a new resource.
22
+ *
23
+ * @return \Illuminate\Http\Response
24
+ */
25
+ public function create ()
17
26
{
18
- $ this ->middleware ('auth ' );
19
27
}
20
28
21
29
/**
22
30
* Store a newly created resource in storage.
23
31
*
24
32
* @param \Chriscreates\Blog\Requests\ValidateCategoryRequest $request
25
- * @return \Illuminate\Http\JsonResponse
33
+ * @return \Illuminate\Http\Response
26
34
*/
27
- public function store (ValidateCategoryRequest $ request ) : JsonResponse
35
+ public function store (ValidateCategoryRequest $ request )
28
36
{
29
37
$ category = Category::create ($ request ->only ([
30
38
'name ' ,
@@ -34,4 +42,45 @@ public function store(ValidateCategoryRequest $request) : JsonResponse
34
42
35
43
return response ()->json ($ category );
36
44
}
45
+
46
+ /**
47
+ * Display the specified resource.
48
+ *
49
+ * @param \Chriscreates\Blog\Category $category
50
+ * @return \Illuminate\Http\Response
51
+ */
52
+ public function show (Category $ category )
53
+ {
54
+ }
55
+
56
+ /**
57
+ * Show the form for editing the specified resource.
58
+ *
59
+ * @param \Chriscreates\Blog\Category $category
60
+ * @return \Illuminate\Http\Response
61
+ */
62
+ public function edit (Category $ category )
63
+ {
64
+ }
65
+
66
+ /**
67
+ * Update the specified resource in storage.
68
+ *
69
+ * @param \Illuminate\Http\Request $request
70
+ * @param \Chriscreates\Blog\Requests\ValidateCategoryRequest $request
71
+ * @return \Illuminate\Http\Response
72
+ */
73
+ public function update (ValidateCategoryRequest $ request , Category $ category )
74
+ {
75
+ }
76
+
77
+ /**
78
+ * Remove the specified resource from storage.
79
+ *
80
+ * @param \Chriscreates\Blog\Category $category
81
+ * @return \Illuminate\Http\Response
82
+ */
83
+ public function destroy (Category $ category )
84
+ {
85
+ }
37
86
}
0 commit comments