vendredi 4 décembre 2015

Accessing get variable from routes in service provider

I want to access a get variable from my route.php file in my Service Provider.

public function boot(Router $router)
{    
     $router->bind('param',function($param){

     });
}



   I  have added this in the boot method and i get the value of get variable in $param.
Now i have to get this in the register method in the service provider.How can i access it there.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire