Extend Laravel 5 Response Facade
I am getting a namespacing issue when trying to extend the Response facade in Laravel 5. I have created a new folder tree under the app directory called Extensions\Facades . In this folder I have a file called AjaxResponse.php which has the following contents: <?php namespace App\Extensions\Facades; use Illuminate\Support\Facades\Response; class AjaxResponse extends Response{ public static function send($code,$body,$http_code=200){ parent::json( array( 'status'=>(string)$code, 'body' =>$body ) )->setStatusCode($http_code)->send(); exit(); } } I am registering this as a service provider in