@@ -4,9 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Database\Eloquent\Relations\Relation; |
| 6 | 6 | |
| 7 | -use ReflectionException; |
|
| 8 | 7 | use Illuminate\Support\Collection; |
| 9 | 8 | use ReflectionClass; |
| 9 | +use ReflectionException; |
|
| 10 | 10 | use ReflectionMethod; |
| 11 | 11 | |
| 12 | 12 | class RelationMapper |
@@ -2,16 +2,16 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Mtolhuys\LaravelSchematics\Services; |
| 4 | 4 | |
| 5 | -use SplFileInfo; |
|
| 5 | +use Illuminate\Database\Eloquent\Model; |
|
| 6 | 6 | use PhpParser\Node; |
| 7 | -use RecursiveDirectoryIterator; |
|
| 8 | -use RecursiveIteratorIterator; |
|
| 9 | -use PhpParser\Node\Stmt\Class_; |
|
| 10 | -use PhpParser\Node\Stmt\Namespace_; |
|
| 11 | 7 | use PhpParser\NodeTraverser; |
| 12 | 8 | use PhpParser\NodeVisitor\NameResolver; |
| 9 | +use PhpParser\Node\Stmt\Class_; |
|
| 10 | +use PhpParser\Node\Stmt\Namespace_; |
|
| 13 | 11 | use PhpParser\ParserFactory; |
| 14 | -use Illuminate\Database\Eloquent\Model; |
|
| 12 | +use RecursiveDirectoryIterator; |
|
| 13 | +use RecursiveIteratorIterator; |
|
| 14 | +use SplFileInfo; |
|
| 15 | 15 | |
| 16 | 16 | class ModelMapper |
| 17 | 17 | { |
@@ -2,18 +2,18 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Mtolhuys\LaravelSchematics\Http\Controllers; |
| 4 | 4 | |
| 5 | +use Illuminate\Contracts\View\Factory; |
|
| 6 | +use Illuminate\Routing\Controller; |
|
| 7 | +use Illuminate\Support\Facades\Cache; |
|
| 8 | +use Illuminate\Support\Facades\DB; |
|
| 9 | +use Illuminate\Support\Facades\Schema; |
|
| 10 | +use Illuminate\View\View; |
|
| 5 | 11 | use Mtolhuys\LaravelSchematics\Actions\GenerateRelation; |
| 6 | 12 | use Mtolhuys\LaravelSchematics\Actions\RemoveRelation; |
| 7 | 13 | use Mtolhuys\LaravelSchematics\Http\Requests\NewRelationRequest; |
| 8 | 14 | use Mtolhuys\LaravelSchematics\Http\Requests\RemoveRelationRequest; |
| 9 | 15 | use Mtolhuys\LaravelSchematics\Services\ModelMapper; |
| 10 | 16 | use Mtolhuys\LaravelSchematics\Services\RelationMapper; |
| 11 | -use Illuminate\Contracts\View\Factory; |
|
| 12 | -use Illuminate\Support\Facades\Schema; |
|
| 13 | -use Illuminate\Support\Facades\Cache; |
|
| 14 | -use Illuminate\Routing\Controller; |
|
| 15 | -use Illuminate\Support\Facades\DB; |
|
| 16 | -use Illuminate\View\View; |
|
| 17 | 17 | use ReflectionException; |
| 18 | 18 | |
| 19 | 19 | class SchematicsController extends Controller |