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);
}



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Ga59n4
via IFTTT

Aucun commentaire:

Enregistrer un commentaire