Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Status validation laravel

//Controller code

Route::post('/user/profile', function () {
    // ...
 
    return redirect('dashboard')->with('status', 'Profile updated!');
});

//view code

@if (session('status'))
    <div class="alert alert-success">
        {{ session('status') }}
    </div>
@endif
 
PREVIOUS NEXT
Tagged: #Status #validation #laravel
ADD COMMENT
Topic
Name
1+4 =