1
0
Fork 0
Commit graph

62 commits

Author SHA1 Message Date
f6fd635078 app/Http/Requests/CharacterProfessionRequest.php: Rename to CharacterProfessionImportRequest 2021-08-29 11:50:57 +02:00
08c60a6842 app/Jobs/ImportProfession.php: Fixing Exception class used incorrectly.
"Exception" class used without "use Exception;" results in php trying to find an "App\Jobs\Exception" class (which there is none of)
2021-08-28 17:47:05 +02:00
8eda7a315c app/Jobs/ImportProfession.php: make $character variable optional and require $user. 2021-08-28 17:42:29 +02:00
f82f7c3571 app/Jobs/ImportProfession.php: Typo fix. 2021-08-28 16:57:59 +02:00
df08af6f7d app/Models/User.php: do not reuse "characters" relationship to define "alt_characters" relationship, use a regular hasMany() 2021-08-28 15:06:30 +02:00
77e8792edc app/Models/User.php: sort main characters first for "characters" relationship. 2021-08-28 15:04:32 +02:00
f11b996ebf app/View/Components/Notifications.php: minor fix. don't need $cssClasses array.
e
2021-08-11 19:50:24 +02:00
c14166f682 app/Models/User.php: Add character_id to $fillable 2021-08-10 13:01:16 +02:00
fe7d275caf app/Http/Livewire/Recipes.php: translate the placeholder value in the profession option array. 2021-07-31 14:15:35 +02:00
4b56c803a5 Adding app/Http/Controllers/LocaleSessionController.php 2021-07-30 13:32:36 +02:00
7a06097ae7 Adding app/Http/Middleware/Locale.php 2021-07-30 13:32:36 +02:00
ac7e64c75c Adding Item Page 2021-07-30 12:31:31 +02:00
6f7c65fab3 app/Models/Item.php: add reagent_for relationship. 2021-07-23 17:08:49 +02:00
f9d44de6cb Form: adding checkbox component. 2021-07-23 17:00:07 +02:00
d3eccc596f app/Models/Item.php: change recipe relationship from belongsTo to hasMany. 2021-07-23 13:33:10 +02:00
7df1e8345d app/Models/Item.php: add getRouteKeyName() 2021-07-23 13:27:18 +02:00
4628ce85ac app/Models/Character.php: Clear main character relationship if a main character is deleted. 2021-07-22 18:56:16 +02:00
f3314d106a app/Http/Controllers/ProfileController.php: in update() do not create hash for empty password. 2021-07-22 18:54:39 +02:00
52f565f04b app/Http/Controllers/ProfileController.php: in update() use Model::fill()
This is more generic as one only needs to add validated fields to Request object. and they will be saved automatically.
2021-07-22 18:50:13 +02:00
0fef5c77d0 app/Http/Controllers/ProfileController.php: Save character_id on update. 2021-07-22 18:27:20 +02:00
15808597c2 app/Http/Requests/UserRequest.php: Add character_id 2021-07-22 18:26:51 +02:00
2f215d0b82 Add user page. 2021-07-21 18:57:10 +02:00
52bd1012a5 app/Models/Character.php: Add isMain() 2021-07-21 18:15:44 +02:00
b73a8438d4 app/Models/User.php: Adding main_character relationship 2021-07-21 17:52:30 +02:00
b76a997948 Refactor UserController to ProfileController. 2021-07-20 15:38:57 +02:00
5117907a4d app/View/Components/Icon.php: rename view script 2021-07-20 15:24:42 +02:00
e4363c078a app/View/Components: minor fixes. 2021-07-20 15:21:40 +02:00
c662816c33 Adding app/View/Components/RaceIcon.php 2021-07-18 17:47:36 +02:00
bd21a64191 Adding user handling pages for admins. 2021-07-15 15:39:25 +02:00
c53a4155f4 app/Providers/AuthServiceProvider.php: adding "administrate" gate. 2021-07-15 15:37:34 +02:00
d8917e118b app/Http/Controllers/Auth/OAuthController.php: check trashed records before trying to login via oauth. 2021-07-13 18:47:24 +02:00
f09fea4f08 app/Models/User.php: Also delete characters when deleting the user. 2021-07-13 18:33:19 +02:00
866b374070 app/Http/Livewire/Form/CharacterForm.php: Do not include deleted rows in unique name validation. 2021-07-13 18:32:17 +02:00
c806f54ea2 app/Models/Character.php: Add soft deletes. 2021-07-13 18:25:31 +02:00
94a4d3994f app/Models/User.php: Add soft deletes. 2021-07-13 18:25:09 +02:00
52daa3b68f app/Models/User.php: adding getRoleAttribute() 2021-07-13 18:01:49 +02:00
0edb50c2ad app/Jobs/ImportProfession.php: Add concrete exception classes. 2021-07-11 16:37:29 +02:00
89d88110f5 app/Jobs/ImportProfession.php: add support for specialization. 2021-07-11 15:32:35 +02:00
ad66ef86ab app/Models/CharacterProfession.php: Add specialization relationship 2021-07-11 15:31:34 +02:00
87d1d6fd58 app/Models/Spell.php: add id to fillable array. 2021-07-11 15:29:32 +02:00
f105890494 app/Jobs/ImportProfession.php: fix a bug resulting in duplicate records instead of update existing.
We search for recipes by spell, but if a record existed before spell relationship was added. it's null and we wont find it, so we create a duplicated one.

This patch will also search for craft->name and update existing records.
2021-07-09 18:17:16 +02:00
61a6d366fd Adding Wowhead link component with WowheadPower Tooltip library. 2021-07-09 11:28:20 +02:00
103bdd43d1 app/Models/Recipe.php: Always load spell relationship. 2021-07-08 21:36:51 +02:00
645eaf676c app/Http/Livewire/Recipes.php: eager-load crafters relationship. 2021-07-08 21:36:29 +02:00
3b7f5d1501 app/Http/Livewire/Recipes.php: add spell relationship. 2021-07-08 20:39:13 +02:00
ff4f6b0612 app/Models/Recipe.php: in resolveRouteBinding() find record by spell slug first, then crafted item. 2021-07-08 20:31:39 +02:00
8c3a5ddef1 app/Models/Recipe.php: Change getNameAttribute() and getSlugAttribute() to prioritize spell relationship before craft. 2021-07-08 20:30:52 +02:00
21ff933939 app/Jobs/ImportProfession.php: Add support for recipe spell. 2021-07-08 20:30:52 +02:00
86a0474a89 app/Models/Recipe.php: add spell relationship. 2021-07-08 20:30:52 +02:00
78d5d8d50e Adding Spell Model 2021-07-08 20:30:52 +02:00