Laravel Passport - Create REST API with authentication

Today, in this tutorial we are share with you hhow to use laravel passport authentication in your laravel application. Laravel already provide simple auth system for web. but what about APIs? APIs basically use token for authentication. when any user login thenn generate one tocken and it is use for authentication purpose. so, laravel provide Passport for APIs authentication. How to use Passport in laravel for built RESTful APIs and how to configure in laravel application. here we are expain .....

Continue reading By : Laravelcode September 17, 2017 Category 1088 views

How To Set Multi Authentication in JWT

Today, laravelcode share with you how to set multi authentication in jwt with simple example. recently we are working with one laravel application and we are also built API for it. and we are required more then one table for authentication. you also see in JWT documentation it by default provide User model for authentication. but sometime we have required use another table also use for authentication in our API. for Ex. one for front API user and another for Admin API user. This problem you e.....

Continue reading By : Laravelcode September 14, 2017 Category 686 views

Restful API In Laravel 5.5 Using jwt Authentication

Today, we are share with you how to built restful API in laravel using JWT(JSON Web Token). it is very eassy and simple implementation in laravel. when you work with larg application and you also want make mobile or android application for this project. you should be write API layer or API for your application which help communication with your android app and your live server. In simple term in API is you pass some argument as a url GET request and POST request from app and server first chec.....

Continue reading By : Laravelcode September 13, 2017 Category 2574 views

Laravel5.4 - Prevent Browser's Back Button Login After Logout

In this tutorials we are sharing with you one common web securite issue in laravel project. you are many time notice in laravel onece your are login in your laravel application and and then after logout from laravel application and then you press your browser back button. you realise your previes page is show which you are open befor logout. So, this is not good for securite perpouse, so how to fix this issue in laravel application with very simple way. when you are logout from laravel applic.....

Continue reading By : Laravelcode June 22, 2017 Category 899 views