I have done everything the right way but my submit button doesnt do anything and I dont know why....
Here is my view
<form action="" method="POST" enctype="multipart/form-data">
@csrf
add users via excell<input name="file" class="form-control" style="padding-bottom:3em; margin-bottom:3em" type="file">
<div style="display:inline;">
<input type="submit" class="btn btn-primary btn-lg" value="ارفع" >
</div>
</form>
Here is my controller
function importUser(Request $request)
{
#code...
}
and my route
Route::POST('ImportUsersFile', 'ExcelUserController@importUser')->name('importUser')->middleware('Admin');
Apparently, the flow dont get in the function import user. I tried to dd into it but nothing happend!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire