first commit

This commit is contained in:
2023-10-27 19:59:05 +03:00
commit 6b20c329a9
93 changed files with 11807 additions and 0 deletions

22
app/Models/Product.php Normal file
View File

@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\SoftDeletes;
class Product extends Model
{
protected $table = 'product';
use HasFactory; use SoftDeletes;
protected $fillable = ['name', 'article', 'price', 'quantity'];
public function documents(): BelongsToMany
{
return $this->belongsToMany(Document::class);
}
}