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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners