Datatable collection
Datatable collection
 yongpin            
            
                Posts: 1Questions: 1Answers: 0
yongpin            
            
                Posts: 1Questions: 1Answers: 0            
            Urgent !!!
$data = array(['name' => 'John Doe', 'email' => 'john@email.com'],
               ['name' => 'Robert Roe', 'email' => 'robert@email.com']);
$users = new Collection($data);
return Datatables::of($users)->make();
I'm using yajra/laravel-datatables plugin, it shows me collection function is available on v5.x and later, but after i installed v5.11.10 version, and tried above program, it show me "Class 'Collection' not found" error.
May I know how to solve it, or how to use this collection function.
Appreciate that if you could guide me how to solve it.
Thank you