Skip to content

Commit

Permalink
♻️ Change File model usage to new model
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonJnsson committed May 10, 2022
1 parent 14d1408 commit ed2862e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/SyncFilesToOtherDisk.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
use MorningTrain\Laravel\Fields\Files\Models\File;
use \App\Models\File;

class SyncFilesToOtherDisk extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Course/CourseCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Illuminate\Database\Eloquent\Concerns\HasTimestamps;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use MorningTrain\Laravel\Fields\Files\Models\File;
use \App\Models\File;

class CourseCategory extends Model
{
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Projects/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use MorningTrain\Laravel\Fields\Files\Models\File;
use \App\Models\File;

class Project extends Model implements Moderateable, OwnedByUser
{
Expand Down
2 changes: 1 addition & 1 deletion database/factories/CourseCategoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use App\Models\Course\CourseCategory;
use Faker\Generator as Faker;
use Illuminate\Support\Str;
use MorningTrain\Laravel\Fields\Files\Models\File;
use \App\Models\File;

$factory->define(CourseCategory::class, function (Faker $faker) {

Expand Down
2 changes: 1 addition & 1 deletion database/factories/FileFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use MorningTrain\Laravel\Fields\Files\Models\File;
use \App\Models\File;
use Faker\Generator as Faker;

$factory->define(File::class, function (Faker $faker) {
Expand Down
2 changes: 1 addition & 1 deletion database/seeds/CourseCategorySeeder.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Illuminate\Database\Seeder;
use MorningTrain\Laravel\Fields\Files\Models\File;
use \App\Models\File;

class CourseCategorySeeder extends Seeder
{
Expand Down

0 comments on commit ed2862e

Please sign in to comment.