sanctum
jetstream
Our great sponsors
sanctum | jetstream | |
---|---|---|
6 | 23 | |
2,678 | 3,885 | |
0.9% | 1.0% | |
7.5 | 8.7 | |
13 days ago | about 11 hours ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sanctum
-
Making the case for Laravel as a Next.js alternative
Going deeper than just blade files, Laravel is a full MVC framework and so includes things like Models and Controllers out of the box that can be used to organize your server-rendered code. Authentication is also baked in by default, and with first-party packages like Breeze, Sanctum, or Socialite, you can include user registration, login, API-based authentication, social sign-ups, and role-based permissions with near zero configuration.
-
Does Laravel maintainers implements a "zero issue and pull request" policy?
Long story short, I found this issue that was closed and here is the comment of the laravel dev:
-
Custom authentication guard in Laravel Sanctum
Laravel Sanctum is the go-to solution for token-based API authentication and SPA (Single page application) authentication. It uses an authentication guard when performing the SPA authentication.
-
So many years without Laravel.
Welcome to the dark side! If you're looking for even more reasons to love Laravel, check out Spatie's packages or some of Laravel's official ones like Cashier, Echo, or Sanctum.
-
Launching JSON API AUTH package to get authentication scaffold using Laravel Passport & Laravel Sanctum.
See: https://github.com/laravel/sanctum/blob/eb191ddfc3ec04bbead33593bf982e871095f25c/src/SanctumServiceProvider.php#L75-L87
jetstream
-
Is using the repository pattern best practise?
For writing models I would suggest using Action Closes. One example of them can be found in Jetstream's sourcecode. Actions are great to test in isolation and link to user stories.
-
Ask HN: What would be your stack if you are building an MVP today?
While I prefer python for everything else, I'd go with Laravel Jetstream[1] for an MVP, just like I did with the last one I had to build. It's laravel, you can use Vue (React or Svelte) for your views instead of the blade templating language that comes with the framework. Jetstream also comes with Auth, user login and subscription and other useful stuff.
And for the flavor, I'd just go with DaisyUI[2] again, since it's based on tailwindcss and it's what I've been using lately.
In my experience, I can build MVPs real fast with the stack described above.
[1] https://jetstream.laravel.com
-
How to call api internally and is that a good idea to call like that?
A well-implemented example of this would be in Laravel Jetstream, where an Actions namespace is defined for performing user-oriented tasks in Laravel Fortify — such as updating the user profile.
- What auth scaffolding should be used with sanctum tokens
- Admin panel with basic html css js
-
`npm run dev` not copying css or js files to public. Bug?
This legacy package is a very simple authentication scaffolding built on the Bootstrap CSS framework. While it continues to work with the latest version of Laravel, you should consider using Laravel Breeze for new projects. Or, for something more robust, consider Laravel Jetstream.
-
Preventing User Enumeration Attack in Laravel Apps
Laravel provide us with robust solutions and starter kits for authentication so let's start by creating a new Laravel 9 project and install Jetstram
- Jetstream - Tailwind scaffolding for the Laravel framework.
- Jetstream – Tailwind scaffolding for the Laravel framework
-
Moving an existing vanilla PHP website to Laravel/Vue, using packages for different components
In terms off bullet points you added, I've made something pretty similar using Laravel with : Laravel Jetstream(application starter kit with inertia + vue stack) https://jetstream.laravel.com/
What are some alternatives?
breeze - Minimal Laravel authentication scaffolding with Blade, Vue, or React + Tailwind.
bouncer - Laravel Eloquent roles and abilities.
jwt-auth - 🔐 JSON Web Token Authentication for Laravel & Lumen
cashier - Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services. [Moved to: https://github.com/laravel/cashier-stripe]
django-unicorn - The magical reactive component framework for Django ✨
Laravel - Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
hydra - Hydra is a zero-config API boilerplate with Laravel 10x + Laravel Sanctum that comes with an excellent user and role management API out of the box
livewire - A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
echo - Laravel Echo library for beautiful Pusher and Ably integration.
crudbooster - Laravel CRUD Generator, Make an Advanced Web Application Quickly