How to check which Laravel version of your app is using - Rocketeers

  [ Rocketeers ](/)   

[Login](https://rocketeersapp.com) 

 On this page

 Knowledge
---------

How to check which Laravel version of your app is using
=======================================================

### [\#Laravel](https://rocketee.rs/index.php/laravel)

Check which Laravel version your app is running on.

 Published by [Mark van Eijk](https://rocketee.rs/index.php/author/mark-van-eijk) on November 16, 2022 · 1 minute read

1. [Command Line using Artisan](#content-command-line-using-artisan)
2. [Command Line using Composer](#content-command-line-using-composer)
3. [Using the app() helper](#content-using-the-app-helper)

[\#](#content-command-line-using-artisan "Permalink")Command Line using Artisan
-------------------------------------------------------------------------------

If you want to know the exact version of your Laravel app, the easiest and fastest option is using the command line:

 ```
php artisan --version

# Example output: Laravel Framework 9.33.0

```

[\#](#content-command-line-using-composer "Permalink")Command Line using Composer
---------------------------------------------------------------------------------

It's also possible to determine the Laravel version using Composer, because Laravel is (or should be) installed using this package manager. Piping the JSON formatted output of Composer to `jq` makes the value directly accessible:

 ```
composer show laravel/framework --format json | jq '.versions'

# Example output: ["v9.33.0"]

```

[\#](#content-using-the-app-helper "Permalink")Using the `app()` helper
-----------------------------------------------------------------------

Within the application code, you can use the `app()` helper to discover the current Laravel version:

 ```
echo app()->version();

// Example output: 9.33.0

```

Using the helper, you could show the Laravel version in a Blade template to expose it in a development environment or when a admin needs to have some debug info:

 ```
{{ app()->version() }}

```

### Subscribe to our newsletter

Do you want to receive regular updates with fresh and exclusive content to learn more about web development, hosting, security and performance? Subscribe now!

  Fill in your email address to receive updates  Subscribe 

#### More in [\#Laravel](https://rocketee.rs/index.php/laravel)

- [How to use different PHP versions with Laravel Valet](https://rocketee.rs/index.php/different-php-versions-laravel-valet)
- [Disable cookies in Laravel](https://rocketee.rs/index.php/disable-cookies-in-laravel)
- [Logging in Laravel](https://rocketee.rs/index.php/laravel-logging)
- [Disable CSRF in Laravel](https://rocketee.rs/index.php/disable-csrf-in-laravel)
- [Creating an encrypted cookie value in Laravel](https://rocketee.rs/index.php/creating-an-encrypted-cookie-value-in-laravel)
- [Laravel Valet](https://rocketee.rs/index.php/laravel-valet)

 [View all 19 articles →](https://rocketee.rs/index.php/laravel)
