Initial commit - Car Rental Management System
This commit is contained in:
commit
f72173377a
100 files changed
+15201
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Payment extends Model
|
||||
{
|
||||
protected $fillable = ['rental_id', 'amount', 'method', 'status', 'transaction_id', 'notes'];
|
||||
|
||||
public function rental()
|
||||
{
|
||||
return $this->belongsTo(Rental::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user