Snippets

Impersonating users in Laravel

Playing
Impersonating users in Laravel
14 mins6 years ago

Allowing admins to sign in as other users is simple, but let's look at a more flexible and UX friendly solution.

Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Comments

No comments, yet. Be the first to leave a comment.

Suggested courses

Laravel

Build a Referral System with Laravel

Let's build a feature complete Laravel referral system, completely from scratch. We’ll cover generating referral codes, setting a cookie to track the referral process, hooking up referrals to subscriptions and displaying detailed referral stats in a dashboard, so your users can see how they're doing. On the admin side, we'll set up a job to automatically generate a CSV with all the amounts you need to pay out each month, automatically mark referrals as paid, and display historical referral payments for users.

24 episodes
2 hrs 39 mins
Laravel

Build a File Marketplace with Laravel

Build a marketplace where sellers can list and sell files, while we take a cut of each sale using Stripe Connect. We'll cover onboarding users with Stripe Connect, creating products and uploading files, payments, and delivering purchased files to your customers. Here's everything we'll cover: - The Stripe Connect onboarding flow - Effortlessly creating products (and uploading files) with Livewire forms - Subdomains for your user's marketplace - Stripe Checkout for a beautiful, secure payment flow - Securely delivering files with Signed URLs in Laravel - Showing sales stats on a dashboard

34 episodes
3 hrs 32 mins
Laravel

Passwordless Authentication with Laravel

Say goodbye to the traditional email/password flow and implement passwordless authentication with Laravel! In this course, we'll cover sending a secure link via email to allow users to sign in seamlessly. Oh, and we'll cover the entire registration process too. Use it on its own, or combine it with the standard email/password flow to give your users even more flexibility.

10 episodes
58 mins
Laravel

Liking Things in Laravel with Redis

Let’s skip the database and build the ability to like any model in Laravel, using Redis. Traditionally you’d reach for the database for this kind of thing, but as you load more models and start performing checks within relationships — things begin to slow down. With a key-value store like Redis, tracking users who have liked comments (or anything) keeps everything ridiculously fast.

6 episodes
21 mins
Laravel

Custom User Subdomains in Laravel

Allow users to choose their own subdomain, and give them their own area of your application where only their details are shown. You'll be able to register multiple routes for user areas. Everything in this short course can be easily applied to your own applications where you need this functionality. We'll cover every step of the way, and some things to watch out for. Finally, we'll learn how to deploy this and configure nginx and DNS records so you're ready to go.

9 episodes
31 mins