1 | <?php |
||
8 | class TagController extends Controller |
||
9 | { |
||
10 | /** |
||
11 | * Instantiate a new controller instance. |
||
12 | * |
||
13 | * @return void |
||
|
|||
14 | */ |
||
15 | public function __construct() |
||
19 | |||
20 | /** |
||
21 | * Display a listing of the resource. |
||
22 | * |
||
23 | * @return \Illuminate\Http\Response |
||
24 | */ |
||
25 | public function index() : JsonResponse |
||
28 | |||
29 | /** |
||
30 | * Store a newly created resource in storage. |
||
31 | * |
||
32 | * @param \Chriscreates\Blog\Requests\ValidateTagRequest $request |
||
33 | * @return \Illuminate\Http\Response |
||
34 | */ |
||
35 | public function store(ValidateTagRequest $request) : JsonResponse |
||
38 | |||
39 | /** |
||
40 | * Show the form for editing the specified resource. |
||
41 | * |
||
42 | * @param \Chriscreates\Blog\Tag $tag |
||
43 | * @return \Illuminate\Http\Response |
||
44 | */ |
||
45 | public function edit(Tag $tag) : JsonResponse |
||
48 | |||
49 | /** |
||
50 | * Update the specified resource in storage. |
||
51 | * |
||
52 | * @param \Chriscreates\Blog\Requests\ValidateTagRequest $request |
||
53 | * @param \Chriscreates\Blog\Tag $tag |
||
54 | * @return \Illuminate\Http\Response |
||
55 | */ |
||
56 | public function update(ValidateTagRequest $request, Tag $tag) : JsonResponse |
||
59 | |||
60 | /** |
||
61 | * Remove the specified resource from storage. |
||
62 | * |
||
63 | * @param \Chriscreates\Blog\Tag $tag |
||
64 | * @return \Illuminate\Http\Response |
||
65 | */ |
||
66 | public function destroy(Tag $tag) : JsonResponse |
||
69 | } |
||
70 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.