• 1403/08/02

مشکل در شروع پروژه :

سلام و عرض ادب

استاد من وقتی دستور laravel new example-app رو میزنم و پروژه جدیدی رو شروع میکنم، بعد از سرو کردن بهم ارور 500 میده. چند بار این کارو کردم دیدم تو cmd موقع نصب فایل ها این ارور ها رو میده:

No security vulnerability advisories found.

   > @php -r "file_exists('.env') || copy('.env.example', '.env');"

ERROR: Invalid syntax. Value expected for '-r'.

Type "WHERE /?" for usage. 

و

could not find driver (Connection: mysql, SQL: select exists (select 1 from information_schema.tables where table_schema = 'example_app' and table_name = 'migrations' and table_type in ('BASE TABLE', 'SYSTEM VERSIONED')) as `exists`)

 

 at vendor\laravel\framework\src\Illuminate\Database\Connection.php:825

   821▕                     $this->getName(), $query, $this->prepareBindings($bindings), $e

   822▕                 );

   823▕             }

   824▕

 ➜ 825▕             throw new QueryException(

   826▕                 $this->getName(), $query, $this->prepareBindings($bindings), $e

   827▕             );

   828▕         }

   829▕     }

 

 1   vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:66

     PDOException::("could not find driver")

 

 2   vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:66

     PDO::__construct()

من چیکار باید بکنم؟

 

 

 

logo-samandehi