When using a controller you no longer use a closure
<?php
//routes.php
Route::get('email/{id}', ['as' => 'newEmail', 'uses' => 'HomeController@newmail']);
//HomeController.php
class HomeController extends BaseController
{
//...
public function newEmail($id) {
//handle your email confirmation
//respond with either a view or a redirectResponse
}
//...
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community