Laravel Login without auth - laravel-5

I am very beginner in laravel. I want to create a login registration with my own code without using the laravel auth.

Yes. This is very possible. There are many authentication packages you can reference and guides to follow for auth in PHP. I highly suggest you implement Laravel's authentication scaffolding and learn how it works in order to build your own. It's really awesome! I provided links to a poplar authentication package you can study through and a tutorial below.
https://github.com/panique/huge
https://www.tutorialrepublic.com/php-tutorial/php-mysql-login-system.php

Related

Laravel-Authentication: Passport vs Sanctum

I am new to Laravel and for practicing I am trying to create a website like GoFundMe but simpler with Laravel and Vue js.
But am very confused with Laravel's authentication systems, even though I have read most of the questions here.
Which authentication system should I use ? is it ok to use Sanctum for authentication and then Spatie for user permissions?
You have to have a clear concept of the topic authentication & authorization first. You may use Laravel Sanctum powered by Laravel framework as well. Because it provides authentication support for SPAs (single-page applications), mobile applications, and simple, token-based APIs. You may also have a look at passport later.
After passing your authentication, the topic authorization comes. You may use Gate. But as you are new to Laravel framework, then it seems to be a good choice to use laravel spatie for managing your permissions. But keep in mind that, it uses Gate concept under the hood.

Laravel Sactum and Fortify - How to use them both?

Im working with Laravel 8 Project I have installed. Jetstream, Fortify, Sanctum, etc..
Now I need to made an app in html and jquery to the user login via API
and the made some processes within from the API
But I cannot understand how to make it.
Where Can i create the user token when he logins.. or if it's good to point my html login to /login of the Fortify Package.
I didn't found anythiing about this on the net.. please if someone made use of it... I will apreciate !

Laravel Passport Oauth Customize page / auto redirect

Hi I would like to ask about laravel passport oauth confirmation page
This is the page when we are asked for authorization, I would like to customize this page, or even possible to skip this page to always authorize anyway since the requestor will be just an internal application
I tried to google this but no luck. Is that possible? if so please tell me how to, or any link will be greatly appreciated
If you want to change the UI you can actually export the view and edit it
https://laravel.com/docs/5.5/passport#requesting-tokens
For the auto redirection, actually it can be done using laravel passport version ^7.30
Code:
https://github.com/laravel/passport/pull/1022
Documentation:
https://github.com/laravel/docs/pull/5226
But since I was using laravel version that dont support passport ^7.30, I need to create the override
reference:
https://github.com/laravel/passport/issues/243
What I did was, I copied this snippets
https://paste.laravel.io/6LN6q
Creating a new class extending the passport AuthorizationController and overriding the authorize function only

Laravel Web and API login

I'm trying to build a platform where a Supplier can login to the platform, a normal web login.
But from the outside webshops can place orders using my REST API. Each webshop should be able to place an order but how would I go about authenticating those webshops?
Should I generate a sort of token for each webshop which they have to send in each request? Is it possible using JWT to issue a token to each shop that they will use for life? And so I know which shop is trying to create an order?
Looking very forward to your ideas.
Thank you.
Since you've mentioned laravel in the topic, try Passport
Here is a nice introduction blog post about it:
https://mattstauffer.co/blog/introducing-laravel-passport
You can have it up and running within hours, good luck!
Hi there is many package can do this including Passport as mentioned by #veNuker
my sugestion use Api-Guard is easy to use

Registration system using ion auth in codeigniter

I have developed a registration form using codeigniter framework which works fine. But now I want to integrate it with ion auth library to make it more scalable. But I am new to using external libraries in codeigniter and I don't know how to use ion auth to build a registration system. Can any one please let me know some good tutorials?
first of all have you read the official documentation which includes a detailed installation procedure ?
Also I think Ion Auth doesnt provide templates (views ) for handling registration,etc
Also have you considered using tank auth ?
Tank auth provides some basic views which handles registration, login etc.
Edit :
have a look at the views provided here

Resources