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\Traits; | |
use Illuminate\Support\Str; | |
use Spatie\Translatable\Events\TranslationHasBeenSetEvent; | |
use Spatie\Translatable\HasTranslations as baseHasTranslations; | |
trait HasTranslations | |
{ |
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\Filament\Traits; | |
use Filament\Resources\Pages\Concerns\HasActiveLocaleSwitcher; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Support\Arr; | |
trait PageTranslatable | |
{ |
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\Rules; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Contracts\Validation\Rule; | |
class UniqueJsonRule implements Rule | |
{ | |
protected ?string $ignoreColumn = null; |
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\Filament\Traits; | |
use Filament\Tables; | |
use Filament\Pages\Actions\Modal; | |
use Illuminate\Database\Eloquent\Model; | |
use Filament\Pages\Actions\ButtonAction; | |
use Filament\Resources\Pages\Concerns\HasActiveFormLocaleSelect; |
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
/*! | |
* Pikaday | |
* | |
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday | |
* Copyright © 2020 Mohamed Sabil | BSD & MIT license | https://github.com/mohamedsabil83 | |
*/ | |
(function (root, factory) | |
{ | |
'use strict'; |