fix typos in Dispatcher
move Laravel-specific code to Laravel folder