Source: juststeveking.uk

Reaching for Facades
Facades, people seem to love them or hate them. Laravel Facades, however, aren’t strictly facades; are they?

When I first started with Laravel, I hated it, and after three years of using Larvel - I finally started to accept it.

One of the things I hated for a time was Facades.

declare(strict_types=1); namespace SendStack\Laravel\Facades; use Illuminate\Support\Facades\Facade; use SendStack\Laravel\Contracts\ClientContract; use SendStack\Laravel\Http\Resources\SubscribersResource; use SendStack\Laravel\Http\Resources\TagResource; /** * @method static SubscribersResource subscribers() * @method static TagResource tags() * @method static bool isActiveSubscriber(string $email) * * @see ClientContract */ class SendStack extends Facade { protected static function getFacadeAccessor() { return ClientContract::class; }}
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners