Skip to content

Commit

Permalink
Updated use of detector trait
Browse files Browse the repository at this point in the history
 Updated use of detector trait laralib/l5scaffold#68
  • Loading branch information
orbex authored Apr 15, 2017
1 parent 85dbb29 commit 678e80a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Console/Traits/ResourceClassCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Ralphowino\ApiStarter\Console\Traits;

use Illuminate\Console\AppNamespaceDetectorTrait;
use Illuminate\Console\DetectsApplicationNamespace;

trait ResourceClassCreator
{
use AppNamespaceDetectorTrait;
use DetectsApplicationNamespace;
/**
* Return the path to the specified type of class
*
Expand All @@ -19,4 +19,4 @@ protected function getClassPath($name, $type = 'model')
$name = config('starter.'. $type .'.path') . '\\' . str_replace($this->getAppNamespace(), '', $name);
return $this->laravel['path'] . '/' . str_replace('\\', '/', $name) . '.php';
}
}
}

0 comments on commit 678e80a

Please sign in to comment.