'exists:users,id|required', 'name' => 'required|between:1,100|alphabasic', 'class' => 'required', ]; protected $dates = ['deleted_at', 'created_at', 'updated_at']; protected $fillable = ['name', 'user_id','class']; protected $table = 'components'; use ValidatingTrait; }