Fixed laravel controller bug