How to Auth::check() user on Laravel with API calls

前端 未结 4 767
[愿得一人]
[愿得一人] 2021-01-21 07:54

I\'m using VueJS in my front-end, so I have this API call somewhere in the front-end code:

let products = axios.get(\'api/products\');


4条回答
  •  北荒
    北荒 (楼主)
    2021-01-21 08:08

    Return the data via json and decode them in your frontend again. Maybe this helps?

提交回复
热议问题