nasrulhazim
2/18/2018 - 12:43 PM

Laravel: Datatable User View with Datatable Blade Component

Laravel: Datatable User View with Datatable Blade Component

@extends('layouts.app')

@section('content')
	@component('components.datatable', [
        'table_id' => 'user-datatable',
        'route_name' => 'datatable.user',
        'columns' => [
                ['data' => 'name', 'name' => 'name', 'header' => 'Name'],
                ['data' => 'email', 'name' => 'email', 'header' => 'E-mail.'],
            ]
        ])
    @endcomponent
@endsection