Category : composer-php

I am trying to install Laravel Sanctum following the instructions on Laravel’s website: https://laravel.com/docs/8.x/sanctum I run this command composer require laravel/sanctum and Laravel Sanctum is successfully installed: Using version ^2.11 for laravel/sanctum ./composer.json has been updated Loading composer repositories with package information However, it seems like installing Sanctum is also removing default Laravel Packages: Package ..

Read more

I wanna install the Backpack package after creating a new Laravel project with this command: composer require backpack/crud:"4.1.*" But all things that I’ve got is a downloading progress bar for 1 hour and nothing. And here is my composer.json file: { "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "require": ..

Read more

Laravel 8 PHP Version – 7.3.21 Composer version 2.1.8 When I try to add any package using composer require, it throws error: This is happening for all the composer packages. $ composer require laravel/scout Using version ^9.3 for laravel/scout ./composer.json has been updated Running composer update laravel/scout Loading composer repositories with package information Updating dependencies ..

Read more

Currently I am trying to update laravel 6.x to 7.x. I’ve updated my dependencies in composer.json but when I do composer update I get following errors Your requirements could not be resolved to an installable set of packages. Problem 1 – Conclusion: don’t install laravel/framework v7.0.0 (conflict analysis result) – Conclusion: don’t install laravel/framework v7.0.1 ..

Read more

please i need help..im not familiar with composer and I don’t know how to add another library to Laravel 8… Here’s the library I want to add to my Laravel 8 project ->https://github.com/jzonta/FakerRestaurant this is my laravel code in visual studio editor when i run php artisan migrate:refresh –seed in terminal, i got error… how ..

Read more

currently I’m intalling dependences in one pryect that I cloned yesterday, and I’m having this problem: Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Your lock file does not contain a compatible set of packages. Please run composer update. Problem 1 – pusher/pusher-php-server is locked to ..

Read more

It’s my first time with Laravel. I’ve install Laravel application via composer but when i try to run artisan command (like: php artisan serve) a fatal error is shown: Fatal error: require(): Failed opening required ‘C:Apache24htdocsapp-testbootstrap/../vendor/autoload.php’ (include_path=’.;C:phppear’) in C:Apache24htdocsapp-testbootstrapautoload.php on line 17 I check in the vendor folder and autoload.php file doesn’t exist. I try ..

Read more

I’m on mac and using MAMP. When i’m trying to create new laravel project autoload.php doesen’t appears in the vendor folder. Php Artisan command says: Warning: require(/Applications/MAMP/htdocs/blog/vendor/autoload.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/blog/artisan on line 18 Fatal error: require(): Failed opening required ‘/Applications/MAMP/htdocs/blog/vendor/autoload.php’ (include_path=’.:’) in /Applications/MAMP/htdocs/blog/artisan on line 18 Also ..

Read more

I’m using Laravel Framework 7.30.4 and PHP 7.4.23 How to install weidner/goutte it’s throwing below error. please help Using version ^2.1 for weidner/goutte ./composer.json has been updated Running composer update weidner/goutte Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 – Root ..

Read more

When I create a new composer project for laravel composer create-project laravel/laravel laravel I get the following error > @php artisan package:discover –ansi Error Class ‘SymfonyComponentTranslationLoaderArrayLoader’ not found at vendor/nesbot/carbon/src/Carbon/Translator.php:80 76▕ public function __construct($locale, TranslationFormatterMessageFormatterInterface $formatter = null, $cacheDir = null, $debug = false) 77▕ { 78▕ $this->initializing = true; 79▕ $this->directories = [__DIR__.’/Lang’]; ➜ ..

Read more

I tried creating new laravel project using composer but am getting the above error. Any help? This is the command I used: "composer create-project –prefer-dist laravel/laravel project-name" Some Output errors: Class SymfonyComponentTranslationTestsDependencyInjectionTranslatorPassTest located in ./vendor/symfony/translation/TranslatorPassTest.php does not comply with psr-4 autoloading standard. Skipping. Class SymfonyComponentTranslationLoaderArrayLoader located in ./vendor/symfony/translation/ArrayLoader.php does not comply with psr-4 autoloading standard. ..

Read more

I have been using this pre-made docker-compose-laravel Setup for my website https://github.com/aschmelyun/docker-compose-laravel. After installing my local dev environment and adding the logic i tried deploying the project via DigitalOcean’s Droplet service. When running the command to install composer docker-compose run –rm composer install i get the following common error message /var/www/html/vendor/doctrine does not exist and ..

Read more

I have created a laravel package https://github.com/wcaaan/firebase-token-authentication My repository is synced with packagist https://packagist.org/packages/wcaaan/firebase-token-authentication As soon as i push and create a new release it automatically shows up in packagist. The problem is what ever i do i cannot install the repository through composer. I have created two released on gitHub. I have tried all ..

Read more

Im trying to create a laravel project using laravel new proj_name but it shows always showing that composer is not recognized as an internal or external command operable program or batch file i have set my environmental variable as C:UsersadminAppDataRoamingComposervendorbin; and my pathext as .PHAR; dont where i made the mistake, it works perfectly with ..

Read more

Laravel Backpack recommends to install the backpack-devtools via composer, and to exclude them from production by running the composer install command with the –no-dev parameter. This would allow to use the package in the local environment while excluding it from production (https://backpackforlaravel.com/products/devtools). This works perfectly fine by itself, just when I use a CI, I ..

Read more