<?phpnamespaceIlluminate\Contracts\View;useIlluminate\Contracts\Support\Renderable;interfaceViewextendsRenderable{/** * Get the name of the view. * * @return string */publicfunctionname();/** * Add a piece of data to the view. * * @param string|array $key * @param mixed $value * @return $this */publicfunctionwith($key,$value=null);/** * Get the array of view data. * * @return array */publicfunctiongetData();}