fixing Laravel controller flash message
This commit is contained in:
parent
3b6285a359
commit
baf5d5c8c7
@ -60,7 +60,7 @@ public function update(Request \$request, ${1:Model} \$${4:model})
|
||||
return redirect()->route('dashboard.${3:models}.index')->with('status', "Successfully updated {\$${4:model}->${5:field}}.");
|
||||
}
|
||||
|
||||
\$request->session()->flash('flash', ['bannerStyle' => 'danger', 'banner' => "Unable to update ${4:model}."]);
|
||||
\$request->session()->flash('flash', ['bannerStyle' => 'danger', 'banner' => "Unable to update {\$${4:model}->${5:field}}."]);
|
||||
return redirect()->back()->with('error', "Unable to update {\$${4:model}->${5:field}}.");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user