Laravel Sanctum Tokens: Customizing Expiration Time for Your API Authentication #laravel #shorts

Subscribers:
64,200
Published on ● Video Link: https://www.youtube.com/watch?v=lOda9OqCsZg



Category:
Tutorial
Duration: 0:40
1,624 views
119


In this tutorial, we'll be exploring how to easily customize token expiration in Laravel Sanctum. If you're using Laravel Sanctum for API authentication, you might want to adjust the expiration time of the tokens. We'll walk through the steps to do just that! We'll start by exploring the sanctum.php configuration file, then jump into the stateful middleware array, and finally change the value of the expiration key to the desired time (in minutes). With just a few simple changes, you'll be able to set your tokens to expire after the specified amount of time.

📚 New Udemy Course
If you're looking to level up your Laravel skills? My new course "Mastering Laravel 10 Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: https://www.udemy.com/course/mastering-laravel-10-query-builder-eloquent-relationships/?referralCode=C784C3DB5B8925207FCB

📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews, or a coaching session for Laravel: https://calendly.com/codewithdary

💌 Newsletter
Sign up for my free weekly email newsletter: https://newsletter.codewithdary.com/

🔥 Resources
- Twitter: https://twitter.com/codewithdary
- Instagram: https://www.instagram.com/codewithdary/
- Blog: https://blog.codewithdary.com/
- Patreon: https://www.patreon.com/user?u=30307830
- GitHub: https://github.com/codewithdary
- TikTok: https://www.tiktok.com/@codewithdary

#laravel #shorts #codewithday




Other Videos By Code With Dary


2023-04-26The EASIEST Method to Convert a String to Camel Case in Laravel #laravel #shorts
2023-04-25The EASIEST Method to Convert a String to Camel Case in Laravel #laravel #shorts
2023-04-24How to Use The whereIn() and whereNotIn() Laravel Methods - Mastering Eloquent & Collection Methods
2023-04-24The Simplest Way to Generate SEO-Friendly Slugs in Laravel #laravel #shorts
2023-04-21Encrypting Laravel Sessions is EXTREMELY Easy #laravel #shorts
2023-04-21The where(), whereStrict() And whereBetween() Methods - Mastering Eloquent & Collection Methods
2023-04-20Can You Customize The API Prefix For API Routes in Laravel?! #laravel #shorts
2023-04-19Make Working With Numbers in Collections EXTREMELY Easy - Mastering Eloquent & Collection Methods
2023-04-18Does Laravel Have a Global Method to Retrieve The URL?! #laravel #shorts
2023-04-17Introduction to Collections & Project Setup - Mastering Eloquent & Collection Methods
2023-04-17Laravel Sanctum Tokens: Customizing Expiration Time for Your API Authentication #laravel #shorts
2023-04-14Boost Your Query Speed in Laravel with This One Simple Trick #laravel #shorts
2023-04-14What is The Difference Between the find() and findOrFail() Methods in Laravel?
2023-04-13How to Optimize Data Retrieval in Laravel With withCount() #laravel #shorts
2023-04-12How to Use The One to One Polymorphic Relationship in Laravel - Advanced Laravel Relationships
2023-04-11Is This a Hidden Laravel Date Filter Method?! #laravel #shorts
2023-04-10How to Define Default Attributes in Your Laravel Model #laravel #shorts
2023-04-10I Have Just Released My 7.5-hour Laravel 10 Course On Databases, Query Builder & Eloquent
2023-03-17Sorting Arrays is SUPER Easy in PHP Using These Two Methods - sort() and rsort() Explained #shorts
2023-03-163 Simple Ways to Sort Collections By Keys in Laravel #laravel #php
2023-03-158 Common Mistakes Made by Laravel Developers And How to Fix Them [w/ Examples]



Tags:
everything you need to learn about laravel sanctum
laravel sanctum tutorial
laravel rest api with sanctum authentication
laravel 10 api tutorial
laravel 10 api
laravel sanctum authentication
how to make an api in laravel
sanctum api
Laravel Sanctum Full Tutorial
how to build api in laravel 10
laravel sanctum
learn laravel 10
laravel rest api
laravel 10 api crud tutorial
laravel api crud
laravel authentication 10
learn laravel