laravel-nami-api/tests/Stub/Member.php

16 lines
283 B
PHP
Raw Normal View History

2020-06-29 00:30:57 +02:00
<?php
namespace Zoomyboy\LaravelNami\Tests\Stub;
use Illuminate\Database\Eloquent\Model;
2022-03-11 20:20:00 +01:00
class Member extends Model
{
public $fillable = ['firstname', 'nami_id'];
2020-06-29 00:30:57 +02:00
2022-03-11 20:20:00 +01:00
public static function findByNamiId($id)
{
2020-06-29 00:30:57 +02:00
return self::where('nami_id', $id)->first();
}
}