Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel yajra datatable Add Column with View

public function data()
    {
        return Datatables::of(Page::select('*'))
        ->addColumn('options', function ($page) {
                return (string) view('options', ['id' => $page->id]);
            })
        ->make(true);
    }
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #yajra #datatable #Add #Column #View
ADD COMMENT
Topic
Name
1+7 =