Reputation: 193
I have developed a Laravel application which works well on a local machine. Local is windows and live server is linux.
On live it gives error like
InvalidArgumentException in FileViewFinder.php line 137: View [welcome] not found.
in FileViewFinder it still takes path of Xampp/htdocc/xxx
FileViewFinder->findInPaths('welcome', array('C:\xampp\htdocs\CRM\resources\views', '/mnt/data/vhosts/casite-673772.cloudaccess.net/httpdocs/CRM/app\Modules\User\Views')) in FileViewFinder.php line 79
Upvotes: 1
Views: 1518
Reputation: 193
@thanks i have done it through route like
Route::get('/cmd', function () {
chdir('../');
$dir = getcwd();
print_r($dir);
$cmd = shell_exec ('php artisan cache:clear');
return $cmd;
});
Upvotes: 1