return with session flash laravel code example Example: session flash session()->flash('key', 'value');