Download the PHP package wangliang/laravel-login without Composer

On this page you can find all versions of the php package wangliang/laravel-login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-login

laravel5.5 Component_login

通过Composer安装包。

API

从终端运行Composer update命令:

在config/app providers数组中添加一个新行:

从终端运行发布服务 命令:

运行数据库迁移

在 app/Providers/RouteServiceProvider 修改路由

mapApiRoutes(方法)

修改语言包文件resources\lang\en\validation.php

passport认证

执行数据迁移

php artisan migrate

官方文件 可以在Laravel网站上找到Passport的文档

接下来,运行命令来创建生成安全访问令牌时所需的加密密钥(/storage/下 生成两个密钥):

接下来我们安装 Passport 以生成令牌和客户端

配置 .env

配置文件 config/auth.php

中授权看守器 guards 的 api 的 driver 选项改为 passport

修改passport 自带的邮箱登录 (email 改成 phone)

接下来,你需要在 AuthServiceProvider 的 boot 方法中调用 Passport::routes 方法,该方法将会注册发布/撤销访问令牌、客户端以及私人访问令牌所必需的路由

OK 按照步骤走下来 项目已经基本上跑通 如果跑不通 去百度上 好好学习一下


All versions of laravel-login with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wangliang/laravel-login contains the following files

Loading the files please wait ....