Laravel Session
flash()
sementara (hilang saat: refresh, ganti halaman)β
session()->flash(key: 'success', value: 'Data berhasil dibuat!');
redirect()->with()
shortcut flash()
β
redirect('/')->with(key: 'success', value: 'Data berhasil dibuat!');
put()
tidak mudah hilangβ
session()->put(key: 'success', value: 'Data berhasil dibuat!');