Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

screwtape_mk's avatar

Checking laravel version in a shared hosting server

Hey Guys

SO i commissioned a developer to upgrade a laravel version to the latest version on a shared hosting server

They claim to have done it, composer.json shows the latest version. Is there a way someone can fake update to a version? I am about to pay them but not sure how to be 100% they have performed the upgrade

0 likes
12 replies
Sinnbeck's avatar

If you have shell access just run php artisan

If not, you can add a dummy route to call this

Route::get('version', function () {
    dd(app()->version());
});

Call yourdomain.com/version

1 like
screwtape_mk's avatar

@Sinnbeck Is there any conceivable way in which this can return a the latest version when the upgrade never really took place (successfully)

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@screwtape_mk it would require manually changing the files in vendor. You can always run composer update to ensure they are up to date and not manually changed

1 like
automica's avatar

don't forget to pull your upgraded files back to local and add to a repository. Otherwise if you loose your server, you loose your site.

2 likes
jlrdw's avatar

@screwtape_mk what version was updated, from what to what. If it was a major update like a 7 to 8, you need to verify they also updated laravel not just the framework. Laravel is manually updated and the framework gets updated / upgraded via composer update.

1 like
martinbean's avatar

@screwtape_mk I think you just need to hire developers you trust instead of going to all this effort to verify they’ve done something.

It would take me more effort to “spoof” the version update than to just do the bloody version update.

2 likes
automica's avatar

I certainly wouldn't hire a developer to do an update on an external server. You need your code in version control and that will allow you monitor every line of code that is added to your codebase.

2 likes
Snapey's avatar

What level of developer would even contemplate upgrading a live server without first building an off-line version and committing changes to source control?

pay peanuts get monkeys ?

screwtape_mk's avatar

Hey Guys

Any suggestions of a text editor that help me identify differences between code bases / files down to line of code difference

Please or to participate in this conversation.