Search code examples
laravelinstallationcomposer-phpvendor

Cannot install Laravel correctly


I followed all the instruction by installing composer and then Laravel. Also I did everything what was shown in laracast series for installing Laravel and composer. BUT I have some problems and I cannot solve them:

  1. I don't have Vendor folder in my Laravel app folder
  2. I cannot launch command 'composer artisan' as it says that

    [Symfony\Component\Console\Exception\CommandNotFoundException]
    Command "artisan" is not defined"

  3. "php artisan" also doesn't work

  4. All the answer in the web I have already tried to resolve my problems but nothing worked for me

Please, tell me, how can I install Laravel correctly and use it without errors


Solution

  • Well. I've solved my problem. As I mentioned before I had tried all the answer in the web but nothing had helped me. So then I just deleted my laravel project and ran this command

    sudo apt-get upgrade
    

    After some time packages were upgraded and I created new Laravel project. And Laravel started working perfectly! So in any incomprehensible situation do apt-get upgrade :))