location brought from model

This commit is contained in:
Cihan Şentürk
2021-09-03 12:53:35 +03:00
parent 414e405168
commit 6154ff31fd
10 changed files with 65 additions and 154 deletions

View File

@ -19,6 +19,13 @@ class Contact extends Model
protected $table = 'contacts';
/**
* The accessors to append to the model's array form.
*
* @var array
*/
protected $appends = ['location'];
/**
* Attributes that should be mass-assignable.
*