A
A
Alexander Sinitsyn2016-06-29 12:23:56
Kohana
Alexander Sinitsyn, 2016-06-29 12:23:56

How to extend the set of user fields?

Tell me how to add additional fields to the user profile, for example, phone, avatar, website, etc.
You can just link to an example ... I didn’t find anything myself, except for one mention that you can somehow extend the User model.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav, 2016-06-29
@mzcoding

Eloquent can work with the activeRecord pattern, just add fields to the table and...
$user->phone = "777777";
$user->avatar = "ava.jpg";
$user->site = "http://";
$user->save();
https://laravel.com/docs/5.2/eloquent#basic-inserts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question