Example #1
0
<?php

# ---------------------------------------------------------
# Creating Routes
# ---------------------------------------------------------
# - There are two ways to create route, there is the Facade
# and the function route()
# e.g
# - Route::addGet() or Route::get() ...
# - route()->addGet() or route()->get() ...
Route::addGet('/', ['controller' => 'Welcome', 'action' => 'showSignature']);
# ----------------------------------------------------------
# Organized Routes using RouteGroup
# ----------------------------------------------------------
# - Mount your route classes
Route::mount(new App\Main\Routes\AuthRoutes());
Route::mount(new App\Main\Routes\NewsfeedRoutes());