Larvel 5 id

Laravel-5.
, primary key

, id

.
, , .
, , , , .

+3




3


, $table->primary('field')

shema, : http://laravel.com/docs/5.0/schema#adding-indexes



+1




protected $primaryKey = 'Your_Primary_key';

      



.

+6




$table->string('your_primary_key', 32)->primary();

      

'your_primary_key' -

32 -

0









All Articles