Merge branch 'faiqahzaman'
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user