A voir également:
- Laravel - Chrome
- Mise a jour chrome - Accueil - Applications & Logiciels
- Chrome cast sur tv - Guide
- Restaurer onglets chrome - Guide
- Changer dns chrome - Guide
- Chrome exporter favoris - Guide
3 réponses
jordane45
Messages postés
38367
Date d'inscription
mercredi 22 octobre 2003
Statut
Modérateur
Dernière intervention
2 janvier 2025
4 721
20 sept. 2021 à 12:15
20 sept. 2021 à 12:15
Bonjour
Si ca n'arrive que sur certains navigateur (chrome visiblement) ce n'est sûrement pas lié au php mais a du code javascript...
Quoi qu'il en soit, sans voir le code concerné... Impossibilité de te venir en aide...
Si ca n'arrive que sur certains navigateur (chrome visiblement) ce n'est sûrement pas lié au php mais a du code javascript...
Quoi qu'il en soit, sans voir le code concerné... Impossibilité de te venir en aide...
Merci ,
voici le code
public function StoreRecrutement(Request $request)
{
//dd($request->all());
$candidat = new Candidat();
$candidat->nom = $request->nom;
$candidat->prenom = $request->prenom;
$candidat->choix_commune = $request->choix_commune;
$candidat->civilite = $request->civilite;
$candidat->zone_id = $request->zone_id;
$candidat->poste_souhaité = $request->poste_souhaité;
$candidat->permis_conduire = $request->permis_conduire;
$candidat->moyen_information = $request->moyen_information;
$candidat->note_personnelle = $request->note_personnelle;
$candidat->commune = $request->commune;
$candidat->quartier = $request->quartier;
$candidat->phone = $request->phone;
$candidat->email = $request->email;
$candidat->cv = $request->cv;
$candidat->piece = $request->piece;
$candidat->autres_document = $request->autres_document;
$candidat->photo = $request->photo;
if ($request->hasfile('photo')) {
$file = $request->file('photo');
$extension = $file->getClientOriginalExtension();
$filename = time() . '.' . $extension;
$file->move('assets/photo/candidats/', $filename);
$candidat->photo = $filename;
}
if ($request->hasfile('piece')) {
$file = $request->file('piece');
$extension = $file->getClientOriginalExtension();
$filename = time() . '.' . $extension;
$file->move('assets/photo/candidats/piece', $filename);
$candidat->piece = $filename;
}
if ($request->hasfile('cv')) {
$file = $request->file('cv');
$extension = $file->getClientOriginalExtension();
$filename = time() . '.' . $extension;
$file->move('assets/photo/candidats/CV/', $filename);
$candidat->cv = $filename;
}
if ($request->hasfile('autres_document')) {
$file = $request->file('autres_document');
$extension = $file->getClientOriginalExtension();
$filename = time() . '.' . $extension;
$file->move('assets/photo/candidats/autres_document/', $filename);
$candidat->autres_document = $filename;
}
$candidat->save();
$request->session()->flash('recrutement_success', true);
$request->session()->flash('recrutement_success_data', ["nom" => $request->nom, "prenom" => $request->prenom, "civilite" => $request->civilite]);
return redirect()->route("layouts.postrecrutement-success");
}
voici le code
public function StoreRecrutement(Request $request)
{
//dd($request->all());
$candidat = new Candidat();
$candidat->nom = $request->nom;
$candidat->prenom = $request->prenom;
$candidat->choix_commune = $request->choix_commune;
$candidat->civilite = $request->civilite;
$candidat->zone_id = $request->zone_id;
$candidat->poste_souhaité = $request->poste_souhaité;
$candidat->permis_conduire = $request->permis_conduire;
$candidat->moyen_information = $request->moyen_information;
$candidat->note_personnelle = $request->note_personnelle;
$candidat->commune = $request->commune;
$candidat->quartier = $request->quartier;
$candidat->phone = $request->phone;
$candidat->email = $request->email;
$candidat->cv = $request->cv;
$candidat->piece = $request->piece;
$candidat->autres_document = $request->autres_document;
$candidat->photo = $request->photo;
if ($request->hasfile('photo')) {
$file = $request->file('photo');
$extension = $file->getClientOriginalExtension();
$filename = time() . '.' . $extension;
$file->move('assets/photo/candidats/', $filename);
$candidat->photo = $filename;
}
if ($request->hasfile('piece')) {
$file = $request->file('piece');
$extension = $file->getClientOriginalExtension();
$filename = time() . '.' . $extension;
$file->move('assets/photo/candidats/piece', $filename);
$candidat->piece = $filename;
}
if ($request->hasfile('cv')) {
$file = $request->file('cv');
$extension = $file->getClientOriginalExtension();
$filename = time() . '.' . $extension;
$file->move('assets/photo/candidats/CV/', $filename);
$candidat->cv = $filename;
}
if ($request->hasfile('autres_document')) {
$file = $request->file('autres_document');
$extension = $file->getClientOriginalExtension();
$filename = time() . '.' . $extension;
$file->move('assets/photo/candidats/autres_document/', $filename);
$candidat->autres_document = $filename;
}
$candidat->save();
$request->session()->flash('recrutement_success', true);
$request->session()->flash('recrutement_success_data', ["nom" => $request->nom, "prenom" => $request->prenom, "civilite" => $request->civilite]);
return redirect()->route("layouts.postrecrutement-success");
}
bendrop
Messages postés
12607
Date d'inscription
jeudi 30 juin 2005
Statut
Contributeur
Dernière intervention
1 janvier 2025
8 305
20 sept. 2021 à 13:12
20 sept. 2021 à 13:12
Bonjour,
Merci d’utiliser les balises de codes https://codes-sources.commentcamarche.net/faq/11288-les-balises-de-code afin d’être lisible.
Cdlt.
Merci d’utiliser les balises de codes https://codes-sources.commentcamarche.net/faq/11288-les-balises-de-code afin d’être lisible.
Cdlt.
public function StoreRecrutement(Request $request) { //dd($request->all()); $candidat = new Candidat(); $candidat->nom = $request->nom; $candidat->prenom = $request->prenom; $candidat->choix_commune = $request->choix_commune; $candidat->civilite = $request->civilite; $candidat->zone_id = $request->zone_id; $candidat->poste_souhaité = $request->poste_souhaité; $candidat->permis_conduire = $request->permis_conduire; $candidat->moyen_information = $request->moyen_information; $candidat->note_personnelle = $request->note_personnelle; $candidat->commune = $request->commune; $candidat->quartier = $request->quartier; $candidat->phone = $request->phone; $candidat->email = $request->email; $candidat->cv = $request->cv; $candidat->piece = $request->piece; $candidat->autres_document = $request->autres_document; $candidat->photo = $request->photo; if ($request->hasfile('photo')) { $file = $request->file('photo'); $extension = $file->getClientOriginalExtension(); $filename = time() . '.' . $extension; $file->move('assets/photo/candidats/', $filename); $candidat->photo = $filename; } if ($request->hasfile('piece')) { $file = $request->file('piece'); $extension = $file->getClientOriginalExtension(); $filename = time() . '.' . $extension; $file->move('assets/photo/candidats/piece', $filename); $candidat->piece = $filename; } if ($request->hasfile('cv')) { $file = $request->file('cv'); $extension = $file->getClientOriginalExtension(); $filename = time() . '.' . $extension; $file->move('assets/photo/candidats/CV/', $filename); $candidat->cv = $filename; } if ($request->hasfile('autres_document')) { $file = $request->file('autres_document'); $extension = $file->getClientOriginalExtension(); $filename = time() . '.' . $extension; $file->move('assets/photo/candidats/autres_document/', $filename); $candidat->autres_document = $filename; } $candidat->save(); $request->session()->flash('recrutement_success', true); $request->session()->flash('recrutement_success_data', ["nom" => $request->nom, "prenom" => $request->prenom, "civilite" => $request->civilite]); return redirect()->route("layouts.postrecrutement-success"); }