1. Go to this page and download the library: Download williamug/modular 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/ */
williamug / modular example snippets
use Illuminate\Support\Facades\Route;
Route::get('/expense', function () {
return 'Welcome to the Expense module!';
});
namespace Modules\Expense\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class ExpenseController extends Controller
{
public function index()
{
return 'Expense index page';
}
}