Convert class references from strings to static ::class
constants built-in to PHP for improved code completion and static analysis.
Before
public function phone(){ return $this->hasOne('Phone');}
After
public function phone(){ return $this->hasOne(Phone::class);}
Sign in with any of the following services to connect Shift with your Laravel project.
Don't use one of these services?
Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.