protected function newTransaction()
	{
		$uid = $this->getTimeId();

		$this->transactionId = $this->getTable()->insert([
			'id' 			=> $uid,
			'port' 			=> $this->getPortName(),
			'price' 		=> $this->amount,
			'status' 		=> Enum::TRANSACTION_INIT,
			'ip' 			=> Request::getClientIp(),
			'description'	=> $this->description,
			'created_at' 	=> Carbon::now(),
			'updated_at' 	=> Carbon::now(),
		]) ? $uid : null;

		return $this->transactionId;
	}
protected function newTransaction()
	{
		$uid = $this->getTimeId();

		$this->transactionId = $this->getTable()->insert([
			'id' 			=> $uid,
			'port' 			=> $this->getPortName(),
			'price' 		=> $this->amount,
			'status' 		=> Enum::TRANSACTION_INIT,
			'ip' 			=> Request::getClientIp(),
			'description'	=> $this->description,
			'created_at' 	=> Carbon::now(),
			'updated_at' 	=> Carbon::now(),
		]) ? $uid : null;

		return $this->transactionId;
	}
protected function newTransaction ( ) { $ uid = $ this -> getTimeId ( ) ; $ this -> transactionId = $ this -> getTable ( ) -> insert ( [ 'id' => $ uid , 'port' => $ this -> getPortName ( ) , 'price' => $ this -> amount , 'status' => Enum :: TRANSACTION_INIT , 'ip' => Request :: getClientIp ( ) , 'description' => $ this -> description , 'created_at' => Carbon :: now ( ) , 'updated_at' => Carbon :: now ( ) , ] ) ? $ uid : null ; return $ this -> transactionId ; }
Insert new transaction to poolport_transactions table

@return int last inserted id
Insert new transaction to poolport_transactions table