Skip to content

Tag: laravel

Laravel 502 Bad Gateway Error

I use Laravel 5.3 with the latest Homestead Setup. When I make a POST Request to my API, I get this error according to the log file: 2016/10/29 12:44:34 [error] 776#0: *28 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.10.1, server: loc.medifaktor, r…

Class AppHttpControllersAuthRequest does not exist. Laravel 5.3

I am using Laravel 5.3 My ForgotPasswordController looks like that: ResetPasswordController code : My Admin Route : BaseController Code : I can send the link to my email, but once I click the link/button. It throws an error like above. Any idea ? Answer You are not using the required namespace, try to use the…

Laravel – Eloquent – Dynamically defined relationship

Is it possible to set a model’s relationship dynamically? For example, I have model Page, and I want to add relationship banners() to it without actually changing its file? So does something like this exist: Or something similar? As they are fetched using the magic methods anyway, perhaps I can add the …