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?
[
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Xl2wFD
via IFTTT
Aucun commentaire:
Enregistrer un commentaire