Skip to content

Commit

Permalink
Merge pull request #9 from ARCANEDEV/update-laravel_5.7_support
Browse files Browse the repository at this point in the history
Adding Laravel 5.7 support
  • Loading branch information
arcanedev-maroc authored Apr 21, 2019
2 parents ea76867 + ed74dea commit c7c7566
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelMarkdo

### Features

* Laravel `5.1` to `5.6` are supported.
* Laravel `5.1` to `5.7` are supported.
* Easy setup & configuration.
* Well tested (100% code coverage with maximum code quality).
* Made with :heart: & :coffee:.
Expand All @@ -45,7 +45,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail.
- [All Contributors][link-contributors]

[badge_license]: https://img.shields.io/packagist/l/arcanedev/laravel-markdown.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%205.6-orange.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/Laravel-5.1%20to%205.7-orange.svg?style=flat-square
[badge_build]: https://img.shields.io/travis/ARCANEDEV/LaravelMarkdown.svg?style=flat-square
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/LaravelMarkdown.svg?style=flat-square
[badge_quality]: https://img.shields.io/scrutinizer/g/ARCANEDEV/LaravelMarkdown.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 | 5.2 | 5.3 | 5.4 | 5.5` are Supported.
* Laravel `5.1` to `5.7` 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 @@ -8,6 +8,7 @@
| ![Laravel Markdown v1.2.x][laravel_markdown_1_2_x] | ![Laravel v5.4][laravel_5_4] |
| ![Laravel Markdown v1.3.x][laravel_markdown_1_3_x] | ![Laravel v5.5][laravel_5_5] |
| ![Laravel Markdown v1.4.x][laravel_markdown_1_4_x] | ![Laravel v5.6][laravel_5_6] |
| ![Laravel Markdown v1.5.x][laravel_markdown_1_5_x] | ![Laravel v5.7][laravel_5_7] |

[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 @@ -16,11 +17,13 @@
[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"
[laravel_5_7]: https://img.shields.io/badge/v5.7-supported-brightgreen.svg?style=flat-square "Laravel v5.7"

[laravel_markdown_1_1_x]: https://img.shields.io/badge/version-1.1.*-blue.svg?style=flat-square "Laravel Markdown v1.1.*"
[laravel_markdown_1_2_x]: https://img.shields.io/badge/version-1.2.*-blue.svg?style=flat-square "Laravel Markdown v1.2.*"
[laravel_markdown_1_3_x]: https://img.shields.io/badge/version-1.3.*-blue.svg?style=flat-square "Laravel Markdown v1.3.*"
[laravel_markdown_1_4_x]: https://img.shields.io/badge/version-1.4.*-blue.svg?style=flat-square "Laravel Markdown v1.4.*"
[laravel_markdown_1_5_x]: https://img.shields.io/badge/version-1.5.*-blue.svg?style=flat-square "Laravel Markdown v1.5.*"

## Composer

Expand Down
18 changes: 14 additions & 4 deletions _docs/2-Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,36 @@

return [

/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Set Safe mode
| -----------------------------------------------------------------
*/

'safe-mode' => false,

/* -----------------------------------------------------------------
| Escape Cross-site scripting
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
| Allowing or not to escape the JavaScript in anchor tags.
| e.g. markdown like "[Link](javascript:alert('hello'))".
*/

'xss' => true,

/* ------------------------------------------------------------------------------------------------
/* -----------------------------------------------------------------
| Automatically link URLs
| ------------------------------------------------------------------------------------------------
| -----------------------------------------------------------------
| Allowing or not to automatic-linking of URLs in your markdown.
*/

'urls' => true,

/* -----------------------------------------------------------------
| Escape Markups
| -----------------------------------------------------------------
| Allowing or not to escape the HTML markups.
*/

'markups' => true,

];
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"license": "MIT",
"require": {
"php": ">=7.1.3",
"arcanedev/support": "~4.3.0",
"erusev/parsedown": "~1.6"
"arcanedev/support": "~4.4.0",
"erusev/parsedown": "~1.7"
},
"require-dev": {
"orchestra/testbench": "~3.6.0",
"orchestra/testbench": "~3.7.0",
"phpunit/phpunit": "~7.0",
"phpunit/phpcov": "~5.0"
},
Expand Down
14 changes: 0 additions & 14 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,6 @@ protected function getPackageProviders($app)
];
}

/**
* Get package aliases.
*
* @param \Illuminate\Foundation\Application $app
*
* @return array
*/
protected function getPackageAliases($app)
{
return [
'Markdown' => \Arcanedev\LaravelMarkdown\Facades\Markdown::class,
];
}

/**
* Define environment setup.
*
Expand Down

0 comments on commit c7c7566

Please sign in to comment.