hootlex / laravel-friendships

This package gives Eloquent models the ability to manage their friendships.
MIT License
703 stars 151 forks source link

basic flow to send request #101

Closed thakurabhishek795 closed 6 years ago

thakurabhishek795 commented 6 years ago

1)what field needs to send? what I should I write in resource/view files 2)where does it go? to the controller? how should I implement Friendable trait in that controller? 3) is this necessary to add Friendable trait to User model? @hootlex @nikolaynesov @nahid @bryant1410 @davidavz @irazasyed

davidavz commented 6 years ago

Hi.

You have to add the Friendable trait into the model you want to act with (in most of the case it's the User model).

Then you can call the differents methods with your User instance. It's up to you to call them in a Controller, a View ... It depends on what you want to do.

thakurabhishek795 commented 6 years ago

thankyou