mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
- Invoice sorting refactored
- Frontend build
This commit is contained in:
@@ -20,7 +20,7 @@ class ClientController extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$clients = Client::sortable()
|
||||
$clients = Client::sortable(['created_at', 'DESC'])
|
||||
->whereUserId(Auth::id())
|
||||
->get();
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ class InvoiceController extends Controller
|
||||
*/
|
||||
public function get_all_regular_invoices()
|
||||
{
|
||||
$invoices = Invoice::sortable()
|
||||
$invoices = Invoice::sortable(['created_at', 'DESC'])
|
||||
->whereUserId(Auth::id())
|
||||
->whereInvoiceType('regular-invoice')
|
||||
->get();
|
||||
@@ -43,7 +43,7 @@ class InvoiceController extends Controller
|
||||
*/
|
||||
public function get_all_advance_invoices()
|
||||
{
|
||||
$invoices = Invoice::sortable()
|
||||
$invoices = Invoice::sortable(['created_at', 'DESC'])
|
||||
->whereUserId(Auth::id())
|
||||
->whereInvoiceType('advance-invoice')
|
||||
->get();
|
||||
|
||||
Reference in New Issue
Block a user