Use Illuminate\Foundation\Application instance instead of relying on facade.

Signed-off-by: crynobone <crynobone@gmail.com>