- Create droplet with Ubuntu 18.10
ssh root@[DROPLET IP ADDRESS]
- Get password from your email
- Change password on first login
adduser laravel
- Enter password and other information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//login method | |
public function processLogin() | |
{ | |
$validator = Validator::make(request()->all(), [ | |
'email' => 'required|email', | |
'password' => 'required', | |
]); | |
if ($validator->fails()) { | |
return redirect()->back()->withErrors($validator)->withInput(); | |
} |
NewerOlder