![Andrew Schmelyun](/img/default-banner.jpg)
- 80
- 3 642 192
Andrew Schmelyun
United States
Приєднався 2 тра 2011
Practical and accessible web development tutorials using PHP and JavaScript!
Go ahead, roll your own auth
Authentication doesn't have to be complicated or terrifying. It's a broad statement, but if you reach for a modern and maintained backend framework, you're in pretty safe hands. You don't need to reach (or pay) for third-party platforms just for some basic user authentication.
In this video, with the help of a backend framework (in this case, Laravel) and a couple open-source packages, you can have a full user authentication and management platform up and running in minutes.
From here you can keep it lightweight and have just a thin API which handles user sign-ins and registration, or you can expand on it and add a full user management dashboard or even tie pieces of your data to this. It is a backend framework after all! What do you think?
Of course this isn't without downsides, you'll have to maintain the software (and hardware, depending on your deployment) that you put out in the world. However, ownership over your user's data and no surprise pricing or tier changes can be pretty great.
Interested in learning how to build real-world practical apps with Laravel and PHP? Check out my latest course at selfmadesaas.com!
Some helpful links:
laravel.com
devdojo.com/auth
github.com/laravel/sanctum
- 0:00 Intro
- 0:55 Security risks
- 2:08 Complex or complicated
- 5:16 Expensive to run
- 7:28 What are the downsides?
- 8:32 Wrapping Up
Send me new video ideas and vote on what's coming next: suggest.gg/aschmelyun
Follow me on Twitter! aschmelyun
Join my newsletter, where I send out new information about twice a month in the PHP, JavaScript, and Docker realms: aschmelyun.substack.com
In this video, with the help of a backend framework (in this case, Laravel) and a couple open-source packages, you can have a full user authentication and management platform up and running in minutes.
From here you can keep it lightweight and have just a thin API which handles user sign-ins and registration, or you can expand on it and add a full user management dashboard or even tie pieces of your data to this. It is a backend framework after all! What do you think?
Of course this isn't without downsides, you'll have to maintain the software (and hardware, depending on your deployment) that you put out in the world. However, ownership over your user's data and no surprise pricing or tier changes can be pretty great.
Interested in learning how to build real-world practical apps with Laravel and PHP? Check out my latest course at selfmadesaas.com!
Some helpful links:
laravel.com
devdojo.com/auth
github.com/laravel/sanctum
- 0:00 Intro
- 0:55 Security risks
- 2:08 Complex or complicated
- 5:16 Expensive to run
- 7:28 What are the downsides?
- 8:32 Wrapping Up
Send me new video ideas and vote on what's coming next: suggest.gg/aschmelyun
Follow me on Twitter! aschmelyun
Join my newsletter, where I send out new information about twice a month in the PHP, JavaScript, and Docker realms: aschmelyun.substack.com
Переглядів: 2 241
Відео
How I use AI as a software engineer
Переглядів 1,5 тис.Місяць тому
Sign up for alerts about new courses, practical tutorials, and helpful articles at aschmelyun.substack.com Once I started integrating AI tools into my day-to-day workflow, I noticed a pretty decent uptick in my overall productivity. It's not just coding, either! I use AI to troubleshoot complicated issues, or learn new languages and frameworks. In this video, I show you all of the ways that I'v...
You don't need a frontend framework
Переглядів 122 тис.3 місяці тому
Sometimes I feel that web development has gotten pretty complicated. Fairly straightforward applications are split apart with their frontends powered by behemoth frameworks like React, Next, or Nuxt. But, it doesn't have to be that way. In this video, I show how a basic backend framework (in this case, Laravel) with its templating language, can have full-stack applications built around the engi...
Serverless PHP is pretty good
Переглядів 7 тис.4 місяці тому
The serverless architecture and platforms like AWS Lambda have revolutionized the ease of hosting and maintaining web applications, but most lack support for PHP. In this video, I use a package called Bref, which helps scaffold out configurations for the serverless framework and provides a custom runtime in order to deploy PHP applications to AWS Lambda instances. The result? Zero-downtime depl...
Modern monoliths: SPA and API in a single codebase
Переглядів 4,6 тис.7 місяців тому
Inertia.js is a library that promises single page applications without needing a separate API. But how accurate is that statement? In this video, I go over the current landscape of fullstack apps, and what a modern example built with Laravel and Next.js looks like. Then, we take a peek at the same example using Inertia.js, dive into how it works, and get a feel for what the development experien...
Improving Tailwind by doing these 3 things
Переглядів 3 тис.10 місяців тому
Tailwind CSS is a utility-first library that's had some pretty extreme opinions since it was initially released over 5 years ago. In this video, I give a basic overview of what Tailwind CSS is and how it can improve your productivity as a developer. I also talk about what pitfalls are commonly mentioned during discussions about Tailwind and how you can remedy those in your own applications. If ...
Let's create a filter table component in Vue
Переглядів 24 тис.11 місяців тому
A plain table element displaying your data in Vue is pretty boring, let's make it more dynamic! In this video, we'll use computed properties, events, fetch requests, and emits to build out a component that acts like a filter and search table with Vue 3 and the Composition API. By the end of the video, we'll be able to search through a data set with text, select based on radio button options, or...
Can we use Laravel as a Next.js alternative?
Переглядів 17 тис.11 місяців тому
Can we use Laravel as a Next.js alternative?
I built a pizza tracker with Laravel, React, and Inertia | Full Stack Tutorial
Переглядів 36 тис.Рік тому
I built a pizza tracker with Laravel, React, and Inertia | Full Stack Tutorial
When to use Traits, Interfaces, and Abstract Classes in PHP
Переглядів 20 тис.Рік тому
When to use Traits, Interfaces, and Abstract Classes in PHP
A few different ways to seed databases in Laravel
Переглядів 3,8 тис.Рік тому
A few different ways to seed databases in Laravel
Deploy Laravel applications fast and cheap
Переглядів 24 тис.Рік тому
Deploy Laravel applications fast and cheap
Saloon - A PHP package to simplify API integrations
Переглядів 9 тис.Рік тому
Saloon - A PHP package to simplify API integrations
Build A Ride Share App: Full Stack Tutorial with Laravel and Vue
Переглядів 70 тис.Рік тому
Build A Ride Share App: Full Stack Tutorial with Laravel and Vue
Using single action controllers in Laravel
Переглядів 9 тис.Рік тому
Using single action controllers in Laravel
Manage multiple sites with Docker Compose and Traefik
Переглядів 47 тис.Рік тому
Manage multiple sites with Docker Compose and Traefik
Laravel Passport vs Sanctum: What's the difference?
Переглядів 16 тис.Рік тому
Laravel Passport vs Sanctum: What's the difference?
Using Docker Containers with GitHub Actions
Переглядів 37 тис.Рік тому
Using Docker Containers with GitHub Actions
I built r/place with PHP and JavaScript in one hour
Переглядів 9 тис.2 роки тому
I built r/place with PHP and JavaScript in one hour
Converting a Vue component to the Composition API
Переглядів 6 тис.2 роки тому
Converting a Vue component to the Composition API
Get started with Laravel events and listeners
Переглядів 19 тис.2 роки тому
Get started with Laravel events and listeners
Building a job board in Laravel [Pt. 1] - Models + Migrations
Переглядів 22 тис.3 роки тому
Building a job board in Laravel [Pt. 1] - Models Migrations
Building a job board in Laravel [Pt. 6] - Purchase A Listing
Переглядів 5 тис.3 роки тому
Building a job board in Laravel [Pt. 6] - Purchase A Listing
Building a job board in Laravel [Pt. 2] - Database Seeding
Переглядів 6 тис.3 роки тому
Building a job board in Laravel [Pt. 2] - Database Seeding
Building a job board in Laravel [Pt. 5] - The Listing Page
Переглядів 4,1 тис.3 роки тому
Building a job board in Laravel [Pt. 5] - The Listing Page
Building a job board in Laravel [Pt. 4] - The Front Page
Переглядів 6 тис.3 роки тому
Building a job board in Laravel [Pt. 4] - The Front Page
Building a job board in Laravel [Pt. 3] - Install Dependencies
Переглядів 4,6 тис.3 роки тому
Building a job board in Laravel [Pt. 3] - Install Dependencies
Thank you. But If I can make à comment. Write code without any test in 2024 :-(
I use an HTMX-like library that is smaller that I created and use it to create offline-first web applications (PWAs). It's worked out pretty well for me and is pretty fast and straight forward to get apps going.
I'm gonna be honest, Auth from scratch really isn't that hard.
Incredible explanation. Sub
People who said php would be dead in 2010 are actually dead now.
Why Twilio? I can't even do anything with it with a trial account.
Great video, thank you so much. I have been putting off looking into reverse proxies for a while because I was afraid it would be a daunting task; this made it very approachable.
What about the advantages of reactive programming when working with user interfaces?
Are you really “rolling your own” if you’re using a batteries included framework? Don’t get me wrong, I do not ever want to build an app that has my user data separated at a 3rd party. One where I have to depend on webhooks to keep it in sync
Respect. Hiesenberg
sir, I would like to learn your the frontend codebase. would you like to share your codebase, sir?
"oh you know auth?" "list 10 auth libraries 🔫"
Thank you Andrew! That is indeed my stack of choice. You also have JS package that wrap the sanctum call directly in your front end app so the login screens are indeed managed by next or whatever you are using. I would say that the main downside is security. You touched on the maintenance which is linked to that but you also need to make sure that your VPS is well secured. You can always use Cloud applications platforms like Heroku, Render or Upsun to mitigate this.
100% to all your points. Forgot to touch on security of the actual server itself but yeah that's probably one of the biggest things to consider going this path!
Only newbies with zero work experience argue about languages and frameworks.
Nice 👍
Uhh, why do you need to run it asynchronously? It's already faster synchronously. Different tools for different needs.
Thank you sir
What streaming software are you using for this?
I only need them because they're in job specs 😂😂
const sum = items.reduce((acc,{price}) => acc + price,0)
everything slow before optimization
Me ex Java-JSP dev see the title ha ha ha yeah sure
60s of misconceptions about docker
"That takes up a lot of hard drive space" ?!😔 That would be the least of your concerns if any at all
php is not slow. php is UGLY. that's the problem.
0% Lube, 0% foam, 100% mechanical❤
Great project! Please share more details about the code and the smart plug that you are using. I would like to turn this one into a humidistat (humidity controller).
should i start learning php or continue with js ?
I rarely comment on a video, but u just earned a new subscriber, very good content
Awesome. Just what I needed! Very clear explanations. 👌 Any ETA on the "v-model" refactoring video? And do you have this code in a repository somewhere?
0:05 inaudible - disliked yeah, it's inaudible even with earphones. disliked 3 times. 0:43 the video is otherwise nice.
Excellent Video, thanks a lot!
As you already stated that "you can absolutely write things down" but instead got a thermal printer - as did I. But i can't configure CUPS with Munbyn Thermal Printer ITPP098, mostly it "thinks" it's a full, color, printer and that's not the case. I got the correct ppd file from the manufacturer but still - life is boring and sad! Most thankful for any help.
I also don't use any front-end frameworks. Plain old javascript fetching and posting data (not HTML) from a server-side REST API seems to work great, as far as I can tell. I find it much simpler to keep all my "look-and-feel" stuff in static html/js/css files, and my server-side just passes data back and forth from the database (or other data source) with security. If I want to make a change in the way things look, i can just edit my static front-end files, and my server-side doesn't need to know or care.
Great video. Thanks for creating this content. Very well explained
Php got swooled 💪
You should definitely make a course man
😂😂😂
Haha
😂😂 didn't expect this, looks great tho
😂
quick, to the point in the beginning for fast understanding, more detailed section for each point, best tutorial ever, sub this man rn
Was stuck deploying a laravel app on cpanel for 2 days...with your solution did it within 10mins. Thanks
Storage::disk('s3')->setVisibility($filePath, 'public'); returns with false
in the bucket permissions under "Object Ownership" enable acl
Impossible! How did you exit from vim?!
C is compiled, and rust:)
If you utilize opcache its not slow, however you should have a split environment anyway. php on back, js spa on front. have the back manipulate the index for seo and stuff
Amazing video Andrew ! Thanks for sharing
You: why do we call them pointers? PHP: cause you place your pointer finger on the screen if you want to count them $
That font just threw me off lmfaooo wtf