mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-20 08:52:15 +00:00
Create invoice form part 1.
This commit is contained in:
@@ -1,19 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Oasis;
|
||||
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class SubscriptionRequest extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'requested_plan', 'creator', 'status'
|
||||
'requested_plan', 'creator', 'status',
|
||||
];
|
||||
|
||||
public $incrementing = false;
|
||||
@@ -30,7 +29,7 @@ class SubscriptionRequest extends Model
|
||||
parent::boot();
|
||||
|
||||
static::creating(function ($order) {
|
||||
$order->id = (string)Str::uuid();
|
||||
$order->id = (string) Str::uuid();
|
||||
$order->creator = Auth::user()->email ?? $order->creator;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user