thecsea/laravel-noredirect-traits

该库允许您在无需重定向的情况下使用标准的Laravel特性,通过JSON和HTTP状态码返回信息,非常适合REST应用。

v1.0.1 2015-11-17 23:48 UTC

This package is auto-updated.

Last update: 2024-09-04 12:43:13 UTC


README

构建状态: 最新稳定版本 总下载量 最新不稳定版本 许可证

该库允许您在无需重定向的情况下使用标准的Laravel特性,通过JSON和HTTP状态码返回信息,非常适合REST应用。

如何使用

  1. 您需要添加Composer依赖项 composer require "thecsea/laravel-noredirect-traits"
  2. PasswordController.php 中,使用 use \it\thecsea\laravel\noredirect_traits\ResetsPasswords; 替换标准特性
  3. 在您需要特性的文件中替换 ResetsPasswords

实现的特性

  • ResetsPasswords
  • RegistersUsers
  • AuthenticatesUsers
  • AuthenticatesAndRegistersUsers
  • ThrottlesLogins

作者: thecsea.it