Category: laravel

Why i’m getting failed to open stream error while using swoole laravel? [closed]

i’m getting this error while using Laravel Swoole [2020-05-25 22:19:46 @660605.0] WARNING swServer_start_check: serv->max_connection is exceed the maximum value, it’s reset to 100 PHP Fatal error: Uncaught ErrorException: fopen(php://stderr): failed to open stream: operation failed in /home/entaqjyl/esrif.entagk.com/vendor/symfony/console/Output/ConsoleOutput.php:157 Stack trace: 0…

Error: Class ‘LeagueFlysystemAwsS3v3AwsS3Adapter’ not found in file

laravel Framework is 7.9.2. composer require league/flysystem-aws-s3-v3 ~1.0 installed to use aws s3. It runs on localhost, but when I put it on the aws server, Error: Class ‘LeagueFlysystemAwsS3v3AwsS3Adapter’ not found error appears. However, when I checked with composer licenses,…

How to migrate a Symfony password authentication to laravel passport authentication?

We are currently migrating a Symfony 2 project to Laravel 6 and we have a lot of existing users with their passwords and salt stored in the database..So how can we use the laravel passport authentication for the existing users…

Symfony writeln have no color in Laravel php artisan serve

I want to print something by php artisan serve In my controller action, I add some code like this: public function show($id) { … $output = new SymfonyComponentConsoleOutputConsoleOutput(); $output->writeln(“<info>Hello World!</info>”); } Hello World! is printed on php artisan serve without…

‘python3’ is not recognized as an internal or external command, In Laravel using Symfony/process

I’m trying to execute a python file in laravel controller using symfony/process but i get an error. Exit Code: 1(General error) Output: ================ ‘python3’ is not recognized as an internal or external command, operable program or batch file. This is…

Get Artisan::output() while command still running

I have a route /sync which it calls an Artisan::call(‘product:sync’); Route::get(‘/sync’, function (Request $request) { Artisan::call(‘product:sync’); return (Artisan::output()); }); It shows output but after command finished. Now since command takes long to finish I need to display $this->info(‘Welcome to Product…