mardi 22 septembre 2015

How to overwrite(Override class) public function asset($path, $secure = null) in Laravel

I wanna custom function

  public function asset($path, $secure = null)
  {
          if ($this->isValidUrl($path)) {
              return $path;
          }
          $root = $this->getRootUrl($this->getScheme($secure));
          return $this->removeIndex($root) . '/' . trim($path, '/');
  }

The code above from bootstrap/compile/cache.php. Please give me full example.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire