manojvarma
3 years ago
1055
4
Laravel

laravel subtracting 2 columns and showing the results

Posted 3 years ago by manojvarma

Hi have a table and in that i have 3 columns as "item, available,use". Now i want to subtract the column available with use and show all the results in the view. here is my controller code

    {
        $item = stationary::all();
        return view('pages.stationary-available', ['items' => $item]);
    }```

Please sign in or create an account to participate in this conversation.