Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Commit

Permalink
Merge pull request #12 from aheenam/upgrade/laravel-56
Browse files Browse the repository at this point in the history
Upgrade/laravel 56
  • Loading branch information
rathesDot authored Feb 8, 2018
2 parents d08e6ea + 23498b2 commit 4859ec5
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 5 deletions.
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,54 @@ CHANGELOG

This changelog contains all notable change of the mozhi package

0.3.0
---
- adds support for Laravel 5.6

0.2.0
---

This release adds the feature that there can be additional routes to the Mozhi routes. Before this version, every route would be automatically caught by Mozhi and passed to Mozhi's frontend controller. Now it is up to you to define this.

Upgrade Guide
---

If you are upgrading from a version `< 0.2.0` then make sure that you add `Mozhi::routes()` to the `map()` function of your RouteServiceProvider.

```php
<?php

namespace App\Providers;

use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Mozhi;

...

/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
$this->mapApiRoutes();

$this->mapWebRoutes();

Mozhi::routes();
}
```

0.1.2
---
Fixes that the `config` helper does not work in a ServiceProvider

0.1.1
---
This release fixes the issue that the base route / was not caught by the Controller. Now the RouteResolver will look for a index.md file in the root directory of the contents.

0.1.0: Initial release
---

Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
],
"minimum-stability": "stable",
"require": {
"php" : "^7.0",
"php" : "^7.1",
"spatie/yaml-front-matter": "^2.0",
"Illuminate/Routing": "^5.5",
"Illuminate/Http": "^5.5",
"Illuminate/Support": "^5.5|^5.6",
"Illuminate/Routing": "^5.5|^5.6",
"Illuminate/Http": "^5.5|^5.6",
"league/commonmark": "^0.16.0"
},
"require-dev": {
"phpunit/phpunit": "5.*|^6.3",
"orchestra/testbench": "~3.4.0|~3.5.0",
"phpunit/phpunit": "^6.3|^7.0",
"orchestra/testbench": "~3.5.0|~3.6.0",
"spatie/phpunit-snapshot-assertions": "^1.1"
},
"autoload": {
Expand Down

0 comments on commit 4859ec5

Please sign in to comment.