-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,7 @@ public function run(): void | |
'name' => 'Test User', | ||
'email' => '[email protected]', | ||
]); | ||
|
||
$this->call(TagsSeeder::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<?php | ||
|
||
namespace Database\Seeders; | ||
|
||
use Illuminate\Database\Console\Seeds\WithoutModelEvents; | ||
use Illuminate\Database\Seeder; | ||
use Spatie\Tags\Tag; | ||
|
||
class TagsSeeder extends Seeder | ||
{ | ||
public $list = [ | ||
'API Resources', | ||
'Artisan Console', | ||
'Asset Bundling', | ||
'Authentication', | ||
'Authorization', | ||
'Blade Templates', | ||
'Breeze', | ||
'Broadcasting', | ||
'Browser Tests', | ||
'Cache', | ||
'Cashier', | ||
'Collections', | ||
'Collections', | ||
'Console Tests', | ||
'Context', | ||
'Contracts', | ||
'Controllers', | ||
'CSRF Protection', | ||
'Database Tests', | ||
'Deployment', | ||
'Dusk', | ||
'Echo', | ||
'Email Verification', | ||
'Encryption', | ||
'Envoy', | ||
'Envoyer', | ||
'Error Handling', | ||
'Events', | ||
'Facades', | ||
'Factories', | ||
'File Storage', | ||
'Folio', | ||
'Forge', | ||
'Fortify', | ||
'Hashing', | ||
'Helpers', | ||
'Herd', | ||
'Homestead', | ||
'Horizon', | ||
'HTTP Client', | ||
'HTTP Tests', | ||
'Inertia', | ||
'Jetstream', | ||
'Livewire', | ||
'Localization', | ||
'Logging', | ||
'Mail', | ||
'Middleware', | ||
'Migrations', | ||
'Mix', | ||
'Mocking', | ||
'Mutators / Casts', | ||
'Notifications', | ||
'Nova', | ||
'Octane', | ||
'Package Development', | ||
'Pagination', | ||
'Passport', | ||
'Password Reset', | ||
'Pennant', | ||
'Pint', | ||
'Precognition', | ||
'Processes', | ||
'Prompts', | ||
'Pulse', | ||
'Query Builder', | ||
'Queues', | ||
'Rate Limiting', | ||
'Redis', | ||
'Relationships', | ||
'Request Lifecycle', | ||
'Requests', | ||
'Responses', | ||
'Reverb', | ||
'Routing', | ||
'Sail', | ||
'Sanctum', | ||
'Scout', | ||
'Seeding', | ||
'Serialization', | ||
'Service Container', | ||
'Service Providers', | ||
'Session', | ||
'Socialite', | ||
'Spark', | ||
'Strings', | ||
'Task Scheduling', | ||
'Telescope', | ||
'URL Generation', | ||
'Valet', | ||
'Validation', | ||
'Vapor', | ||
'Views', | ||
]; | ||
|
||
public function run(): void | ||
{ | ||
Tag::findOrCreate($this->list); | ||
} | ||
} |