Because the listener fires call_user_func_array() which needs an array for the arguments. In the OP...
Try wrapping your $data into an array: $dd = Event::fire('email.send', array($data));
Maybe die/dump the query so you can see what the DB is actually getting... prior to your foreach() y...
I looks like: Route::resource('mdpay', 'LoginController'); should work. You can then run: php artis...
You can check to see how Laravel has your routes registered: php artisan routes
The Laravel portal for problem solving, knowledge sharing and community building.
The community