mardi 27 mars 2018

Pass a variable on multiple views

I need to pass a variable on multiple views in order to perform an UPDATE on multiple views ( editScadenza and elaborazioneScadenza). Or do you know another simpler solution?

ScadenzaController.php

public function edit($id)
{
    $data['scadenzaRecuperata'] = \App\Scadenza::find($id);

    return view('scadenze.editScadenza', $data);
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire