[Vuejs]-Limit User See Only Their Data [ Laravel ]

0👍

You will need to have a user_id in your expenses table then in your controller you do this

Expense::where('user_id', Auth::id())->with('user')->get();

Edit:
However you may want to check laravel’s Global scope or Local scope

Leave a comment