Do you have a route named 'emailapp.defaulttemplate'? That sounds like a blade template.
You're redirecting to a named route, which you don't have defined. Make sure your routes.php
looks like this:
Route::get('/your-route', [
'uses' => 'YourController@method',
'as' => 'NAME_OF_ROUTE' // I would name this differently... ;-)
]);
And then change the code in your controller:
return Redirect::route('NAME_OF_ROUTE') .....
You can name the route anything you want!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community