devchan/laravel-a-i-o-security

这是Laravel一站式安全包

dev-master 2018-08-13 13:54 UTC

This package is not auto-updated.

Last update: 2024-10-02 04:14:51 UTC


README

这是一个有用的包,可以提升您Laravel应用的网络安全

'password_expired' => \Devchan\LaravelAIOSecurity\Http\Middleware\PasswordExpired::class,

'password_changed_at' => Carbon::now()->toDateTimeString(),

use Carbon\Carbon;

protected $fillable = [

'name', 'email', 'password', 'password_changed_at',

];

'password_expires_days' => env('PASSWORD_EXPIRES_DAYS', 30),

\Devchan\LaravelAIOSecurity\Http\Middleware\ForceHttps::class,

'https_force' => env('HTTPS_FORCE', false),