mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
Removed unused getProviders() function
Removed unused getProviders() function
This commit is contained in:
parent
09307828a1
commit
f7cdaeb342
@ -56,19 +56,4 @@ class ProvidersController extends Controller
|
||||
->with('success', 'Provider was deleted Successfully.');
|
||||
}
|
||||
|
||||
public function getProviders(Request $request)
|
||||
{
|
||||
if ($request->ajax()) {
|
||||
$data = Providers::latest()->get();
|
||||
$dt = Datatables::of($data)
|
||||
->addIndexColumn()
|
||||
->addColumn('action', function ($row) {
|
||||
$actionBtn = '<a href="javascript:void(0)" class="edit btn btn-success btn-sm">Edit</a> <a href="javascript:void(0)" class="delete btn btn-danger btn-sm">Delete</a>';
|
||||
return $actionBtn;
|
||||
})
|
||||
->rawColumns(['action'])
|
||||
->make(true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user