1. Go to this page and download the library: Download lencione/laravel-modules 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/ */
lencione / laravel-modules example snippets
namespace App\Modules\Users\Services;
use App\Modules\Users\Models\User;
use Lencione\LaravelModules\Services\BaseService;
class UsersService extends BaseService
{
public function __construct()
{
parent::__construct(new User);
}
}