I'm a newbie in laravel, so maybe please don't beat me :-)
I try to get the referrer inside a controller in this way
$from=Request::server('HTTP_REFERER');
As result, I get this error
Non-static method Illuminate\Http\Request::server() should not be called statically, assuming $this from incompatible context
At the top from the controller is
namespace Common\Auth\Controllers;
use Auth;
use Illuminate\Http\Request;
use Common\Settings\Settings;
use Common\Core\Controller;
use Common\Core\BootstrapData;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Common\Auth\User;
Hope somebody can show me how I can get the referrer a give me a little lesson about that.
Thanks a lot.
Update.
In the meantime i've add "function name(Request $request)" to my function and inside the function "$this->request = $request;"
Now i can access with "$this->request->ip();" some informations.
If i try to echo that "$this->request->header('HTTP_REFERRER')" nothing will display?