Tag : Auth



Laravel 5 - Authenticate user in NodeJS with socket io using JWT.

Today, i am going to show you how to authenticate user node js using JWT and socket io in Laravel 5.3. It is very very important because if you are working with chat application or messengers system etc with user then you have to use JWT token because it is very safe and secure way. If we work on chat module with socket io but someone can easily hack our code. At that time we require to check given JWT token is valid or not using <strong class="path">socketio-jwt</strong> package of Node. socketio-jwt package thorough we can simply authentication with user and identify that token is valid .....

By Hardik Savani | September 25, 2016 | | 24767 Viewer | Category : Laravel Installation Server Node JS Socket.io JWT
READ MORE

How to check current password using hash check in Laravel 5.3?

Sometimes we are working on change password function at that time we require to check with current password. If current password should be match otherwise return error with "your old password is wrong". I mean we have one form with three input field like as bellow: <strong>1)current password</strong> <strong>2)new password</strong> <strong>3)confirm new password</strong> When it will submit form we have to check current password match with store database table password. So, laravel store hash password, that way we can't check directly equal to condition, But Laravel provide <strong>Hash</str.....

By Hardik Savani | September 18, 2016 | | 13847 Viewer | Category : Laravel
READ MORE

How to create authentication(login and registration) in Laravel 5.2?

We always wanted to do authentication system in your project, i mean sign-in, sign-out, sign-up and forgot password for our project. If you work on core PHP, or any PHP framework then it will take long time and large amount code as well to make auth module for your application. But Laravel 5.2 provide simple way to create authentication module in your laravel application. Laravel 5.2 provide several php artisan command, that command through we can generate authentication module easily. Laravel 5.2 also will create new auth route and blade file, that way you can also customize your auth modul.....

By Hardik Savani | July 28, 2016 | | 7629 Viewer | Category : Laravel
READ MORE

How to do remember me function at login option in laravel 5?

we always use remember me option in login page, that way user don't require to login everytime. So, we would like use remember me option in our login page then you can also do it simply, because laravel provide it's own functionality. But, many developer can't do it properly i mean remember me not working, but you can implement it right. First you have to sure that <strong class="path">remember_token</strong> field in our users table. if you haven't remember_token column then first add it in your users table or any table that you use as for auth. Now you should have controller method this w.....

By Hardik Savani | June 17, 2016 | | 11912 Viewer | Category : Laravel
READ MORE

Laravel 5 login with Linkedin using Socialite Package

In my previous post i added <a href="http://itsolutionstuff.com/post/laravel-5-google-oauth-authentication-using-socialite-packageexample.html" target="_blanck">login with google</a> and <a href="http://itsolutionstuff.com/post/laravel-5-facebook-authentication-using-socialite-packageexample.html" target="_blanck">login with facebook</a>, that's very simple and almost same but if you doing from scratch then it's important to write all. So in this post we will login with Linkedin. In this post i want to share with you how to do sign in with Linkedin and how to do sign up with Linkedin. Laravel .....

By Hardik Savani | May 27, 2016 | | 23191 Viewer | Category : Laravel Linkedin API
READ MORE

How to get logged in user data in Laravel 5?

If you are beginner or don't know how to get logged in user details in laravel 5 application then you can do it using laravel auth helper. Laravel can get current login user data both way one using auth helper and another Auth facade. In this post you can learn how to get current logged user id. so first yo <strong>Get Logged User Data using helper</strong> you can get login user details using auth() helper, it will return object of users details. <pre class="prettyprint lang-php"> $user = auth()->user(); print_r($user); </pre> <strong>Get Logged User ID using helper</strong> <pre class="pre.....

By Hardik Savani | May 25, 2016 | | 13799 Viewer | Category : Laravel
READ MORE

Laravel 5.2 multi auth example using Auth guard from scratch

Multiple authentication is very important in big application of laravel. If you work on large project then you mostly prefer to diferente tables, like you always prefer "users" table for site user registration and "admins" table for admin user that way make strong security. we always use Auth for making user authentication but you have question how to make admins with auth then you can do easily by following step. <strong class="step">Step 1: Auth Config Setting</strong> In this step we will add new admin guard from auth.php file of config directory. so first open auth.php file and add bellow.....

By Hardik Savani | May 1, 2016 | | 38676 Viewer | Category : Laravel
READ MORE

How to check user login or not in Laravel 5?

If you are new and you trying to find how to detect user is login or not in your laravel application. So, it is very easy to check because laravel 5 provide to Auth facade for check user is login or not. Check bellow example: <strong>Example:</strong> <pre class="prettyprint lang-php"> @if (Auth::check()) {!! print_r("User is login.") !!} @else {!! print_r("User is not login.") !!} @endif </pre>

By Hardik Savani | April 28, 2016 | | 1313 Viewer | Category : Laravel
READ MORE

Laravel 5 Facebook authentication using Socialite Package

In Nowdays, Social authentication is important to implement in website because nowdays most of the users or developer etc will connected with Social network like facebook, twitter, google+, gitbub etc. So, In this post i want to share with you how to do sign in with facebook and how to do sign up with facebook. Laravel 5 provide very easy way to implement login with your facebook account and register with your fb id. Laravel 5 provide us Socialite package that is help to social authentication. In this post we will make example same as like bellow preview and you can do that easily by using few.....

By Hardik Savani | April 15, 2016 | | 35901 Viewer | Category : Laravel Facebook API
READ MORE

Laravel 5.2 API using JWT authentication tutorial from scratch example

In this post i want to share you how to create API in Laravel 5.2 with using JWT, If you are beginner then It is a very simple way to create and it is pretty easy to undestand how to create API. After this you can make more secure and complex your API. you can learn JWT authentication from back-end side. we have to learn how to works API from front-end and back-end side. i give you both side fully example how it works and use. <img width="100%" src="/upload/laravel-jwt.png" style="border:2px solid cadetblue"> JWT stand for Json Web Token. JWT will helps to create authentication and connect fro.....

By Hardik Savani | March 31, 2016 | | 179007 Viewer | Category : Laravel jQuery AngularJS Ajax JWT
READ MORE

    Laravel 5.5 Simple CMS Website example using asgardcms

    Laravel 5.5 Simple CMS Website example using asgardcms

    Open Post

    How to get gravatar image from email using Jquery?

    How to get gravatar image from email using Jquery?

    Open Post

    Laravel 5.3 Image Upload with Validation example

    Laravel 5.3 Image Upload with Validation example

    Open Post

    Jquery - Show hide password in Password textbox using checkbox.

    Jquery - Show hide password in Password textbox using checkbox.

    Open Post

    How to integrate stripe payment gateway in Laravel 5.4 Application ?

    How to integrate stripe payment gateway in Laravel 5.4 Application ?

    Open Post

    Laravel 5 - Paypal Payment Integration example using netshell/paypal package from scratch

    Laravel 5 - Paypal Payment Integration example using netshell/paypal package from scratch

    Open Post