PHP Class App\Http\Controllers\CommentController

Inheritance: extends App\Http\Controllers\CodeController
Afficher le fichier Open project: forehalo/materialize-blog Class Usage Examples

Protected Properties

Свойство Type Description
$comment App\Repositories\CommentRepository CommentRepository object.

Méthodes publiques

Méthode Description
__construct ( CommentRepository $comment ) 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.

Method Details

__construct() public méthode

CommentController constructor.
public __construct ( CommentRepository $comment )
$comment App\Repositories\CommentRepository

destroy() public méthode

Remove the specified resource from storage.
public destroy ( integer $id ) : Illuminate\Http\Response
$id integer
Résultat Illuminate\Http\Response

index() public méthode

Display a listing of the resource.
public index ( ) : Illuminate\Http\Response
Résultat Illuminate\Http\Response

seen() public méthode

Toggle comment seen status.
public seen ( Illuminate\Http\Request $request, $id ) : Illuminate\Http\JsonResponse
$request Illuminate\Http\Request
$id
Résultat Illuminate\Http\JsonResponse

store() public méthode

Store a newly created comment in storage.
public store ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request
Résultat Illuminate\Http\Response

valid() public méthode

Toggle comment valid status.
public valid ( Illuminate\Http\Request $request, $id ) : Illuminate\Http\JsonResponse
$request Illuminate\Http\Request
$id
Résultat Illuminate\Http\JsonResponse

Property Details

$comment protected_oe property

CommentRepository object.
protected CommentRepository,App\Repositories $comment
Résultat App\Repositories\CommentRepository