Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Fix for json responses
Browse files Browse the repository at this point in the history
  • Loading branch information
FaZeRs committed May 11, 2018
1 parent 72c9c3f commit 9047b43
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public function boot()
*/
public function register()
{
//
$this->app->singleton('Illuminate\Contracts\Routing\ResponseFactory', function ($app) {
return new \Illuminate\Routing\ResponseFactory(
$app['Illuminate\Contracts\View\Factory'],
$app['Illuminate\Routing\Redirector']
);
});
}
}

0 comments on commit 9047b43

Please sign in to comment.