1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
<?php
namespace Illuminate\Tests\Database\Fixtures\Models;
use Illuminate\Database\Eloquent\Model;
class EloquentModelUsingNonIncrementedInt extends Model
{
protected $keyType = 'int';
public $incrementing = false;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'model';
/**
* Get the default foreign key name for the model.
*
* @return string
*/
public function getForeignKey()
{
return 'model_using_non_incremented_int_id';
}
}
|