You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
		
		
		
		
		
			
		
			
				
					
					
						
							21 lines
						
					
					
						
							408 B
						
					
					
				
			
		
		
	
	
							21 lines
						
					
					
						
							408 B
						
					
					
				| <?php | |
| 
 | |
| namespace App\Utils; | |
| 
 | |
| use Illuminate\Support\Facades\DB; | |
| use Illuminate\Support\Str; | |
| use Carbon\Carbon;  | |
| 
 | |
| class Token  | |
| { | |
|     public static function create($email){ | |
|         $token = Str::random(64); | |
|         DB::table('password_reset_tokens')->insert([ | |
|             'email' => $email,  | |
|             'token' => $token,  | |
|             'created_at' => Carbon::now() | |
|         ]); | |
|         return $token; | |
|     } | |
| } | |
| 
 | |
| 
 |