You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I cant add a transaction to the wallet_ledger.
I copied the exact same code but I will get the following error:
Add [amount] to fillable property to allow mass assignment on [App\Models\PurchaseTransaction].
When I add
protected $fillable = ['amount'];
I will get the error:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'project.purchase_transactions' doesn't exist
Can somebody help me?
Models/PurchaseTransaction
<?php
namespace App\Models;
use CoreProc\WalletPlus\Contracts\WalletTransaction;
use Illuminate\Database\Eloquent\Model;
class PurchaseTransaction extends Model implements WalletTransaction
{
public function getAmount()
{
return $this->amount;
}
}
Please update package , or explain
If need to increment/decrement multiple columns with sameModel how to do that , like bookings table has amount , fine, extras etc
also if add extra columns in table , like parent_id , source_of_payments (for example cash, paypal, bank etc)
Hello,
I cant add a transaction to the wallet_ledger.
I copied the exact same code but I will get the following error:
Add [amount] to fillable property to allow mass assignment on [App\Models\PurchaseTransaction].
When I add
protected $fillable = ['amount'];
I will get the error:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'project.purchase_transactions' doesn't exist
Can somebody help me?
Models/PurchaseTransaction
My Function:
The text was updated successfully, but these errors were encountered: