Just update your laravel/framework dependency to 5.7.* in your composer.json file. Since you are upgrading from 5.4 to 5.7, then you can easily just run
composer update
And if you modified some of Laravel's Traits or Methods in your 5.4 application, then you can check here for more info