Skip to content

Commit

Permalink
Merge pull request #6 from ARCANEDEV/update-laravel_5.6_support
Browse files Browse the repository at this point in the history
Adding Laravel 5.6 Support
  • Loading branch information
arcanedev-maroc committed May 26, 2019
2 parents 7130764 + ea4a433 commit e79dfa3
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 74 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: 2
runs: 4
php_code_sniffer:
enabled: true
config:
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: php
sudo: false

php:
- 7.0
- 7.1.3
- 7.1
- 7.2
- 7.3
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | 5.2 | 5.3 | 5.4 | 5.5` are supported.
* Laravel `5.1` to `5.6` 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.5-orange.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%205.6-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
10 changes: 5 additions & 5 deletions _docs/0.Home.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# RouteViewer for Laravel

:description
Route Viewer is a package that allows you to view all Laravel routes eloquently.

Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelMarkdown/releases), [license](https://github.com/ARCANEDEV/LaravelMarkdown/blob/master/LICENSE.md), and [contribution guidelines](https://github.com/ARCANEDEV/LaravelMarkdown/blob/master/CONTRIBUTING.md).

### Features

* Laravel `5.1 | 5.2 | 5.3 | 5.4 | 5.5` are Supported.
* Laravel `5.1` to `5.6` are Supported.
* Easy setup & configuration.
* Well tested (100% code coverage with maximum code quality).
* Made with :heart: & :coffee:.

## Table of contents

1. [Installation and Setup](1-Installation-and-Setup.md)
2. [Configuration](2-Configuration.md)
3. [Usage](3-Usage.md)
1. [Installation and Setup](1.Installation-and-Setup.md)
2. [Configuration](2.Configuration.md)
3. [Usage](3.Usage.md)
23 changes: 5 additions & 18 deletions _docs/1.Installation-and-Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@

## Table of contents

1. [Installation and Setup](1-Installation-and-Setup.md)
2. [Configuration](2-Configuration.md)
3. [Usage](3-Usage.md)

## Server Requirements

The RouteViewer package has a few system requirements:

- PHP >= 7.0
1. [Installation and Setup](1.Installation-and-Setup.md)
2. [Configuration](2.Configuration.md)
3. [Usage](3.Usage.md)

## Version Compatibility

Expand All @@ -26,10 +20,12 @@ The RouteViewer package has a few system requirements:
[laravel_5_3]: https://img.shields.io/badge/v5.3-supported-brightgreen.svg?style=flat-square "Laravel v5.3"
[laravel_5_4]: https://img.shields.io/badge/v5.4-supported-brightgreen.svg?style=flat-square "Laravel v5.4"
[laravel_5_5]: https://img.shields.io/badge/v5.5-supported-brightgreen.svg?style=flat-square "Laravel v5.5"
[laravel_5_6]: https://img.shields.io/badge/v5.6-supported-brightgreen.svg?style=flat-square "Laravel v5.6"

[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.*"

## Composer

Expand All @@ -50,15 +46,6 @@ Once the package is installed, you can register the service provider in `config/
],
```

**Optional :** Alias the RouteViewer facade by adding it to the aliases array in the `config/app.php` file.

```php
'aliases' => [
// ...
'RouteViewer' => Arcanedev\RouteViewer\Facades\RouteViewer::class,
],
```

### Artisan command

To publish the config file, run this command:
Expand Down
6 changes: 3 additions & 3 deletions _docs/2.Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Table of contents

1. [Installation and Setup](1-Installation-and-Setup.md)
2. [Configuration](2-Configuration.md)
3. [Usage](3-Usage.md)
1. [Installation and Setup](1.Installation-and-Setup.md)
2. [Configuration](2.Configuration.md)
3. [Usage](3.Usage.md)

> Coming Soon...
6 changes: 3 additions & 3 deletions _docs/3.Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Table of contents

1. [Installation and Setup](1-Installation-and-Setup.md)
2. [Configuration](2-Configuration.md)
3. [Usage](3-Usage.md)
1. [Installation and Setup](1.Installation-and-Setup.md)
2. [Configuration](2.Configuration.md)
3. [Usage](3.Usage.md)

> Coming Soon...
15 changes: 6 additions & 9 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.0",
"php": "^7.1.3",
"ext-json": "*",
"arcanedev/support": "~4.2"
"arcanedev/support": "~4.3.0"
},
"require-dev": {
"orchestra/testbench": "~3.5.0",
"phpunit/phpcov": "~4.0",
"phpunit/phpunit": "~6.0"
"orchestra/testbench": "~3.6.0",
"phpunit/phpcov": "~5.0",
"phpunit/phpunit": "~7.0"
},
"autoload": {
"psr-4": {
Expand All @@ -37,10 +37,7 @@
"laravel": {
"providers": [
"Arcanedev\\RouteViewer\\RouteViewerServiceProvider"
],
"aliases": {
"RouteViewer": "Arcanedev\\RouteViewer\\Facades\\RouteViewer"
}
]
}
}
}
8 changes: 8 additions & 0 deletions config/route-viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

return [

/* -----------------------------------------------------------------
| Theme
| -----------------------------------------------------------------
*/

'theme' => 'bootstrap-3',

/* -----------------------------------------------------------------
| Route settings
| -----------------------------------------------------------------
Expand Down Expand Up @@ -52,4 +59,5 @@
'DELETE' => 'danger',
],
],

];
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<![endif]-->
</head>
<body>
@include('route-viewer::_layout.navigation')
@include('route-viewer::bootstrap-3._layout.navigation')

<div class="container-fluid">
@yield('content')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php /** @var Arcanedev\RouteViewer\Entities\RouteCollection $routes */ ?>

@extends('route-viewer::_layout.master')
@extends('route-viewer::bootstrap-3._layout.master')

@section('content')
<div class="page-header">
Expand Down
20 changes: 0 additions & 20 deletions src/Facades/RouteViewer.php

This file was deleted.

4 changes: 3 additions & 1 deletion src/Http/Controllers/RouteViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public function __construct(RouteViewer $routeViewer)
*/
public function index()
{
return view('route-viewer::index', [
$theme = config('route-viewer.theme', 'bootstrap-3');

return view("route-viewer::{$theme}.index", [
'routes' => $this->routeViewer->all(),
]);
}
Expand Down
9 changes: 0 additions & 9 deletions tests/RouteViewerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ public function it_can_get_all_routes()
$this->assertCount(2, $routes);
}

/** @test */
public function it_can_get_all_routes_via_facade()
{
$routes = \Arcanedev\RouteViewer\Facades\RouteViewer::all();

$this->assertInstanceOf(\Arcanedev\RouteViewer\Entities\RouteCollection::class, $routes);
$this->assertCount(2, $routes);
}

/** @test */
public function it_can_view_the_route_viewer()
{
Expand Down

0 comments on commit e79dfa3

Please sign in to comment.