I'm a newbie laravel.
Currently, Laravel had released version 5.6, but my version is 5.5.32.
And some reason, I only want to updating to 5.5.39 from 5.5.32 and do not upgrade 5.6.
I run "composer update", I see a error message.
So pls help me.
Thank you
If you want to update laravel framework to a specific version than you can easily do it as follows:-
Go to your composer.json file
There you will see in the "require" section as follows "laravel/framework": "5.5.32.*"
you just need to change it to "laravel/framework": "5.5.39.*"
save the composer.json and run composer update.
That's it. composer will read require from composer.json and update your packages likewise.
Hope this helps.
Related
I'm beginner in Laravel framework. I want to know if I'm using Laravel 5? or the number of Laravel I'm using. Thank you!
EDIT: I'm using windows platform
Two ways:
In your laravel home directory, type:
php artisan --version
Or you can check in this file:
vendor\laravel\framework\src\Illuminate\Foundation\Application.php
where you will see something like:
const VERSION = 'x.x.xx';
Taken from here.
You can see the version of your Laravel installation in composer.json. Take a look at it and search for this line:
"laravel/framework": "5.2.*",
You can also do
php artisan --version
from your terminal / dos prompt
Take a look at the Laravel release notes for more information about the Laravel versions: https://laravel.com/docs/5.2/releases
With command Prompt
php artisan --version
or
Go to composer.json
you will find "laravel/framework": "5.5.*", something like this
I need help with a problem.
I'm learning Laravel 5.
And I've found a problem trying to do something.
I tried to install Laravel Collection.
I go to composer.json and I add this line on require:
"laravelcollective/html": "5.1.*"
But when I execute composer update on shell, I have an error:
Your requirements could not be resolved to an installable set of packages.
And a lot of posibles conclusions to the problem.
I put a screenshot to help you to understand.
Actually, the error messages are clear. You are trying to install a package that has a dependency of laravel componenents with a version of 5.1, but in your composer.json file, you imply that your project works with laravel 5.0. Either change the laravelcollective/html version to 5.0.* or change and upgrade your laravel dependency as 5.1.* so that your problem will be solved.
i figured out too late that way generators version 3 package is not compatible with laravel version 4.2 it only work with laravel 5, now i need to switch to a previous version of the package and i do not know how to do it properly as my laravel project is in the half way.
Thank you so much for any further help
Update your composer.json file to use "way/generators": "~2.0". Once that is done, run the following command:
composer update "way/generators" --dev
By providing the package name to the composer command, composer will only update the specified package.
I am following the instruction of the link
https://github.com/Zizaco/entrust
I have written "zizaco/entrust": "dev-master" in require section of composer.json and then update it on command prompt by the command php composer.json update.
I have also run the command php composer.json dump-autoload.
It gets updated.
I have added the provider and alias line in app.php and in Auth.php model and table is also set as 'users'.
But when I run the command php artisan entrust:migration
It shows me the error as follows
Please help me as I need to work on it fast.
Kindly let me know what and where is the problem.
Help is appreciated.
I had a similar problem where by each time I run 'composer update' the packages I needed where not included as I expected. So as my solution, each time I want to start a project in laravel 4, I first edit my composer.json file before running 'composer install'. Since then I do not have such embarrassment again.
I tried to install Sentry 2 with composer. I used the composer manuel from the sentry site,
but i got always a serviceprovider exception:
"Class 'Cartalyst\Sentry\SentryServiceProvider' not found"
Is there an another way or i did something wrong?
If you look closely on the [Sentry website installer instructions for laravel 4],
step one states that you need to add "cartalyst/sentry": "2.0.*" to your composer.json,
but it also specifically states that it requires you to run php composer.phar update from the command line
Note that you should run php composer.phar update BEFORE you add the entries for the app/config/app.php (before proceeding to steps 2 and above)
#Todd Isaacs's answer would also lead you to the required result but you do not need to go back to the beggining, all you have to do is revert the changes on your app/config/app.php file and run the update.
hope that helps.
I found the solution. SSL is necessary for composer update and now all works fine.
So I checked the php ini and set ssl on.
I just got this same error and being totally new at Laravel I decided to step back, here is what I did to resolve it.
removed the entries I added to my composer.json and app.php (I think app.php was the issue)
run composer update (yep worked this time)
added "cartalyst/sentry": "2.0.*" to my composer.json
run composer update (sentry was installed)
added 'Cartalyst\Sentry\SentryServiceProvider' and 'Sentry' => 'Cartalyst\Sentry\Facades\Laravel\Sentry' to my app.php
run composer update (still works)
When I originally installed Sentry I added the 'Cartalyst\Sentry\SentryServiceProvider' to the app.php before running the update and I think this was the issue. ( install instructions )
For Sentry 3, change the service provider in app/config/app.php to:
'Cartalyst\Sentry\Laravel\SentryServiceProvider',