Skip to content

Commit

Permalink
added construct in controller
Browse files Browse the repository at this point in the history
  • Loading branch information
muhaimenul committed Nov 24, 2019
1 parent 1890cc5 commit 3246001
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/stubs/Controller.stub
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ use App\{{modelName}};

class {{modelName}}Controller extends Controller
{
/**
* Service Instance
* @var $service
*/

protected $service;

/**
* Sets a new service instance
*/
public function __construct()
{

}

public function index()
{
${{modelNamePluralLowerCase}} = {{modelName}}::latest()->get();
Expand Down

0 comments on commit 3246001

Please sign in to comment.