I'm trying to require Laravel Socialite following the composer command in the DOCs but it's showing me the below error. Anyone knows what to do?
I'm using Laravel 9 and I don't think it's related to anything in my project so no need for code snippets.
hitting composer require laravel/socialite doesn't seem to work.
It was a network issue. I restarted my internet and it worked.
Related
I've recently set up a new Laravel 5.5 project on Ubuntu 16.04 with an NGINX server. I've followed all the correct steps and double checked everything more than once. I've installed Laravel/Passport and double checked those set up instructions as well.
I'm building an API that requires a login for most endpoints, which is done via password_grant with laravel/passport but can also consumes a Facebook auth token - instead of writing my own Facebook Auth Token verify, I've chosen to use a larval plugin. composer require danjdewhurst/laravel-passport-facebook-login However, this plugin doesn't seem to install easily for me.
I am receiving an error on any composer install or update command I issue:
Target [League\OAuth2\Server\Repositories\ClientRepositoryInterface] is not instantiable while building [League\OAuth2\Server\AuthorizationServer].
I have played around with the config/app.php file as well as the uses for all of the files and providers that were installed with the plugin. I have gone through every post here to try and fix the issue as well.
If anyone has any insight or a fix for this issue I'd appreciate it. Any help would help.
Thank you.
I found this to be an issue with the order of Laravel's auto discovery of packages. Obviously the Facebook Grant package needs to load after laravel/passport but this was not happening.
My solution was to add the following to my composer.json:
"extra": {
"laravel": {
"dont-discover": [
"laravel/passport",
"danjdewhurst/laravel-passport-facebook-login"
]
}
}
and then the following to my config/app.php in the providers array:
\Laravel\Passport\PassportServiceProvider::class,
\Danjdewhurst\PassportFacebookLogin\FacebookLoginGrantProvider::class,
After adding Laravel\PassportServiceProvider::class to config/app.php providers. I just deleted the .php from bootstrap/cache/ and it works.
I was trying to composer update and encounter the same problem.
Then I notice the dependencies in https://github.com/danjdewhurst/Laravel-Passport-Facebook-Login stated
"laravel/passport": "^4.0",
I solved my problem after updating my passport
I am using Reportico reporting module, and follow the installation instructions listed on official website, but somehow its not working.
Here are the steps I followed:
I have created a fresh laravel project mentioned on laravel docs:
composer create-project --prefer-dist laravel/laravel blog
Then within the project root directory, I executed the following command by using composer:
composer require reportico/laravel-reportico "~5.2"
And remaining steps are same as listed on Reportico website. It did not give me any error message in the steps, but finally when I go to the url:
http://localhost:8000/index.php/reportico
It is showing error message that route not found.
Can anybody suggest how to fix this, or is there any free-open-source reporting tool which I can use with Laravel project.
This project was upgraded to 5.4 in February, but unfortunately there was a problem which made it unavailable to the world. I believe I have fixed this now so please retry the composer require command and you should get version 5.4 of the package.
If it doesnt work you could try using the following instead to force the version update:
composer require "reportico/laravel-reportico" "dev-master"
Also, the error messsage you are getting implies you havent added to your config/app.php file in the providers section
Reportico\Reportico\ReporticoServiceProvider::class
This is very important. Please let me know if this works.
Peter
I had the same issue.
Changing the url to below worked for me
http://localhost:8000/index.php/reportico
Hope it helps someone.
I've recently installed composer and also installed laravel installer from composer from the commmand line just like they said in laravel documentation.
But when I used the laravel command on the command line, it show error:
sh.exe": laravel: command not found
I also added environment variable in the path variable.
~/.composer/vendor/bin
But still the same error occurs while using the laravel command.
I'm a laravel newbie and I'm stuck in laravel installation.I've searched lot of times but still could not get the solution. I've read lot of users' questions with the same problem and used their solutions but still could not fix this.
Your path /c/xampp/php:~/.composer/vendor/bin is definitly wrong. Either you have to fix it (should be something like C:/{path_to_your_composer_directory}) or you can simply use composer create-project laravel/laravel --prefer-dist to install a new laravel project.
I would go with the 2nd option, because you don't have to configure something else.
On windows system, please remove . from path (just before .Composer)
I've searched many answers to this problem, and a alternative solution to this project to still get what I try to achieve, but I want to know why it is not working the 'regular' way, and if it is possible to fix it somehow. I checked out this post where I found my alternative solution.
I installed laravel and I'm trying to create a project with laravel. However, when I run this command
composer create-project laravel/laravel cms
I get the following error: [InvalidArgumentException] - Composer could not find the config file
I followed all installation settings via a tutorial, created the composer enviroment variable, so those settings should be correct. Does somebody know why this is not working and how I might be able to fix this?
Edit: To clarify, as Joe commented, composer commands do work.
first, run the following command:
composer global require "laravel/installer=~1.1"
then, add ~/.composer/vendor/bin to your PATH. this way your system knows where the laravel installer is.
When this is done, you can simple use the following command to make a new project:
composer create-project laravel/laravel --prefer-dist
I had this problem myself since i was used to use composer to init a laravel project. However, after setting up this installer, i honestly love it. It has a bunch of neat options you can use ;-)
For more info, look here
After failing many times trying to get Mobile Detect to work I figured this would be easier: https://github.com/jenssegers/laravel-agent/
I followed the simple steps and it says the class can't be found. What did I miss?
Ok, so I started from scratch and used dump-autoload on both composer and artisan before adding the respective code to app/config/app.php and it worked.