I'm trying to use a trait inside an helper function but its throwing error like this
Using $this when not in object context
this is my helper function
namespace App\Helpers;
use Log;
use Exception;
use Twilio\Rest\Client;
use App\Traits\HelperTrait;
class Twilio {
use HelperTrait;
static function cdata($hApp){
return response()->json($this->notPdResponse($hApp));
}
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/36WbMoK
via IFTTT
Aucun commentaire:
Enregistrer un commentaire