URL changing in C5
Permalink
Hi,
Is there a way to call routes internally? Let's say I registered a route:
And I want the visitor to see '/login' page without redirecting (changing address bar). As I recall in Laravel calling dispatch() method would do that.
Is there a way to call routes internally? Let's say I registered a route:
Route::register('/admin_login', function() { //render /login page ///... });
And I want the visitor to see '/login' page without redirecting (changing address bar). As I recall in Laravel calling dispatch() method would do that.