I am using laravel-dropbox-driver package.
When i try to download file from droobox like
Storage::disk('dropbox') - >download($filename) ;
It throws an error
Call to undefined method league/flysysten download
You are missing a required package, run the below command:
composer require spatie/flysystem-dropbox
This will install the required League Flysystem.
Related
I'm trying to install pg_stat_statements doing this:
CREATE EXTENSION pg_stat_statements;
and I get this:
ERROR: could not open extension control file "/usr/local/greenplum-db-6.10.1/share/postgresql/extension/pg_stat_statements.control": No such file or directory
I already installed postgresql-contrib as follow:
sudo yum install postgresql-contrib
The file pg_stat_statements.control is not found on the location specified in the error, should I download it? or how does it work?
There is no documentation of that extension of greenplum. I would say its not supported.
Please note that, I'm using rappasoft updated boilerplate Laravel 5.8 and I'm using your installation steps but it's giving me this error message:
Class 'ConsoleTVs\Charts\Charts' not found
they forgot to add install charts dependency through composer try this
composer require consoletvs/charts
this will install your missing dependency
i get this error when i'm using laravel with phpstorm ,wamp server
enter image description here
could you please help me ,thank you
It seems that you have not installed the composer file dependencies. Try to do a composer install
On your project directory where the composer.json file should exist.
If you haven't already installed composer, follow the instructions at composer site.
I am running this command:
C:\xampp\htdocs\notebook>php artisan serve
However I get this error:
Warning: require(C:\xampp\htdocs\notebook\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\notebook\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\notebook\bootstrap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\notebook\bootstrap\autoload.php on line 17
After creating a project or cloning existing one you should run composer install command which will install all dependecies and will create autoload.php file.
That is an import error.
Everytime you have one of these, you should try to run composer dump-autoload.
Most of the time, this command will fix your imports.
It looks like you might not have installed the required dependencies yet. You should do so using the composer package manager, like so:
C:\ProgramData\ComposerSetup\bin\composer install
I have XAMPP installed on Windows 10. And have successfully installed Composer, Laravel. I can see the basic Laravel project page on my local server.
Just to try things out I also installed yii2. I can see the basic yii2 page also on my local server.
Now I'm trying to install this Generic Cloudstack Client:
https://github.com/PCextreme/cloudstack-client
In XAMPP, under htdocs I have this dir called 'LaravelProjects'.
dir structure
First I made the project with the laravel command:
laravel new PCextreme
Then in PCextreme directory I give the command:
composer require pcextreme/cloudstack-client:~0.1
The composer breaks and shows Conclusion: remove laravel/framework 5.2.41
But in the instructions there is another method to install the package.
When I do that by editting the composer.json in the main Laravel dir. 'LaravelProjects' under xampp/htdocs with these lines:
"require": { "pcextreme/cloudstack-client": "~0.1" }
And then I run the "composer update" command.
I don't get any error.
But as soon as I follow these steps:
Once the package is installed you need to open app/config/app.php and register the required service provider:
`'providers' => [
'PCextreme\CloudstackClient\Providers\LaravelServiceProvider']`
The application breaks.
I can't see the basic page showing 'Laravel 5' on my server anymore.
Instead of that I get a fatal error:
Whoops, looks like something went wrong.
1/1 FatalErrorException in ProviderRepository.php line 146: Class
'PCextreme\CloudstackClient\Providers\LaravelServiceProvider' not found
Further in the instructions, when I give the command below:
php artisan config:publish pcextreme/cloudstack-client
I get this error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'PCextreme\CloudstackClient\Providers\LaravelServiceProvider' not found
I have tried out different things that I could find on internet but nothing seems to work in my case.
Could someone kindly help me out with this? Any help is greatly appreciated!
Execute in you project folder command: composer update