mini-mvc-php-native icon indicating copy to clipboard operation
mini-mvc-php-native copied to clipboard

update route namespace

Open naagaraa opened this issue 3 years ago • 0 comments

i want build like this , update style

Route::get('/user/{id}', function ($id) { return 'User '.$id; });

and like that

Route::view('/welcome', 'welcome');

for now

// Create a Router object dari bramus router $router = new Router();

//configuruation route $router->get('/', function () { return view('Welcome'); }); // run route! $router->run();

naagaraa avatar Oct 26 '21 03:10 naagaraa