install laravel version 5.8 via composer code example Example: install laravel composer create-project --prefer-dist laravel/laravel blog "6.*"