@@ -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,16 +2,16 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Mtolhuys\LaravelSchematics\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Mtolhuys\LaravelSchematics\Actions\GenerateRelation; |
|
| 6 | -use Mtolhuys\LaravelSchematics\Http\Requests\NewRelationRequest; |
|
| 7 | -use Mtolhuys\LaravelSchematics\Services\ModelMapper; |
|
| 8 | -use Mtolhuys\LaravelSchematics\Services\RelationMapper; |
|
| 9 | 5 | use Illuminate\Contracts\View\Factory; |
| 10 | -use Illuminate\Support\Facades\Schema; |
|
| 11 | -use Illuminate\Support\Facades\Cache; |
|
| 12 | 6 | use Illuminate\Routing\Controller; |
| 7 | +use Illuminate\Support\Facades\Cache; |
|
| 13 | 8 | use Illuminate\Support\Facades\DB; |
| 9 | +use Illuminate\Support\Facades\Schema; |
|
| 14 | 10 | use Illuminate\View\View; |
| 11 | +use Mtolhuys\LaravelSchematics\Actions\GenerateRelation; |
|
| 12 | +use Mtolhuys\LaravelSchematics\Http\Requests\NewRelationRequest; |
|
| 13 | +use Mtolhuys\LaravelSchematics\Services\ModelMapper; |
|
| 14 | +use Mtolhuys\LaravelSchematics\Services\RelationMapper; |
|
| 15 | 15 | use ReflectionException; |
| 16 | 16 | |
| 17 | 17 | class SchematicsController extends Controller |