How to show the Laravel version of a project?

If you want to show the Laravel version of a project, you can use the command:

$ php artisan --version
Laravel Framework 5.5.32

This command gets the version from a constant in a file placed in the vendor\laravel\framework\src\Illuminate\Foundation\Application.php file

class Application extends Container implements ApplicationContract, HttpKernelInterface
{
    /**
     * The Laravel framework version.
     *
     * @var string
     */
    const VERSION = '5.5.32';

Leave a Reply

Your email address will not be published. Required fields are marked *