laravel-ardent / ardent

Self-validating, secure and smart models for Laravel's Eloquent ORM
BSD 3-Clause "New" or "Revised" License
1.39k stars 211 forks source link

undefined method Illuminate\Support\MessageBag::put() #287

Closed Dunos closed 8 years ago

Dunos commented 8 years ago

When trying to do something like the following in my controller

return redirect()->route('home')->withErrors(['code' => true]);

I get the error

FatalErrorException in RedirectResponse.php line 120:
Call to undefined method Illuminate\Support\MessageBag::put()

In the function description it says the var $provider can be an array too so I guess this is a bug... or am I missing something?

@param \Illuminate\Contracts\Support\MessageProvider|array|string $provider

Dunos commented 8 years ago

I just did a "composer update" and now it seems to work...