Coder Social home page Coder Social logo

rolandalla / laravel-qr-code-login Goto Github PK

View Code? Open in Web Editor NEW
78.0 7.0 76.0 15.3 MB

Today I will be showing you how to implement Laravel login with QRcode in a website. You can use my Laravel Starter so you can start the project in one minute .

Home Page: http://www.rolandalla.com/laravel-login-qr-code/

License: MIT License

PHP 5.45% CSS 12.09% JavaScript 8.19% HTML 74.24% Vue 0.02%
laravel code laravel-framework qrcode-generator qrcode-scanner qrcode-reader qr-code-login

laravel-qr-code-login's Introduction

Laravel Framework 5.4 ,Sentinel,Crud Generator ,Qr Code Login

Check our article

##Check how it works on youtube : Laravel QR Code generator and login

Starter Site based on on Laravel 5.4

Starter Site Features:

  • Laravel 5.4.x
  • Twitter Bootstrap 3.x
  • Back-end
    • Automatic install and setup website.
    • User management.
    • Role management.
    • Dashboard.
    • Gentelella Dashboard Ready.
  • Front-end
    • User login, registration
    • soon will be more...
  • Packages included:
    • Datatables Bundle
    • Sentinel
    • Crud generator

##Requirements

PHP >= 5.6.4
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension

##How to install:


Step 1: Get the code - Download the repository

https://github.com/roladn/laravel-qr-code-login/archive/master.zip

OR Clone this repository:
 https://github.com/roladn/laravel-qr-code-login.git

Extract it in www(or htdocs if you using XAMPP or MAMP) folder and put it for example in laravelStartersite folder.


Step 2: Use Composer to install dependencies

Laravel utilizes Composer to manage its dependencies. First, download a copy of the composer.phar. Once you have the PHAR archive, you can either keep it in your local project directory or move to usr/local/bin to use it globally on your system. On Windows, you can use the Composer Windows installer. Open terminal and go to the project foleder Then run:

composer dump-autoload
composer install --no-scripts

Step 3: Create database

If you finished first three steps, now you can create database on your database server(MySQL). You must create database with utf-8 collation(uft8_general_ci), to install and application work perfectly. Just go to the phpmyadmin and create the new database After that, copy .env.example and rename it as .env and put connection and change default database connection name, only database connection, put name database, database username and password.


Step 4: Install

Now that you have the environment configured, you need to create a database configuration for it. For create database tables use this command:

php artisan migrate

And to initial populate database use this:

php artisan db:seed

If you install on your localhost in folder laravelStartersite, you can type on web browser:

http://localhost/laravel-qr-code-login/public/

OR Run the command " php artisan serv ", and open on the browser the url you get in console :):


Step 5: Start Page

You can now login to admin part of Laravel Framework 5.4 Site:

username: [email protected]
password: admin

Troubleshooting

RuntimeException : No supported encrypter found. The cipher and / or key length are invalid.

php artisan key:generate

Site loading very slow

composer dump-autoload --optimize

OR

php artisan dump-autoload

License

This is free software distributed under the terms of the MIT license


Additional information

Inspired by Laravel 5.4 and based on: Crud Generator Laravel Starter

##How Starter Site is look like

Qr Code Sacaning Login Register new user Admin dashboard Admin list users Perrmissons user/role


Read More From my Plog Post Read Step by step integration http://www.rolandalla.com/laravel-login-qr-code/

Support on Beerpay

Hey dude! Help me out for a couple of ๐Ÿป!

Beerpay Beerpay

laravel-qr-code-login's People

Contributors

heinzin avatar rolandalla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-qr-code-login's Issues

Doesn't capture from camera: "Native web camera streaming (getUserMedia) not supported in this browser"

Hello, I've managed to get the site running, but when trying to use the camera capture, the console shows an error:

Native web camera streaming (getUserMedia) not supported in this browser.

Such error appears on Firefox, Firefox Developer Edition, Opera and also Chrome.

I've found a post on stackoverflow with a similar problem:
https://stackoverflow.com/questions/12407321/navigator-getusermedia

and they mention that it is not a browser problem, because the webcam works on another example site, i.e. https://www.html5rocks.com/en/tutorials/getusermedia/intro/

One answer mentions the problem is that navigator.getUserMedia() is deprecated and navigator.mediaDevices.getUserMedia(constraints); should be used instead.

old method:
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getUserMedia

current one:
https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

So I guess it doesn't work because it uses deprecated methods?

Could you look into it so it works in current browsers?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.