P粉3919557632023-08-23 17:39:51
This method does not allow initialization of class attributes. You have to move the initialization into the constructor.
P粉6525239802023-08-23 17:05:59
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'); } }