Fatal error: Cannot redeclare class Stringy\Stringy in D:\work\bookstrore-laravel\vendor\danielstjules\stringy\src\Stringy.php on line 5
i have this error when run EVERY laravel project.i'm using phpstorm 9.0.
and i can run it by php artisan serve in the project directory. i'm new with this and i really don't know why it's can't run on phpstorm
Related
I am trying to upload files to a live server, but I am getting this error.
PHP Fatal error: Trait
'Illuminate\Database\Eloquent\Concerns\HasEvents' not found in
/home/mysite/public_html/myapp/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
on line 25
I am using Laravel 5.4.
Have you run the composer dump-autoload
I am using laravel 5.1 in my production server. After update my composer, queue listener command starts throwing error as
PHP Fatal error: Cannot redeclare class Illuminate\Support\Traits\Macroable in /var/www/<site-folder>/bootstrap/cache/compiled.php on line 6109
I couldn't find out the problem. My site is working fine, and other artisan commands are working fine. But I can't run my queue. Please suggest me some sollution
You should run Run
php artisan clear-compiled
php artisan optimize
and make you sure you restart your queue.
I use couchbase nosql database by ytake/laravel-couchbase package in my laravel 5.1 project
After install that package and run php artisan serve i got error :
PHP Fatal error: Class 'CouchbaseN1qlQuery' not found in /var/www/html/eee/vendor/ytake/laravel-couchbase/src/CouchbaseServiceProvider.php on line 71
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'CouchbaseN1qlQuery' not found
I had this error for a long time.
For me, the problem was that the CLI user couldn't write in the laravel.log when the couchbase client was trying to write a warning to it. Check user permissions.
I'm configuring PhpStorm 8.0.1 with a basic project of Yii2, but when I run the project it show me:
Fatal error: Class 'yii\codeception\TestCase' not found in D:\Progetti\PHP\TestDue\tests\codeception\unit\models\ContactFormTest.php on line 10
Process finished with exit code 255
I setted PHP interpreter 5.6.3
anyone with this error?
I am trying to execute an migration in laravel, I ran the following command:
php artisan migrate
and php throw me:
PHP fatal error: Class 'schema' not found in C://.... on line 14
I am using php 5.4.17 and Laravel 4.1.*
The Composer autoloader is case sensitive, so you'll need to use Schema::... functions in your migrations, not schema::... ones.