Laravel requires you do do a POST request when logging out.
In order to do this you will need the csrf token and the logout url.
I would pass these 2 as props (in a blade template) :
Then you should add a hidden form to your template and add the appropriate logic:
Add
Add
Basically you will make the post request by calling the logout() method