command to find the latest version of laravel code example
Example 1: check laravel version
php artisan --version
Example 2: how to check laravel version in cmd
$php artisan --version
php artisan --version
$php artisan --version