You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
namespace App;
use App\HiLib\Models\Model;
class Fingerprint extends Model { protected $fillable = ['user_id', 'agent', 'ip', 'os', 'latitude', 'longitude', 'token',];
protected $table = 'fingerprints';
public function user() { return $this->belongsTo(User::class, 'user_id', 'id', __FUNCTION__); }
public function rules() { return [ 'user_id' => 'required|integer|exists:users,id', 'agent' => 'required|string', 'ip' => 'required|ip', 'os' => 'required|string', 'latitude' => 'required', 'longitude' => 'required', 'token' => 'required|string|min:60', ]; } }
|