Skip to content

Instantly share code, notes, and snippets.

View amiranagram's full-sized avatar
🤖
trying to pass the Turing test

Amir Rami amiranagram

🤖
trying to pass the Turing test
View GitHub Profile
@amiranagram
amiranagram / select2.blade.php
Created June 29, 2021 13:51
Select2 multiple - Livewire/Alpine
<div
x-data="{
model: @entangle($attributes->wire('model')),
}"
x-init="
select2 = $($refs.select)
.not('.select2-hidden-accessible')
.select2({
theme: 'bootstrap',
dropdownAutoWidth: true,
# This workflow will do a clean installation of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build assets
on: [pull_request]
jobs:
build: