Merge branch 'faiqahzaman'

This commit is contained in:
Azfar Arsyad
2022-01-20 15:52:05 +08:00
4 changed files with 50 additions and 36 deletions
@@ -8,6 +8,7 @@ use App\Models\File;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Carbon\Carbon;
use Auth;
use Illuminate\Support\Facades\Validator;
class AuthController extends Controller
@@ -20,6 +21,7 @@ class AuthController extends Controller
'password' => 'required|string|min:8',
'notelbimbit' => 'required|string|unique:users',
'register_agree' => 'required|integer'
]);
@@ -59,7 +61,10 @@ class AuthController extends Controller
$file->file_type = $img['file_type'];
$file->filename = $img['filename'];
$file->save();
}
}
$token = $user->createToken('myapptoken')->plainTextToken;