This method does not allow initialization of class attributes. You have to move the initialization into the constructor.
As described here
The only way you can make it work is:
<?php namespace App; class Amazon { protected $serviceURL; public function __construct() { $this->serviceURL = config('api.amazon.service_url'); } }