This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use App\Filament\Resources\MilestoneResource; | |
| use App\Filament\Resources\TaskResource; | |
| use Filament\Navigation\NavigationBuilder; | |
| use Filament\Navigation\NavigationGroup; | |
| use Filament\Navigation\NavigationItem; | |
| use Filament\Panel; | |
| public function panel(Panel $panel): Panel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Models; | |
| use AshAllenDesign\FaviconFetcher\Facades\Favicon; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\HasMany; | |
| use Illuminate\Support\Facades\Storage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use AshAllenDesign\FaviconFetcher\Facades\Favicon; | |
| // Returns my twitter avatar | |
| Favicon::driver("unavatar-services") | |
| ->fetch("https://x.com/neverything"); | |
| // Returns my github profile avatar | |
| Favicon::driver("unavatar-services") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Providers; | |
| use App\FaviconFetcher\Drivers\UnavatarServices; | |
| use AshAllenDesign\FaviconFetcher\Facades\Favicon; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class User extends Authenticatable implements HasDefaultTenant // and more stuff like FilamentUser, HasTenants, ... | |
| { | |
| public function getDefaultTenant(Panel $panel): ?Model | |
| { | |
| return $this->currentTeam ?? $this->allTeams()->first(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function c() { | |
| return { | |
| collapsedGroups: [], | |
| isLoading: !1, | |
| selectedRecords: [], | |
| shouldCheckUniqueSelection: !0, | |
| lastChecked: null, // Add a variable to keep track of the last checked checkbox | |
| init: function () { | |
| this.$wire.$on("deselectAllTableRecords", () => this.deselectAllRecords()), | |
| this.$watch("selectedRecords", () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // namespace and more... | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| public function boot(): void | |
| { | |
| // Bind our implementation | |
| $this->app->bind( |