Hi everyone :)
I'm having a problem with determining a owner of a model. The application is supposed to show an asterix * next to appartments created by the user, and allow him to edit them. But it does not :D Please check views/apartments/index and views/apartments/edit code.
I have uploaded files to : http://klenovica.eu/sztf/app_project.rar . Simply run ''php artisan serve'' and check with usernames/passwords: admin/admin or user/user. The problem comes up with user.
Sorry for not using github for upload, and thanks for help in advance .
Solved, user.php had an error, should have been:
public function owns(Apartment $apartment){ return $this->id == $apartment->user_id;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community