Свойство | Type | Description | |
---|---|---|---|
$comment | CommentRepository object. |
Méthode | Description | |
---|---|---|
__construct ( |
CommentController constructor. | |
destroy ( integer $id ) : Illuminate\Http\Response | Remove the specified resource from storage. | |
index ( ) : Illuminate\Http\Response | Display a listing of the resource. | |
seen ( Illuminate\Http\Request $request, $id ) : Illuminate\Http\JsonResponse | Toggle comment seen status. | |
store ( Illuminate\Http\Request $request ) : Illuminate\Http\Response | Store a newly created comment in storage. | |
valid ( Illuminate\Http\Request $request, $id ) : Illuminate\Http\JsonResponse | Toggle comment valid status. |
public __construct ( |
||
$comment |
public index ( ) : Illuminate\Http\Response | ||
Résultat | Illuminate\Http\Response |
public seen ( Illuminate\Http\Request $request, $id ) : Illuminate\Http\JsonResponse | ||
$request | Illuminate\Http\Request | |
$id | ||
Résultat | Illuminate\Http\JsonResponse |
public store ( Illuminate\Http\Request $request ) : Illuminate\Http\Response | ||
$request | Illuminate\Http\Request | |
Résultat | Illuminate\Http\Response |
public valid ( Illuminate\Http\Request $request, $id ) : Illuminate\Http\JsonResponse | ||
$request | Illuminate\Http\Request | |
$id | ||
Résultat | Illuminate\Http\JsonResponse |