Livewire Datatable with Selectable Columns 👨‍💻 [BEGINNER TUTORIAL]

preview_player
Показать описание
In this video I build a Livewire datatable with selectable rows from scratch. I start by creating a new Laravel 8 project, and use modern PHP syntax to build a seeder, a route and a Livewire component that allows for bulk deleting user records.

Рекомендации по теме
Комментарии
Автор

Absolutely fantastic tutorial. One of the best livewire I’ve seen. Thanks

gdogmalone
Автор

Wow! Very good quality!
So much easier to learn when done the right way!

degagnemarc
Автор

very useful, don't stop livewire tutorials

taranemmolla
Автор

Thanks! Go on with the works. Your tutos are really good

maxxnetic
Автор

very nice, please we need more videos for livewire

jasonalbert
Автор

thats work amazing, , , gratefully thanks verry much

faizag
Автор

Very good video friend, to save the procedure would be very similar

juanracornejo
Автор

Would be cool to see you inline edit and update a table record. Toggle labels for inputs, cancel or persist updates to individual record. Been trying to do this myself having issue with toggling value by ID more than once as old request is not cleared by setting null or ‘ ‘

ryansampson
Автор

You are great brother 💞, great video 👍

ARSHADKHAN-hcpb
Автор

Thanks for the amazing video as always

Samuel.Mwangi
Автор

Can you make a video on adding a CRUD system to work with the table action column? Appreciate the videos!

glaudston
Автор

Can Can I do something like find out records between 1-31 December using From to in separate columns when I click search button it will give me results with Livewire

tanzimibthesam
Автор

What if i want to return data in mounted function means i want to return all data in mounted function.

NotBeHaris
Автор

For anybody wondering if they can use another layout file instead of "app.blade.php" you can add this to your render() and it will work: ->layout('layouts.base'); either that or going into and 'layout' => 'app.other_default_layout' I was stuck in this part, I shall now continue with the tutorial! :-)

warpig
Автор

can you make also check all option and delete..

neerajsinghtangariya
Автор

Nice tutorial. But one question how you can do select all?

jeroenguppy
Автор

Please make advance tutorial on laravel livewire please

ARSHADKHAN-hcpb
Автор

Hello David. First, many thanks for your video. Its helped me a lot for learn livewire.
I have a question: I have a Many to Many relationship with Roles. ( role_user table ).
If i use only laravel in a blade view, i can fetch easy the roles.
@foreach($users as $user)
@foreach($user->roles as $role)
{{ $role->name }}
@endforeach
@endforeach
That works fine! But now i like use the select box in the livewire datatable, and it will not work. Do you have a idea? I dont know why. Here is my code function:

public static function search($search)
{
return empty($search) ? static::query()
: static::query()
->whereHas('roles', function ($query) use ($search) {
$query->where('name', 'like', '%'.$search.'%');
})
->orWhere('id', 'like', '%'.$search.'%')
->orWhere('name', 'like', '%'.$search.'%');


}

mori
Автор

Hi
Question, what if I have thousands of rows??

how it will be using livewire?

Paltibenlaish
Автор

11:08 Use scopes, dude. I use a BaseModel or a global trait to re-use heavily used scopes. There is no reason to use static method over a scope in my experience.

hurleyd