In Laravel, tinker is a powerful REPL tool used to interact with the Laravel application using the command line in an interactive shell. It comes with the release version of 5.4, extracted in a separate package.
For installing Tinker, run the following command :
composer require laravel/tinker
For executing Tinker, execute the following command :