App\Http\Controllers\ExpenseApiController::index PHP Method

index() public method

public index ( )
    public function index()
    {
        $expenses = Expense::scope()->withTrashed()->with('client', 'invoice', 'vendor', 'expense_category')->orderBy('created_at', 'desc');
        return $this->listResponse($expenses);
    }