in my blade code
<form action="" method="POST" id="addStar">
<input class="rating rating-loading" value= id="input_rating" name="rating" data size="xs">
</form>
in my controller code
public function watchPost(Request $request, $id){
$dataRating = Rating::create([
'lokit_video_id' => $id,
'rating'=> $request->rating
]);
dd($dataRating);
}
how to insert rating without input text and without button?
[
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire