How to create modules in laravel 5 or hmvc in laravel 5

I am developing hmvc in laravel 5 . But I did not find a useful step and code, there will be a brief description of each Internet solution, but I start in laravel 5

I am using the libraries below following this link: https://github.com/teepluss/laravel-hmvc

I am writing this code along the route:

hmvc::get('/', function () {
    return view('welcome');
});

but getting an error:

HmvcNotFoundHttpException on line Hmvc.php 133: request not found.

Call the undefined method Teepluss \ Hmvc \ Hmvc :: get ().

+4
source share
1 answer

Check provider and aliases.

'providers' => array(

'Teepluss\Hmvc\HmvcServiceProvider'

)



'aliases' => [

'HMVC' => 'Teepluss\Hmvc\Facades\HMVC',

]

and run

php artisan vendor:publish

along the route:

HMVC::get('hello-world');
+1
source

All Articles