Welcome Guest, Not a member yet? Register   Sign In
'if' method for routes service
#1

I'm thinking of adding an 'if' method to the RoutesCollection class.

It would work like this:

$routes->if(true,function($routes){
     // blah...
});

....

Or restrict routes to logged in users(Myth:Auth)

$routes->if(logged_in(),function($routes){

});

A good idea?
Reply


Messages In This Thread
'if' method for routes service - by Ceo - 09-02-2020, 03:37 AM
RE: 'if' method for routes service - by murad_ali - 09-03-2020, 08:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB