public function register()
{
if($this->app->environment() !=='production'){
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
}
}
{
"Login":"登录",
"Logout":"退出",
"E-Mail Address":"邮箱",
"Register":"注册",
"Password":"密码",
"Confirm Password":"确认密码",
"Name":"帐号",
"Remember Me":"记住我",
"Forgot Your Password?":"找回密码",
"Reset Password":"重置密码",
"Send Password Reset Link":"发送重置密码邮件",
"Reset Password Notification":"重置密码通知",
"You are receiving this email because we received a password reset request foryour account":"您收到这封邮件是因为我们收到的帐户码重置请求",
"If you did not request a password reset, no further action is required.":"如果没有要求重新设置码,则不需要进一步的提作"
}
php artisan make:seeder Userseeder
//创建模型工厂进行数据填充
进入Userseeder.php文件添加
public function run()
{
$user = factory(\App\User::class,30)->create();
//只执行上面这段就行了,下面代码是我修改第一条数据方便后面测试
$user = $user[0];
$user->name = '憨批猪';
$user->email = '2654743927@qq.com';
$user->save();
}