protected function addFavicon()
	{
		// Get the default value in config file if not manually defined
		$favicon = ($this->favicon) ? $this->favicon : $this->getConfig('favicon');

		// Check if value is not empty
		if ($favicon)
		{
			// Check if .ico file exists
			if (File::exists(public_path($favicon.'.ico')))
			{
				$this->addOneLink('shortcut icon', asset($favicon.'.ico'));
				$this->addOneLink('icon', asset($favicon.'.ico'), 'image/x-icon');
			}

			// Check if .png file exists
			if (File::exists(public_path($favicon.'.png')))
			{
				$this->addOneLink('icon', asset($favicon.'.png'), 'image/png');
			}
		}
	}
protected function addFavicon()
	{
		// Get the default value in config file if not manually defined
		$favicon = ($this->favicon) ? $this->favicon : $this->getConfig('favicon');

		// Check if value is not empty
		if ($favicon)
		{
			// Check if .ico file exists
			if (File::exists(public_path($favicon.'.ico')))
			{
				$this->addOneLink('shortcut icon', asset($favicon.'.ico'));
				$this->addOneLink('icon', asset($favicon.'.ico'), 'image/x-icon');
			}

			// Check if .png file exists
			if (File::exists(public_path($favicon.'.png')))
			{
				$this->addOneLink('icon', asset($favicon.'.png'), 'image/png');
			}
		}
	}
protected function addFavicon ( ) { // Get the default value in config file if not manually defined $ favicon = ( $ this -> favicon ) ? $ this -> favicon : $ this -> getConfig ( 'favicon' ) ; // Check if value is not empty if ( $ favicon ) { // Check if .ico file exists if ( File :: exists ( public_path ( $ favicon . '.ico' ) ) ) { $ this -> addOneLink ( 'shortcut icon' , asset ( $ favicon . '.ico' ) ) ; $ this -> addOneLink ( 'icon' , asset ( $ favicon . '.ico' ) , 'image/x-icon' ) ; } // Check if .png file exists if ( File :: exists ( public_path ( $ favicon . '.png' ) ) ) { $ this -> addOneLink ( 'icon' , asset ( $ favicon . '.png' ) , 'image/png' ) ; } } }
Register link tags for favicon.

@return void
Register link tags for favicon .