Skip to content

Commit 81ad641

Browse files
committed
Moved publish or create views to a common namespace
1 parent 24cb2ce commit 81ad641

22 files changed

+263
-881
lines changed

src/Console/Commands/BuildBackpackCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function handle()
3838
if (! count($models)) {
3939
$this->errorBlock('No models found.');
4040

41-
return;
41+
return false;
4242
}
4343

4444
foreach ($models as $key => $model) {

src/Console/Commands/ChartControllerBackpackCommand.php

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,7 @@ protected function buildClass($name)
9494
$stub = $this->files->get($this->getStub());
9595

9696
return $this->replaceNamespace($stub, $name)
97-
->replaceRouteStrings($stub)
98-
->replaceClass($stub, $name);
99-
}
100-
101-
/**
102-
* Get the console command options.
103-
*
104-
* @return array
105-
*/
106-
protected function getOptions()
107-
{
108-
return [
109-
110-
];
97+
->replaceRouteStrings($stub)
98+
->replaceClass($stub, $name);
11199
}
112100
}

src/Console/Commands/ColumnBackpackCommand.php

Lines changed: 0 additions & 173 deletions
This file was deleted.

src/Console/Commands/ConfigBackpackCommand.php

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,12 @@ protected function getStub()
4444
return __DIR__.'/../stubs/config.stub';
4545
}
4646

47-
/**
48-
* Alias for the fire method.
49-
*
50-
* In Laravel 5.5 the fire() method has been renamed to handle().
51-
* This alias provides support for both Laravel 5.4 and 5.5.
52-
*/
53-
public function handle()
54-
{
55-
$this->fire();
56-
}
57-
5847
/**
5948
* Execute the console command.
6049
*
6150
* @return bool|null
6251
*/
63-
public function fire()
52+
public function handle()
6453
{
6554
$name = $this->getNameInput();
6655

@@ -111,16 +100,4 @@ protected function buildClass($name)
111100
{
112101
return $this->files->get($this->getStub());
113102
}
114-
115-
/**
116-
* Get the console command options.
117-
*
118-
* @return array
119-
*/
120-
protected function getOptions()
121-
{
122-
return [
123-
124-
];
125-
}
126103
}

src/Console/Commands/CrudControllerBackpackCommand.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,4 @@ protected function buildClass($name)
243243

244244
return $stub;
245245
}
246-
247-
/**
248-
* Get the console command options.
249-
*
250-
* @return array
251-
*/
252-
protected function getOptions()
253-
{
254-
return [
255-
256-
];
257-
}
258246
}

src/Console/Commands/CrudModelBackpackCommand.php

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function handle()
7474

7575
$this->closeProgressBlock();
7676

77-
return;
77+
return false;
7878
}
7979

8080
// Model exists
@@ -108,7 +108,7 @@ public function handle()
108108
if (Str::contains($file, $this->crudTrait)) {
109109
$this->closeProgressBlock('Already existed', 'yellow');
110110

111-
return;
111+
return false;
112112
}
113113

114114
// if it does not have CrudTrait, add the trait on the Model
@@ -135,7 +135,7 @@ public function handle()
135135
// let the user know what we've done
136136
$this->closeProgressBlock();
137137

138-
return;
138+
return false;
139139
}
140140
}
141141

@@ -185,16 +185,4 @@ protected function buildClass($name)
185185

186186
return $this->replaceNamespace($stub, $name)->replaceTable($stub, $name)->replaceClass($stub, $name);
187187
}
188-
189-
/**
190-
* Get the console command options.
191-
*
192-
* @return array
193-
*/
194-
protected function getOptions()
195-
{
196-
return [
197-
198-
];
199-
}
200188
}

src/Console/Commands/CrudOperationBackpackCommand.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,6 @@ protected function buildClass($name)
105105
->replaceClass($stub, $name);
106106
}
107107

108-
/**
109-
* Get the console command options.
110-
*
111-
* @return array
112-
*/
113-
protected function getOptions()
114-
{
115-
return [
116-
117-
];
118-
}
119-
120108
/**
121109
* Get the desired class name from the input.
122110
*

src/Console/Commands/CrudRequestBackpackCommand.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,4 @@ protected function getDefaultNamespace($rootNamespace)
104104
{
105105
return $rootNamespace.'\Http\Requests';
106106
}
107-
108-
/**
109-
* Get the console command options.
110-
*
111-
* @return array
112-
*/
113-
protected function getOptions()
114-
{
115-
return [
116-
117-
];
118-
}
119107
}

0 commit comments

Comments
 (0)