code style fix

This commit is contained in:
Peter Papp
2021-04-25 09:02:00 +02:00
parent e103e61617
commit c47886fb8b
157 changed files with 2250 additions and 2583 deletions
+4 -4
View File
@@ -1,5 +1,4 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
@@ -7,19 +6,20 @@ use Illuminate\Database\Eloquent\Model;
class Invoice extends Model
{
protected $guarded = [
'id'
'id',
];
protected $casts = [
'seller' => 'array',
'client' => 'array',
'bag' => 'array',
'bag' => 'array',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function user() {
public function user()
{
return $this->hasOne(User::class, 'id', 'user_id');
}
}