Files
UNIT3D-Community-Edition/app/Wish.php
2018-12-06 14:42:13 +00:00

40 lines
849 B
PHP

<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D is open-sourced software licensed under the GNU General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D
*
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
* @author Poppabear
*/
namespace App;
use Illuminate\Database\Eloquent\Model;
class Wish extends Model
{
/**
* The Attributes That Aren't Mass Assignable.
*
* @var array
*/
protected $guarded = [];
/**
* Belongs To A User.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function user()
{
return $this->belongsTo(User::class)->withDefault([
'username' => 'System',
'id' => '1',
]);
}
}