I'm a JavaScript developer and for server side I always do Node/Express. Now I'm learning to use Laravel but I'm running some confusions about callback concept.
For exemple: In Express when I do app.get('/myroute', function(req, res){...}) , the function(req, res) part is callback that will run after the serve receives the get request. In Laravel I have have something similar when using the routing system like when I do Route::get('/myroute', function(){...}) - I understand that the static method get of the Route class is executed but the function(){...} at the second parameter. So is that function also called "callback" like it the case for JavaScript? Is the event concept the same for the 2 programming languages?
 
     
     
    