It depends on your server. If you hava full access to server (such as vps or even dedicated), it's good to install composer there and do laravel installation use Composer
, allow you to easily manage your project later. Otherwise, yes, you have to copy all files including vendor
directory to your server.
Note, if you're going to deploying to shared server which you have no full access to, you probably want to create fresh laravel installation (production version of your project) with --prefer-dist
and --no-dev
locally first. It'll reduce application file size.