I am getting 1 error, which is very strange. Error : View [pages.email_templates.welcome_template_5] not found.
But the fact is that view file does exist in the mentioned folder.
I have tried following command but with no luck.
php artisan cache:clear
php artisan config:clear
php artisan config:cache
Controller :
$templatename = strtolower(str_replace(' ','_',$template_text->template_name));
return view('pages.email_templates.'.$templatename);
Best Part : Its working fine in localhost but not in the server