Skip to content

What Version of Laravel is This?

Apr 29, 2019 1 min read #composer #laravel #php

This post is more than 18 months old. Technology changes quickly, so some of this content may be out of date (but that's not always the case). Please verify any technical or programming information against the current release.

There are tons of ways to answer this question each with its own benefits. Let’s check out a few.

Artisan

php artisan
bash

The very first line of the output shows the version. Then it shows all the registered commands. Need only the version? Use -V or --version when running the command.

Composer

composer show | grep laravel/framework
bash

This will search the output of all installed packages and only show the Laravel framework.

composer show -- laravel/framework
bash

This will show the version and a bunch of additional information like license, description and dependencies.

Looking for more Laravel Tips & Tricks? Join Joel and I on the No Compromises bi-weekly podcast; around 15 minutes of thoughtful real-world advice and helpful info.