Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya committed Apr 9, 2015
1 parent 604da8d commit df891f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/Mitul/Generator/Generators/Common/RoutesGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ private function fillTemplate($templateData)

private function generateAPIRoutes()
{
$apiNamespacePostfix = substr($this->apiNamespace, strlen('App\Http\Controllers\\'));

return "\n\nRoute::resource('" . $this->apiPrefix . "/" . $this->commandData->modelNamePluralCamel . "', '" . $apiNamespacePostfix . "\\" . $this->commandData->modelName . "APIController');";
return "\n\nRoute::resource('" . $this->apiPrefix . "/" . $this->commandData->modelNamePluralCamel . "', 'API\\" . $this->commandData->modelName . "APIController');";
}

private function generateScaffoldRoutes()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$FIELDS$
<!--- Submit Field --->
<div class="form-group">
<div class="form-group col-sm-12">
{!! Form::submit('Save', ['class' => 'btn btn-primary']) !!}
</div>

0 comments on commit df891f1

Please sign in to comment.