From 18eab8f5a2e073314018d84e007089ca6bac9983 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 25 Feb 2025 12:56:19 +0000 Subject: [PATCH 01/32] Convert string references to `::class` PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP. --- .../2022_01_23_232931_update_comments_table.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/database/migrations/2022_01_23_232931_update_comments_table.php b/database/migrations/2022_01_23_232931_update_comments_table.php index 760d587463..be9bf16686 100644 --- a/database/migrations/2022_01_23_232931_update_comments_table.php +++ b/database/migrations/2022_01_23_232931_update_comments_table.php @@ -35,42 +35,42 @@ public function up(): void ->whereNotNull('torrent_id') ->update([ 'commentable_id' => DB::raw('torrent_id'), - 'commentable_type' => 'App\Models\Torrent', + 'commentable_type' => \App\Models\Torrent::class, ]); DB::table('comments') ->whereNotNull('article_id') ->update([ 'commentable_id' => DB::raw('article_id'), - 'commentable_type' => 'App\Models\Article', + 'commentable_type' => \App\Models\Article::class, ]); DB::table('comments') ->whereNotNull('requests_id') ->update([ 'commentable_id' => DB::raw('requests_id'), - 'commentable_type' => 'App\Models\TorrentRequest', + 'commentable_type' => \App\Models\TorrentRequest::class, ]); DB::table('comments') ->whereNotNull('collection_id') ->update([ 'commentable_id' => DB::raw('collection_id'), - 'commentable_type' => 'App\Models\Collection', + 'commentable_type' => \App\Models\Collection::class, ]); DB::table('comments') ->whereNotNull('playlist_id') ->update([ 'commentable_id' => DB::raw('playlist_id'), - 'commentable_type' => 'App\Models\Playlist', + 'commentable_type' => \App\Models\Playlist::class, ]); DB::table('comments') ->whereNotNull('ticket_id') ->update([ 'commentable_id' => DB::raw('ticket_id'), - 'commentable_type' => 'App\Models\Ticket', + 'commentable_type' => \App\Models\Ticket::class, ]); Schema::table('comments', function (Blueprint $table): void { From 14e13e841050b9be0f716e755445938e2e254fee Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 25 Feb 2025 12:56:21 +0000 Subject: [PATCH 02/32] Use Faker methods Accessing Faker properties was deprecated in Faker 1.14. --- database/factories/ConversationFactory.php | 2 +- database/factories/ForumFactory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/factories/ConversationFactory.php b/database/factories/ConversationFactory.php index 8dc79fba68..3a99acfbc9 100644 --- a/database/factories/ConversationFactory.php +++ b/database/factories/ConversationFactory.php @@ -33,7 +33,7 @@ class ConversationFactory extends Factory public function definition(): array { return [ - 'subject' => $this->faker->text, + 'subject' => $this->faker->text(), 'created_at' => $this->faker->optional()->dateTime(), 'updated_at' => $this->faker->optional()->dateTime(), ]; diff --git a/database/factories/ForumFactory.php b/database/factories/ForumFactory.php index cb2e0ab18b..0f8031d9e0 100644 --- a/database/factories/ForumFactory.php +++ b/database/factories/ForumFactory.php @@ -40,7 +40,7 @@ public function definition(): array 'last_topic_id' => null, 'last_post_id' => null, 'last_post_user_id' => null, - 'last_post_created_at' => $this->faker->dateTime, + 'last_post_created_at' => $this->faker->dateTime(), 'name' => $this->faker->name(), 'slug' => $this->faker->slug(), 'description' => $this->faker->text(), From 51394a0a10484e03460e43efe5f37078a15d5575 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 25 Feb 2025 12:56:23 +0000 Subject: [PATCH 03/32] Remove unnecessary `$model` property --- database/factories/ApplicationFactory.php | 5 ----- database/factories/ApplicationImageProofFactory.php | 5 ----- database/factories/ApplicationUrlProofFactory.php | 5 ----- database/factories/ArticleFactory.php | 5 ----- database/factories/AuditFactory.php | 5 ----- database/factories/BanFactory.php | 5 ----- database/factories/BlacklistClientFactory.php | 5 ----- database/factories/BlockedIpFactory.php | 5 ----- database/factories/BonExchangeFactory.php | 5 ----- database/factories/BonTransactionsFactory.php | 5 ----- database/factories/BookmarkFactory.php | 5 ----- database/factories/BotFactory.php | 5 ----- database/factories/CategoryFactory.php | 5 ----- database/factories/ChatStatusFactory.php | 5 ----- database/factories/ChatroomFactory.php | 5 ----- database/factories/CollectionFactory.php | 5 ----- database/factories/CommentFactory.php | 5 ----- database/factories/CompanyFactory.php | 5 ----- database/factories/ConversationFactory.php | 5 ----- database/factories/CreditFactory.php | 5 ----- database/factories/DistributorFactory.php | 5 ----- database/factories/DonationGatewayFactory.php | 5 ----- database/factories/DonationPackageFactory.php | 5 ----- database/factories/EpisodeFactory.php | 5 ----- database/factories/FailedLoginAttemptFactory.php | 5 ----- database/factories/FeaturedTorrentFactory.php | 5 ----- database/factories/ForumCategoryFactory.php | 5 ----- database/factories/ForumFactory.php | 5 ----- database/factories/ForumPermissionFactory.php | 5 ----- database/factories/FreeleechTokenFactory.php | 5 ----- database/factories/GenreFactory.php | 5 ----- database/factories/GitUpdateFactory.php | 5 ----- database/factories/GroupFactory.php | 5 ----- database/factories/GuestStarFactory.php | 5 ----- database/factories/HistoryFactory.php | 5 ----- database/factories/InternalFactory.php | 5 ----- database/factories/InviteFactory.php | 5 ----- database/factories/KeywordFactory.php | 5 ----- database/factories/LikeFactory.php | 5 ----- database/factories/MediaLanguageFactory.php | 5 ----- database/factories/MessageFactory.php | 5 ----- database/factories/MovieFactory.php | 5 ----- database/factories/NetworkFactory.php | 5 ----- database/factories/NoteFactory.php | 5 ----- database/factories/NotificationFactory.php | 5 ----- database/factories/OccupationFactory.php | 5 ----- database/factories/OptionFactory.php | 5 ----- database/factories/PageFactory.php | 5 ----- database/factories/PeerFactory.php | 5 ----- database/factories/PersonFactory.php | 5 ----- database/factories/PersonalFreeleechFactory.php | 5 ----- database/factories/PlaylistFactory.php | 5 ----- database/factories/PlaylistTorrentFactory.php | 5 ----- database/factories/PollFactory.php | 5 ----- database/factories/PostFactory.php | 5 ----- database/factories/PrivateMessageFactory.php | 5 ----- database/factories/RecommendationFactory.php | 5 ----- database/factories/RegionFactory.php | 5 ----- database/factories/ReportFactory.php | 5 ----- database/factories/ResolutionFactory.php | 5 ----- database/factories/ResurrectionFactory.php | 5 ----- database/factories/RssFactory.php | 5 ----- database/factories/SeasonFactory.php | 5 ----- database/factories/SeedboxFactory.php | 5 ----- database/factories/SubscriptionFactory.php | 5 ----- database/factories/SubtitleFactory.php | 5 ----- database/factories/ThankFactory.php | 5 ----- database/factories/TicketAttachmentFactory.php | 5 ----- database/factories/TicketCategoryFactory.php | 5 ----- database/factories/TicketFactory.php | 5 ----- database/factories/TicketPriorityFactory.php | 5 ----- database/factories/TopicFactory.php | 5 ----- database/factories/TorrentDownloadFactory.php | 5 ----- database/factories/TorrentFactory.php | 5 ----- database/factories/TorrentFileFactory.php | 5 ----- database/factories/TorrentRequestBountyFactory.php | 5 ----- database/factories/TorrentRequestClaimFactory.php | 5 ----- database/factories/TorrentRequestFactory.php | 5 ----- database/factories/TvFactory.php | 5 ----- database/factories/TypeFactory.php | 5 ----- database/factories/UserAudibleFactory.php | 5 ----- database/factories/UserEchoFactory.php | 5 ----- database/factories/UserFactory.php | 5 ----- database/factories/UserNotificationFactory.php | 5 ----- database/factories/UserPrivacyFactory.php | 5 ----- database/factories/UserSettingFactory.php | 5 ----- database/factories/VoterFactory.php | 5 ----- database/factories/WarningFactory.php | 5 ----- database/factories/WatchlistFactory.php | 5 ----- database/factories/WishFactory.php | 5 ----- 90 files changed, 450 deletions(-) diff --git a/database/factories/ApplicationFactory.php b/database/factories/ApplicationFactory.php index f0929ea883..7b7ca6fe9d 100644 --- a/database/factories/ApplicationFactory.php +++ b/database/factories/ApplicationFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class ApplicationFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Application::class; - /** * Define the model's default state. */ diff --git a/database/factories/ApplicationImageProofFactory.php b/database/factories/ApplicationImageProofFactory.php index 8fb38ca466..22f53479aa 100644 --- a/database/factories/ApplicationImageProofFactory.php +++ b/database/factories/ApplicationImageProofFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class ApplicationImageProofFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = ApplicationImageProof::class; - /** * Define the model's default state. */ diff --git a/database/factories/ApplicationUrlProofFactory.php b/database/factories/ApplicationUrlProofFactory.php index 44282bc621..8d3ddb5a9f 100644 --- a/database/factories/ApplicationUrlProofFactory.php +++ b/database/factories/ApplicationUrlProofFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class ApplicationUrlProofFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = ApplicationUrlProof::class; - /** * Define the model's default state. */ diff --git a/database/factories/ArticleFactory.php b/database/factories/ArticleFactory.php index 7b29c5912d..cd7d8ec04b 100644 --- a/database/factories/ArticleFactory.php +++ b/database/factories/ArticleFactory.php @@ -23,11 +23,6 @@ /** @extends Factory
*/ class ArticleFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Article::class; - /** * Define the model's default state. */ diff --git a/database/factories/AuditFactory.php b/database/factories/AuditFactory.php index 1b4ec7b312..6fa33eae20 100644 --- a/database/factories/AuditFactory.php +++ b/database/factories/AuditFactory.php @@ -24,11 +24,6 @@ /** @extends Factory */ class AuditFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Audit::class; - /** * Define the model's default state. * diff --git a/database/factories/BanFactory.php b/database/factories/BanFactory.php index ecd4a18f5c..ecbd588d83 100644 --- a/database/factories/BanFactory.php +++ b/database/factories/BanFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class BanFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Ban::class; - /** * Define the model's default state. */ diff --git a/database/factories/BlacklistClientFactory.php b/database/factories/BlacklistClientFactory.php index 437514f83c..fcbfee5613 100644 --- a/database/factories/BlacklistClientFactory.php +++ b/database/factories/BlacklistClientFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class BlacklistClientFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = BlacklistClient::class; - /** * Define the model's default state. */ diff --git a/database/factories/BlockedIpFactory.php b/database/factories/BlockedIpFactory.php index e579989529..55b153ace5 100644 --- a/database/factories/BlockedIpFactory.php +++ b/database/factories/BlockedIpFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class BlockedIpFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = BlockedIp::class; - /** * Define the model's default state. */ diff --git a/database/factories/BonExchangeFactory.php b/database/factories/BonExchangeFactory.php index 5c7e576c14..48e626fae3 100644 --- a/database/factories/BonExchangeFactory.php +++ b/database/factories/BonExchangeFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class BonExchangeFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = BonExchange::class; - /** * Define the model's default state. */ diff --git a/database/factories/BonTransactionsFactory.php b/database/factories/BonTransactionsFactory.php index a2cf27dd24..bdd348b273 100644 --- a/database/factories/BonTransactionsFactory.php +++ b/database/factories/BonTransactionsFactory.php @@ -24,11 +24,6 @@ /** @extends Factory */ class BonTransactionsFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = BonTransactions::class; - /** * Define the model's default state. */ diff --git a/database/factories/BookmarkFactory.php b/database/factories/BookmarkFactory.php index 518a9338aa..858d963e1b 100644 --- a/database/factories/BookmarkFactory.php +++ b/database/factories/BookmarkFactory.php @@ -24,11 +24,6 @@ /** @extends Factory */ class BookmarkFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Bookmark::class; - /** * Define the model's default state. */ diff --git a/database/factories/BotFactory.php b/database/factories/BotFactory.php index 0eb776d9e9..8acd063737 100644 --- a/database/factories/BotFactory.php +++ b/database/factories/BotFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class BotFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Bot::class; - /** * Define the model's default state. */ diff --git a/database/factories/CategoryFactory.php b/database/factories/CategoryFactory.php index 5df2a0f319..352c922355 100644 --- a/database/factories/CategoryFactory.php +++ b/database/factories/CategoryFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class CategoryFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Category::class; - /** * Define the model's default state. */ diff --git a/database/factories/ChatStatusFactory.php b/database/factories/ChatStatusFactory.php index f6867e13f2..3ef4ee4631 100644 --- a/database/factories/ChatStatusFactory.php +++ b/database/factories/ChatStatusFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class ChatStatusFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = ChatStatus::class; - /** * Define the model's default state. */ diff --git a/database/factories/ChatroomFactory.php b/database/factories/ChatroomFactory.php index 9b362e92bb..f4b2f3dbd1 100644 --- a/database/factories/ChatroomFactory.php +++ b/database/factories/ChatroomFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class ChatroomFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Chatroom::class; - /** * Define the model's default state. */ diff --git a/database/factories/CollectionFactory.php b/database/factories/CollectionFactory.php index 6d0b4b3bb5..bd932da23e 100644 --- a/database/factories/CollectionFactory.php +++ b/database/factories/CollectionFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class CollectionFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Collection::class; - /** * Define the model's default state. */ diff --git a/database/factories/CommentFactory.php b/database/factories/CommentFactory.php index 59648b88fe..7d9d65886d 100644 --- a/database/factories/CommentFactory.php +++ b/database/factories/CommentFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class CommentFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Comment::class; - /** * Define the model's default state. */ diff --git a/database/factories/CompanyFactory.php b/database/factories/CompanyFactory.php index 3aa2d453fc..f37a191e28 100644 --- a/database/factories/CompanyFactory.php +++ b/database/factories/CompanyFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class CompanyFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Company::class; - /** * Define the model's default state. */ diff --git a/database/factories/ConversationFactory.php b/database/factories/ConversationFactory.php index 3a99acfbc9..261c4deb04 100644 --- a/database/factories/ConversationFactory.php +++ b/database/factories/ConversationFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class ConversationFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Conversation::class; - /** * Define the model's default state. */ diff --git a/database/factories/CreditFactory.php b/database/factories/CreditFactory.php index 2967279914..f9a1022c16 100644 --- a/database/factories/CreditFactory.php +++ b/database/factories/CreditFactory.php @@ -26,11 +26,6 @@ /** @extends Factory */ class CreditFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Credit::class; - /** * Define the model's default state. */ diff --git a/database/factories/DistributorFactory.php b/database/factories/DistributorFactory.php index 3daf6e4631..a0204e3cc4 100644 --- a/database/factories/DistributorFactory.php +++ b/database/factories/DistributorFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class DistributorFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Distributor::class; - /** * Define the model's default state. */ diff --git a/database/factories/DonationGatewayFactory.php b/database/factories/DonationGatewayFactory.php index f477272682..5e6b1a7aed 100644 --- a/database/factories/DonationGatewayFactory.php +++ b/database/factories/DonationGatewayFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class DonationGatewayFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = DonationGateway::class; - /** * Define the model's default state. */ diff --git a/database/factories/DonationPackageFactory.php b/database/factories/DonationPackageFactory.php index a6641e615c..972cafd527 100644 --- a/database/factories/DonationPackageFactory.php +++ b/database/factories/DonationPackageFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class DonationPackageFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = DonationPackage::class; - /** * Define the model's default state. */ diff --git a/database/factories/EpisodeFactory.php b/database/factories/EpisodeFactory.php index aca627277b..e3d7e70808 100644 --- a/database/factories/EpisodeFactory.php +++ b/database/factories/EpisodeFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class EpisodeFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Episode::class; - /** * Define the model's default state. */ diff --git a/database/factories/FailedLoginAttemptFactory.php b/database/factories/FailedLoginAttemptFactory.php index 8b74c373b9..bd11092081 100644 --- a/database/factories/FailedLoginAttemptFactory.php +++ b/database/factories/FailedLoginAttemptFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class FailedLoginAttemptFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = FailedLoginAttempt::class; - /** * Define the model's default state. */ diff --git a/database/factories/FeaturedTorrentFactory.php b/database/factories/FeaturedTorrentFactory.php index d4f01dbbce..f757719659 100644 --- a/database/factories/FeaturedTorrentFactory.php +++ b/database/factories/FeaturedTorrentFactory.php @@ -24,11 +24,6 @@ /** @extends Factory */ class FeaturedTorrentFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = FeaturedTorrent::class; - /** * Define the model's default state. */ diff --git a/database/factories/ForumCategoryFactory.php b/database/factories/ForumCategoryFactory.php index 263f74adf8..c86a2203e7 100644 --- a/database/factories/ForumCategoryFactory.php +++ b/database/factories/ForumCategoryFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class ForumCategoryFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = ForumCategory::class; - /** * Define the model's default state. */ diff --git a/database/factories/ForumFactory.php b/database/factories/ForumFactory.php index 0f8031d9e0..c046eadcfc 100644 --- a/database/factories/ForumFactory.php +++ b/database/factories/ForumFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class ForumFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Forum::class; - /** * Define the model's default state. */ diff --git a/database/factories/ForumPermissionFactory.php b/database/factories/ForumPermissionFactory.php index 82325cb13f..cad2c96c71 100644 --- a/database/factories/ForumPermissionFactory.php +++ b/database/factories/ForumPermissionFactory.php @@ -24,11 +24,6 @@ /** @extends Factory */ class ForumPermissionFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = ForumPermission::class; - /** * Define the model's default state. */ diff --git a/database/factories/FreeleechTokenFactory.php b/database/factories/FreeleechTokenFactory.php index 7ae90f4345..9adb045dcb 100644 --- a/database/factories/FreeleechTokenFactory.php +++ b/database/factories/FreeleechTokenFactory.php @@ -24,11 +24,6 @@ /** @extends Factory */ class FreeleechTokenFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = FreeleechToken::class; - /** * Define the model's default state. */ diff --git a/database/factories/GenreFactory.php b/database/factories/GenreFactory.php index 37664f8514..4b248e099a 100644 --- a/database/factories/GenreFactory.php +++ b/database/factories/GenreFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class GenreFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Genre::class; - /** * Define the model's default state. */ diff --git a/database/factories/GitUpdateFactory.php b/database/factories/GitUpdateFactory.php index e828dcdb62..428fb7537a 100644 --- a/database/factories/GitUpdateFactory.php +++ b/database/factories/GitUpdateFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class GitUpdateFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = GitUpdate::class; - /** * Define the model's default state. */ diff --git a/database/factories/GroupFactory.php b/database/factories/GroupFactory.php index 1d85c5c8fa..123944c486 100644 --- a/database/factories/GroupFactory.php +++ b/database/factories/GroupFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class GroupFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Group::class; - /** * Define the model's default state. */ diff --git a/database/factories/GuestStarFactory.php b/database/factories/GuestStarFactory.php index 93f7c65eb7..bf2ff5ce34 100644 --- a/database/factories/GuestStarFactory.php +++ b/database/factories/GuestStarFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class GuestStarFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = GuestStar::class; - /** * Define the model's default state. */ diff --git a/database/factories/HistoryFactory.php b/database/factories/HistoryFactory.php index 70cf19d506..904cc77f13 100644 --- a/database/factories/HistoryFactory.php +++ b/database/factories/HistoryFactory.php @@ -24,11 +24,6 @@ /** @extends Factory */ class HistoryFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = History::class; - /** * Define the model's default state. */ diff --git a/database/factories/InternalFactory.php b/database/factories/InternalFactory.php index 33bb3355f2..1a67a16078 100644 --- a/database/factories/InternalFactory.php +++ b/database/factories/InternalFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class InternalFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Internal::class; - /** * Define the model's default state. */ diff --git a/database/factories/InviteFactory.php b/database/factories/InviteFactory.php index e68f748f59..9b424bfb20 100644 --- a/database/factories/InviteFactory.php +++ b/database/factories/InviteFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class InviteFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Invite::class; - /** * Define the model's default state. */ diff --git a/database/factories/KeywordFactory.php b/database/factories/KeywordFactory.php index 0228834986..f90986ec6e 100644 --- a/database/factories/KeywordFactory.php +++ b/database/factories/KeywordFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class KeywordFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Keyword::class; - /** * Define the model's default state. */ diff --git a/database/factories/LikeFactory.php b/database/factories/LikeFactory.php index c854e70cb4..63ba7e9879 100644 --- a/database/factories/LikeFactory.php +++ b/database/factories/LikeFactory.php @@ -24,11 +24,6 @@ /** @extends Factory */ class LikeFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Like::class; - /** * Define the model's default state. */ diff --git a/database/factories/MediaLanguageFactory.php b/database/factories/MediaLanguageFactory.php index 5d09fa07ba..d57620fe15 100644 --- a/database/factories/MediaLanguageFactory.php +++ b/database/factories/MediaLanguageFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class MediaLanguageFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = MediaLanguage::class; - /** * Define the model's default state. */ diff --git a/database/factories/MessageFactory.php b/database/factories/MessageFactory.php index 24814ef339..146e193429 100644 --- a/database/factories/MessageFactory.php +++ b/database/factories/MessageFactory.php @@ -25,11 +25,6 @@ /** @extends Factory */ class MessageFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Message::class; - /** * Define the model's default state. */ diff --git a/database/factories/MovieFactory.php b/database/factories/MovieFactory.php index 475f3bae3f..77c424be08 100644 --- a/database/factories/MovieFactory.php +++ b/database/factories/MovieFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class MovieFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Movie::class; - /** * Define the model's default state. */ diff --git a/database/factories/NetworkFactory.php b/database/factories/NetworkFactory.php index f3ebee2e2c..73bbc67293 100644 --- a/database/factories/NetworkFactory.php +++ b/database/factories/NetworkFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class NetworkFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Network::class; - /** * Define the model's default state. */ diff --git a/database/factories/NoteFactory.php b/database/factories/NoteFactory.php index ce5c7a041e..e50e562ff0 100644 --- a/database/factories/NoteFactory.php +++ b/database/factories/NoteFactory.php @@ -23,11 +23,6 @@ /** @extends Factory */ class NoteFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Note::class; - /** * Define the model's default state. */ diff --git a/database/factories/NotificationFactory.php b/database/factories/NotificationFactory.php index 74725b6de7..05d3eae53c 100644 --- a/database/factories/NotificationFactory.php +++ b/database/factories/NotificationFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class NotificationFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Notification::class; - /** * Define the model's default state. */ diff --git a/database/factories/OccupationFactory.php b/database/factories/OccupationFactory.php index 40acf77f4e..3620ba7563 100644 --- a/database/factories/OccupationFactory.php +++ b/database/factories/OccupationFactory.php @@ -22,11 +22,6 @@ /** @extends Factory */ class OccupationFactory extends Factory { - /** - * The name of the factory's corresponding model. - */ - protected $model = Occupation::class; - /** * Define the model's default state. */ diff --git a/database/factories/OptionFactory.php b/database/factories/OptionFactory.php index b05b71879f..2f4baa8fbb 100644 --- a/database/factories/OptionFactory.php +++ b/database/factories/OptionFactory.php @@ -23,11 +23,6 @@ /** @extends Factory