---
title: "Discussion on \"Custom authentication guard in Laravel Sanctum\" | Hashnode"
description: "Discussion on \"Custom authentication guard in Laravel Sanctum\". How to specify auth guard when using multiple guards with Sanctum"
url: "https://hashnode.com/posts/custom-authentication-guard-in-laravel-sanctum/62431a472d728ed85fffd64a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Custom authentication guard in Laravel Sanctum](https://blog.freshbits.in/custom-authentication-guard-in-laravel-sanctum?utm_source=hashnode&utm_medium=feed)

How to specify auth guard when using multiple guards with Sanctum

Mar 29, 2022 · 3 min read · blog.freshbits.in  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#authentication](https://hashnode.com/tag/authentication)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

[Freshbits Web Solutions](https://hashnode.com/@freshbitsweb)

@freshbitsweb · India

  
[View profile](https://hashnode.com/@freshbitsweb)

Elegant Web apps and Powerful backend systems for the leading companies of the age

Looking for more users to your website? Or more sales? Our custom digital solutions can help you grow your business. If you are looking for a team that can quickly craft a working solution for your next venture; Or if your existing solution is not matching with the standards of your business, let us discuss .

## Responses 1

Markdown supported · ⌘↵ to post

[Lauren Rodriguez](https://hashnode.com/@Lauren123)

[Jun 30, 2023](https://hashnode.com/posts/custom-authentication-guard-in-laravel-sanctum/62431a472d728ed85fffd64a/comment/649ec65a5b8c3caad1788afe)

I have read your blog on the best practices for mobile optimization in eCommerce website development. It was very interesting and helpful but I can add some extra points in your article. Here some extra points: 1.Setup the Database. Go to your Laravel application on the Cloudways server. 2.Setup the Routes. your-project-root-directory/routes/web.php. 3.Make the Controllers.These are some extra points to add to your article. Readers if you are confused about your web and App development , you can get a free consultation at Alakmalak technologies.Visit our site for more information.
