php - Non-static method Redis::get() cannot be called statically in laravel 5.4? -


i working on redis store data working fine in local system. have installed redis in laravel command composer require predis/predis , redis setup of window installed. when store data in redis this:-

redis::set('first',"my first test"); // put data in redis key echo redis ::get('first'); // data 

above code working fine in local system. when try use code in live server showing below error:- enter image description here please me resolve issue. using amazon-ec2 server in advance :)


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -