0👍
Okay I made an alternative way to make it work without the <script>
User Model
protected $with = ['roles', 'permissions'];
API
Route::get('user', function (Request $request) {
return $request->user();
});
- [Vuejs]-How to display cart items in popup in Vue js?
- [Vuejs]-Switch environment files in vue with docker compose
Source:stackexchange.com