diff --git a/.gitignore b/.gitignore index a2b4c51..2640243 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ composer.lock build/ .coveralls.yml +/.idea \ No newline at end of file diff --git a/src/NilPortugues/Laravel5/JsonApi/Laravel5JsonApiServiceProvider.php b/src/NilPortugues/Laravel5/JsonApi/Laravel5JsonApiServiceProvider.php index 5b4def8..b8f05f0 100644 --- a/src/NilPortugues/Laravel5/JsonApi/Laravel5JsonApiServiceProvider.php +++ b/src/NilPortugues/Laravel5/JsonApi/Laravel5JsonApiServiceProvider.php @@ -14,6 +14,7 @@ use Illuminate\Support\ServiceProvider; use NilPortugues\Laravel5\JsonApi\Providers\Laravel51Provider; use NilPortugues\Laravel5\JsonApi\Providers\Laravel52Provider; +use NilPortugues\Laravel5\JsonApi\Providers\Laravel53Provider; class Laravel5JsonApiServiceProvider extends ServiceProvider { @@ -56,6 +57,9 @@ public function register() case false !== strpos($version, '5.2.'): $provider = new Laravel52Provider(); break; + case false !== strpos($version, '5.3.'): + $provider = new Laravel53Provider(); + break; default: throw new \RuntimeException( sprintf('Laravel version %s is not supported. Please use the 5.1 for the time being', $version) diff --git a/src/NilPortugues/Laravel5/JsonApi/Providers/Laravel53Provider.php b/src/NilPortugues/Laravel5/JsonApi/Providers/Laravel53Provider.php new file mode 100644 index 0000000..7b83b3a --- /dev/null +++ b/src/NilPortugues/Laravel5/JsonApi/Providers/Laravel53Provider.php @@ -0,0 +1,24 @@ + + * Date: 4/01/16 + * Time: 0:06. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace NilPortugues\Laravel5\JsonApi\Providers; + +use Illuminate\Container\Container; +use Illuminate\Routing\RouteCollection; +use Illuminate\Routing\UrlGenerator; +use ReflectionClass; + +/** + * Class Laravel53Provider. + */ +class Laravel53Provider extends Laravel52Provider +{ + +}