How-to's Setup Laravel web tinker
1. Install the spatie/laravel-web-tinker package as a development dependency
  1. composer require spatie/laravel-web-tinker --dev
2. Run the following command to publish the assets
  1. php artisan web-tinker:install
Publishing Web Tinker Assets...
Web tinker installed successfully.
3. To modify the default settings, publish the configuration file
  1. php artisan vendor:publish --provider="Spatie\WebTinker\WebTinkerServiceProvider" --tag="config"
 INFO  Publishing [config] assets.

Copying file [vendor/spatie/laravel-web-tinker/config/web-tinker.php] to [config/web-tinker.php] ........................ DONE
4. To modify the default Tinker interface, publish the view file
  1. php artisan vendor:publish --provider="Spatie\WebTinker\WebTinkerServiceProvider" --tag="views"
 INFO  Publishing [views] assets.

Copying directory [vendor/spatie/laravel-web-tinker/resources/views] to [resources/views/vendor/web-tinker] ............. DONE
5. Navigate to http://localhost/tinker and you should see the Tinker page