Laravel Custom Facade

Laravel 5: Making Custom facade

This is copied from here – just to make sure I have it, in case author decides to delete it.
STEP 1 – CREATE CLASS THAT WILL BE ACCESSED VIA FACADE

STEP 2 – CREATE SERVICE PROVIDER CLASS

STEP 3 – ADD REGISTER METHOD TO SERVICE PROVIDER CLASS

STEP 4 – CREATE FACADE CLASS

Create: App\Facades\MyApp.php

STEP 5 – ADD ALIAS AND SERVICE PROVIDER TO config/app.php

STEP 6 – TESTING