check laravel version in controller code example Example: check laravel version php artisan --version