Check out example codes for "composer require misterphilip/maintenance-mode". It will help you in understanding the concepts better.

Code Example 1

$ php artisan vendor:publish --provider="MisterPhilip\MaintenanceMode\MaintenanceModeServiceProvider" --tag="config"

Learn ReactJs, React Native from akashmittal.com