I am having issues it says Request is undefined same goes for DB.
public function edit(Request $request,$id) {
$name = $request->input('stud_name');
DB::update('update student set name = ? where id = ?',[$name,$id]);
echo "Record updated successfully.<br/>";
echo '<a href = "/edit-records">Click Here</a> to go back.';
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/34nTnQb
via IFTTT
Aucun commentaire:
Enregistrer un commentaire