Try
return Redirect::back()->withErrors(['msg' => 'The Message']);
and inside your view call this
@if($errors->any())
<h4>{{$errors->first()}}</h4>
@endif
More Related Contents:
- Laravel – Route::resource vs Route::controller
- Rollback one specific migration in Laravel
- What is the difference between queue:work –daemon and queue:listen
- Migration: Cannot add foreign key constraint
- Laravel Eloquent groupBy() AND also return count of each group
- Laravel 4 All Routes Except Home Result in 404 Error
- How can I resolve “Your requirements could not be resolved to an installable set of packages” error?
- global variable for all controller and views
- How can I remove a package from Laravel using PHP Composer?
- How do I catch exceptions / missing pages in Laravel 5?
- multiple mail configurations
- Laravel. Use scope() in models with relation
- Laravel 4: how to run a raw SQL?
- Undefined variable: errors in Laravel
- Laravel Session always changes every refresh / request in Laravel 5.4
- Class ‘Illuminate\Html\HtmlServiceProvider’ not found Laravel 5
- How to compare two Carbon Timestamps?
- Laravel 5 – Manual pagination
- What is difference between use env(‘APP_ENV’), config(‘app.env’) or App::environment() to get app environment?
- Validation of array form fields in laravel 4 error
- “Please provide a valid cache path” error in laravel
- Best Practices for Laravel 4 Helpers and Basic Functions?
- How to access model hasMany Relation with where condition?
- Laravel 4: Failed to open stream: Permission denied
- Laravel 5 – artisan seed [ReflectionException] Class SongsTableSeeder does not exist
- Set port for php artisan.php serve
- Laravel save / update many to many relationship
- There is no existing directory at /storage/logs and its not buildable: Permission denied
- How to pass multiple parameters to middleware with OR condition in Laravel 5.2
- How to insert big data on the laravel?