Hello !
I'm a beginner with Laravel. I wanted to experiment a little, so I made a basic controller using make:controller and started playing in its index() function. I simply wrote this :
return "Hello - ".Request::ip()." - ".Input::get('id');
And get a 500 internal server error when calling to the relevant route
mysite.com/public/emails?id=1
It works if I take out Request::ip() though, showing Hello - 1 without any problem.
The route :
Route::get('emails', 'EmailsController@index');
The includes at the beginning of the controller :
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use \Input;
I would like to know 2 things :
- Why is that error popping ? I saw a lot of tutorials using this without any problem
- How can I debug efficiently in that sort of case ? There is nothing in the log @storage/logs/ and the page displays nothing as well.
Thanks ahead !!