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
| // app.js | |
| document.addEventListener("alpine:init", () => { | |
| Alpine.directive("wire-model-select2", (el, { expression }, { evaluate, cleanup }) => { | |
| const property = expression; | |
| $(el).select2(); | |
| const changeHandler = () => { | |
| const livewireComponent = Livewire.find(el.closest('[wire\\:id]').getAttribute('wire:id')); |
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 Livewire\Attributes\Computed; | |
| use Livewire\Volt\Component; | |
| use Spatie\MediaLibrary\MediaCollections\Models\Media; | |
| new class extends Component { | |
| #[Computed] | |
| public function medias() |
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\Models\User; | |
| use Livewire\Attributes\Renderless; | |
| use Livewire\Volt\Component; | |
| new class extends Component { | |
| #[Renderless] | |
| public function loadMore($skip = 0): void |
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
| .unreset { | |
| a { | |
| @apply text-blue-700 underline; | |
| } | |
| p { | |
| @apply my-4; | |
| } | |
| blockquote, | |
| figure { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Screen Recording && Downloading .webm</title> | |
| <meta charset="UTF-8" /> | |
| <style> | |
| body { | |
| text-align: center; | |
| } |