This changelog contains all notable change of the mozhi package
- drops support for Laravel 5.6
- adds Laravel 5.8 support
- Refactoring of the template renderer
- Inject a markdown parser, this way it can now be swapped out
- The Route Resolver has been modified. Every page has to live in its own directory now. The URL
/blog
should have acontents/blog/blog.md
while previouslycontents/blog.md
was enough. (#18)
This version adds support to Laravel 5.7 and drops support for Laravel 5.5
- adds support for Laravel 5.6
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.
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
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();
}
Fixes that the config
helper does not work in a ServiceProvider
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.
This is the first release just having the basic feature implemented:
- Catch all routes and render the appropriate template.