Skip to content

Commit a517f06

Browse files
committed
updated controller and model stubs
1 parent 15567b8 commit a517f06

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
2-
namespace App\Controllers;
2+
namespace App\Controllers;
33

4-
use Leaf\Core\Controller;
5-
use Leaf\Core\Http\Request;
6-
7-
class ClassName extends Controller {
8-
//
9-
}
4+
class ClassName extends Controller {
5+
//
6+
}

config/command/stubs/model.stub

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
namespace App\Models;
43

54
class ClassName extends Model {

config/command/stubs/resourceController.stub

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
<?php
2-
32
namespace App\Controllers;
43

5-
use Leaf\Core\Controller;
6-
use Leaf\Core\Http\Request;
7-
8-
class ClassName extends Controller {
9-
public function __construct() {
10-
parent::__construct();
11-
$this->request = new Request;
12-
}
13-
4+
class ClassName extends Controller {
145
/**
156
* Display a listing of the resource.
167
*/

0 commit comments

Comments
 (0)