Answers for "create internal message system laravel"

PHP
4

laravel display error message

@if(count($errors) > 0 )
<div class="alert alert-danger alert-dismissible fade show" role="alert">
    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
        <span aria-hidden="true">&times;</span>
    </button>
    <ul class="p-0 m-0" style="list-style: none;">
        @foreach($errors->all() as $error)
        <li>{{$error}}</li>
        @endforeach
    </ul>
</div>
@endif
Posted by: Guest on August-02-2021
0

with message in laravel

return redirect()->back()->with('success', 'your message,here');
Posted by: Guest on June-22-2021
0

laravel flash message

public function create(Request $request){    return redirect()->route('home')        ->with('error','You have no permission for this page!');}
Posted by: Guest on October-29-2020

Browse Popular Code Answers by Language