mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 08:32:14 +00:00
Invoice & Clients sorting
This commit is contained in:
@@ -20,8 +20,12 @@ class ClientController extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$clients = Client::sortable()
|
||||
->whereUserId(Auth::id())
|
||||
->get();
|
||||
|
||||
return response(
|
||||
new OasisViewClientCollection(Auth::user()->clients),
|
||||
new OasisViewClientCollection($clients),
|
||||
200
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user