1. Go to this page and download the library: Download protibimbok/laramod library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
protibimbok / laramod example snippets
class BlogModule implements Module, ProvidesRoutes, ProvidesMigrations
{
public function name(): string
{
return 'blog';
}
public function path(): string
{
return __DIR__;
}
public function routes(Router $router): void
{
use Modules\Blog\BlogModule;
return [
BlogModule::class,
];
use Laramod\Facades\Modules;
Modules::register([BlogModule::class]);