چندمستأجری در عمل
Multitenancy in Practice
In this series, I'll show you how to build a single-database, multi-tenant application in Laravel. Together, we'll construct our application in such a way as to ensure that data from one tenant never leaks into the results for another tenant.
قسمتهای دوره
Tenants (3)
محدوده سراسری مستأجر
14m 54sEnforce tenant data isolation with a Laravel global scope so users only see their tenant's records across all models.
از Stubها برای تنظیم شناسه مستأجر استفاده کنید
14m 11sAutomatically attach tenant IDs using Laravel 7 stubs, ensuring every model saves with the correct tenant for reliable multi-tenant data.
بازنویسی به یک تریت BelongsToTenant
11m 48sRefactor tenancy logic into a reusable BelongsToTenant trait: write tests, clean up your Model stub, and simplify multi-tenant code.
Create the UI (2)
از TailwindUI برای صفحات عمومی استفاده کنید
14m 32sBuild elegant public pages fast with Tailwind UI and Alpine.js—no designer needed. Learn to implement ready-made components and interactive behaviors.
از Livewire با کامپوننتهای Blade استفاده کنید
14m 52sBuild reusable Blade components with Livewire: extract a text input component and use whereStartsWith to handle wire:model modifiers.
Amazon S3 Uploads (2)
آپلود فایل با Livewire به Amazon S3
16m 47sBuild S3 image uploads with Livewire: create a bucket, connect it, and add secure, seamless file uploads to your app.
آپلودهای خصوصی S3 با احراز هویت
17m 50sSecure private S3 uploads: learn how to restrict files to authorized users and stream approved files to the browser safely.
Super Admin Dashboard (2)
جعل هویت کاربر
18m 45sBuild a super-admin dashboard to list and impersonate users across tenants, simplifying support in multi-tenant applications.
نمودارهای تعاملی
18m 5sCreate interactive data visualizations using Laravel Charts to enhance your super admin and tenant dashboards. Learn to build insightful, dynamic charts with ease!




