Skip to content

Commit

Permalink
Merge pull request #9 from ARCANEDEV/update-laravel_6.0_support
Browse files Browse the repository at this point in the history
Adding Laravel 6.0 support
  • Loading branch information
arcanedev-maroc committed Sep 6, 2019
2 parents dbda573 + 1e6ddf1 commit 2f25acf
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ checks:
tools:
external_code_coverage:
timeout: 600
runs: 4
runs: 2
php_code_sniffer:
enabled: true
config:
Expand Down
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
language: php

sudo: false

php:
- 7.1.3
- 7.1
- 7.2
- 7.3
- nightly
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Route Viewer [![Packagist License][badge_license]](LICENSE.md) [![For Laravel 5][badge_laravel]][link-github-repo]
# Route Viewer [![Packagist License][badge_license]](LICENSE.md) [![For Laravel][badge_laravel]][link-github-repo]

[![Travis Status][badge_build]][link-travis]
[![Coverage Status][badge_coverage]][link-scrutinizer]
Expand All @@ -25,7 +25,7 @@ Route Viewer is a package that allows you to view all Laravel routes eloquently.
* Easy setup & configuration.
* Well documented & IDE Friendly.
* Well tested with maximum code quality.
* Laravel `5.1` to `5.8` are supported.
* Laravel `5.1` to `6.0` are supported.
* Made with :heart: & :coffee:.

## Contribution
Expand All @@ -41,7 +41,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail.
- [ARCANEDEV][link-author]
- [All Contributors][link-contributors]

[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%205.7-orange.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%206.0-orange.svg?style=flat-square
[badge_license]: https://img.shields.io/packagist/l/arcanedev/route-viewer.svg?style=flat-square
[badge_build]: https://img.shields.io/travis/ARCANEDEV/RouteViewer.svg?style=flat-square
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/RouteViewer.svg?style=flat-square
Expand Down
2 changes: 1 addition & 1 deletion _docs/0.Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelMarkdo

### Features

* Laravel `5.1` to `5.8` are Supported.
* Laravel `5.1` to `6.0` are Supported.
* Easy setup & configuration.
* Well tested (100% code coverage with maximum code quality).
* Made with :heart: & :coffee:.
Expand Down
3 changes: 3 additions & 0 deletions _docs/1.Installation-and-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
| ![RouteViewer v1.2.x][route_viewer_1_2_x] | ![Laravel v5.6][laravel_5_6] |
| ![RouteViewer v1.3.x][route_viewer_1_3_x] | ![Laravel v5.7][laravel_5_7] |
| ![RouteViewer v1.4.x][route_viewer_1_4_x] | ![Laravel v5.8][laravel_5_8] |
| ![RouteViewer v2.0.x][route_viewer_2_0_x] | ![Laravel v6.0][laravel_6_0] |

[laravel_5_0]: https://img.shields.io/badge/v5.0-supported-brightgreen.svg?style=flat-square "Laravel v5.0"
[laravel_5_1]: https://img.shields.io/badge/v5.1-supported-brightgreen.svg?style=flat-square "Laravel v5.1"
Expand All @@ -26,13 +27,15 @@
[laravel_5_6]: https://img.shields.io/badge/v5.6-supported-brightgreen.svg?style=flat-square "Laravel v5.6"
[laravel_5_7]: https://img.shields.io/badge/v5.7-supported-brightgreen.svg?style=flat-square "Laravel v5.7"
[laravel_5_8]: https://img.shields.io/badge/v5.8-supported-brightgreen.svg?style=flat-square "Laravel v5.8"
[laravel_6_0]: https://img.shields.io/badge/v6.0-supported-brightgreen.svg?style=flat-square "Laravel v6.0"

[route_viewer_0_x]: https://img.shields.io/badge/version-0.*-blue.svg?style=flat-square "RouteViewer v0.*"
[route_viewer_1_0_x]: https://img.shields.io/badge/version-1.0.*-blue.svg?style=flat-square "RouteViewer v1.0.*"
[route_viewer_1_1_x]: https://img.shields.io/badge/version-1.1.*-blue.svg?style=flat-square "RouteViewer v1.1.*"
[route_viewer_1_2_x]: https://img.shields.io/badge/version-1.2.*-blue.svg?style=flat-square "RouteViewer v1.2.*"
[route_viewer_1_3_x]: https://img.shields.io/badge/version-1.3.*-blue.svg?style=flat-square "RouteViewer v1.3.*"
[route_viewer_1_4_x]: https://img.shields.io/badge/version-1.4.*-blue.svg?style=flat-square "RouteViewer v1.4.*"
[route_viewer_2_0_x]: https://img.shields.io/badge/version-2.0.*-blue.svg?style=flat-square "RouteViewer v2.0.*"

## Composer

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^7.1.3",
"php": ">=7.2.0",
"ext-json": "*",
"arcanedev/support": "~4.5.0"
"arcanedev/support": "~5.0.0"
},
"require-dev": {
"orchestra/testbench": "~3.8.0",
"phpunit/phpcov": "~5.0|~6.0",
"phpunit/phpunit": "~7.0|~8.0"
"orchestra/testbench": "~4.0.0",
"phpunit/phpcov": "~6.0",
"phpunit/phpunit": "~8.0"
},
"autoload": {
"psr-4": {
Expand Down
17 changes: 8 additions & 9 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Arcanedev\RouteViewer\Tests;

use Arcanedev\RouteViewer\Tests\Stubs\Controllers\ContactController;
use Orchestra\Testbench\TestCase as BaseTestCase;

/**
Expand Down Expand Up @@ -46,15 +47,13 @@ protected function getEnvironmentSetUp($app)

private function registerRoutes(\Illuminate\Contracts\Routing\Registrar $router)
{
$router->middleware('web')
->namespace('Arcanedev\\RouteViewer\\Tests\\Stubs\\Controllers')
->group(function () use ($router) {
$router->get('/', function () {
return 'Homepage';
})->name('public::home');
$router->middleware('web')->group(function () use ($router) {
$router->get('/', function () {
return 'Homepage';
})->name('public::home');

$router->get('contact', 'ContactController@getForm')
->name('public::contact.get');
});
$router->get('contact', [ContactController::class, '@getForm'])
->name('public::contact.get');
});
}
}

0 comments on commit 2f25acf

Please sign in to comment.