1

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

9
  • does the 'welcome' view exist and is accessible to the webserver? Commented Jan 20, 2016 at 10:26
  • Yes it exists and its accessible @lagbox Commented Jan 20, 2016 at 10:27
  • what is the filename of this welcome view? Commented Jan 20, 2016 at 10:28
  • its welcome.blade.php @lagbox and it works well in local windows server. Commented Jan 20, 2016 at 10:28
  • Try php artisan cache:clear on the Linux box. Commented Jan 20, 2016 at 10:38

1 Answer 1

1

@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;
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.