Go to the root directory and use a terminal or console. Type the following code –
php artisan --version