mardi 19 juillet 2016

Laravel Eloquent model id as string return wrong value in

There is OauthClient model which $client->id does not return correct value in Laravel 5.2.

"lucadegasperi/oauth2-server-laravel": "^5.1" is used that has in migration $table->string('id', 40)->primary();

However when use $client->id in blade template then I get back "0" . Using dd($client) show correct value in id attribute.

What could be wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire