Example #1
0
 protected function getStub($table, $create)
 {
     if (is_null($table)) {
         return \File::combine($this->getStubPath(), 'blank.php.txt');
     }
     if ($create) {
         return \File::combine($this->getStubPath(), 'create.php.txt');
     }
     return \File::combine($this->getStubPath(), 'update.php.txt');
 }
Example #2
0
 /**
  * Tratar pasta do inquilino.
  *
  * @param $path
  *
  * @return string
  */
 protected function getPathPrefix($path)
 {
     $path_tenant = \Auth::check() ? \Auth::user()->inquilino->dominio : '__public';
     $path = \File::combine($path_tenant, $path);
     return $path;
 }