Skip to content

Instantly share code, notes, and snippets.

@nukedbit
Created May 18, 2021 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nukedbit/ecd375d6aad77a26e72147837420eaa0 to your computer and use it in GitHub Desktop.
Save nukedbit/ecd375d6aad77a26e72147837420eaa0 to your computer and use it in GitHub Desktop.
Users List Example Livewire
<div>
<x-slot name="header">
<div class="md:flex md:items-center md:justify-between md:space-x-5">
<div class="flex items-start space-x-5">
<div class="flex-shrink-0">
<div class="relative">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Users') }}
</h2>
</div>
</div>
</div>
</div>
</x-slot>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-xl sm:rounded-lg">
<livewire:datatable
searchable="name,email"
model="App\Models\User"
include="id, name, email, created_at"
dates="created_at"
/>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment