composer install --no-interaction --no-dev --prefer-dist
I try to deploy my app on DigitalOcean server, got error when executing above command.
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Illuminate\Broadcasting\BroadcastServiceProvider' not found
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
Other details listed below:
Related
After running all following command successfully
composer create-project laravel/laravel project_name
composer require laravel/breeze --dev
php artisan breeze:install react
npm install
When I am running this command
npm run dev
then getting
ERROR in /js/app
Module not found: Error: Can't resolve '...\project_name\resources\js\app.js' in '....\project_name'
webpack compiled with 1 error
Then how do I solve this error?
Note: I am just using https://bootcamp.laravel.com/inertia/installation instruction to isntall laravel project with react.
I just cloned a git repo and ran the necessary commands to install the project.
When I access the login page "http://localhost:80/nova/login" it works. However after enter the correct credentials and submit it shows an error:
Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Class '\App\User' not found
Do you know what can be the issue?
Also running this command:
/var/www # php artisan component:update
It shows a similar error:
Starting Update of All Component files
Symfony\Component\Debug\Exception\FatalThrowableError : Class 'App\Component' not found
After cloning, running through these steps should fix your problem:
run composer install or npm install.
check that the .env file is correct.
run php artisan key:generate
Optional: php artisan migrate
run php artisan serve
Reload composer autloaded classes.
composer dump-autoload
Now I have installed the Laravel framework using composer command "composer create-project --prefer-dist laravel/laravel myappname" on a local server and everything works fine. Then with the same composer command installed on the shared hosting but nothing works. When I visit to index page return error:
Failed to load resource: the server responded with a status of 500 ()
When I run command php artisan return error on cosole:
PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /home/c/cn89872/website.com/public_html/bot/ii/bootstrap/app.php:14
How can be solved my problem?
First of all run this command:composer dump-autoload This command will clean up all compiled files and their paths.
After composer update --no-scripts This command will Skips execution of scripts defined in composer.json
Finally, update your project's dependencies: composer update
Running a CI build on codeship.io returns into an unexplainable error. The last lines of the debug text is:
[..]
Clearing the cache for the dev environment with debug true
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets handling the post-install-cmd event terminated with an exception
[ErrorException]
Undefined property: Composer\Script\CommandEvent::$getIO
The codeship documentation doesn't say much about deploying/building a Symfony application. It seems like it is impossible to create the bootstrap.php.cache file.
EDIT:
I'm using Symfony 2.4.3-DEV, composer is unable to finish the post-install-cmd scripts, so it looks like composer has no i/o interface at Codeship. Adding composer self-update to the install script at Codeship does result in the same error.
The codeship configuration is:
# Set php version through phpenv. 5.3, 5.4 and 5.5 available
phpenv local 5.4
# Install dependencies through Composer
composer selfupdate
composer install --prefer-source --no-interaction --optimize-autoloader
Have you specified PHP in the Select your technology to prepopulate basic commands field ? What are your Setup Commands ?
Mine are :
phpenv local 5.5
composer install --prefer-source --no-interaction
php app/console assetic:dump --env=prod
I'm installing my app on my VPS. composer create-project runs through everything gets just past "Generating autoload files" and then throws the following error:
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Class 'PDO' not found","file":"/home/mysite/myapp/app/config/database.php","line":16}}Script php artisan optimize handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
Need your help!
If your vps is CentOS: yum install php-pdo
or alternatively: pecl install pdo