Commit d0d65df1 authored by Home's avatar Home

correction

parent d6d7f452
......@@ -50,7 +50,6 @@ class Handler extends ExceptionHandler
*/
public function render($request, Exception $exception)
{
try {
$uri = $request->path();
$leaf = new Leaf($uri);
......
......@@ -165,20 +165,11 @@ class Leaf {
{
$leaf['children'] = $this->retriveChildrenMetas();
}
if ( array_key_exists('style', $leaf) )
{
$view_path = 'leaf'; // default path
if ( isset(config('iba-leaf.views-path')) )
{
$blade_file = config('iba-leaf.views-path');
}
$view_path = $view_path . $leaf['style'];
$view_path = config('iba-ileaf.views-path') . '.' . $leaf['style'];
return $this->leafReturn($view_path, compact('leaf', 'base', 'menu'), '200');
}
return $this->leafReturn('ileaf::leaf', compact('leaf', 'base', 'menu'), '200');
}
......
......@@ -3,5 +3,5 @@
return [
'host' => env('APP_URL', 'http://localhost'),
'name' => env('APP_NAME', ''),
'views-path' => 'directory-to-styles-views'
'views-path' => 'leaf' // without the ending "dot"
];
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment