diff --git a/app/Http/Controllers/ChampionController.php b/app/Http/Controllers/ChampionController.php index 26cd9e2..dc2da65 100644 --- a/app/Http/Controllers/ChampionController.php +++ b/app/Http/Controllers/ChampionController.php @@ -2,9 +2,9 @@ namespace App\Http\Controllers; -use App\Models\Champion; use App\Http\Requests\StoreChampionRequest; use App\Http\Requests\UpdateChampionRequest; +use App\Models\Champion; class ChampionController extends Controller { diff --git a/app/Http/Controllers/ChampionSkinController.php b/app/Http/Controllers/ChampionSkinController.php index ba78756..4deb79a 100644 --- a/app/Http/Controllers/ChampionSkinController.php +++ b/app/Http/Controllers/ChampionSkinController.php @@ -2,9 +2,9 @@ namespace App\Http\Controllers; -use App\Models\ChampionSkin; use App\Http\Requests\StoreChampionSkinRequest; use App\Http\Requests\UpdateChampionSkinRequest; +use App\Models\ChampionSkin; class ChampionSkinController extends Controller { diff --git a/app/Models/Champion.php b/app/Models/Champion.php index 701f9ee..a7907ac 100644 --- a/app/Models/Champion.php +++ b/app/Models/Champion.php @@ -36,46 +36,46 @@ class Champion extends Model public function getChampionImageAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/splash-art'; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/splash-art'; } public function getChampionImageLoadingAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/portrait'; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/portrait'; } public function getChampionImageTileAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/tile'; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/tile'; } public function getChampionSquareImageAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/square'; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/square'; } public function getChampionAbilityIconQAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/ability-icon/q'; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/ability-icon/q'; } public function getChampionAbilityIconWAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/ability-icon/w'; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/ability-icon/w'; } public function getChampionAbilityIconEAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/ability-icon/e'; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/ability-icon/e'; } public function getChampionAbilityIconRAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/ability-icon/r'; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/ability-icon/r'; } public function getChampionAbilityIconPAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/ability-icon/p'; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/ability-icon/p'; } } diff --git a/app/Models/ChampionSkin.php b/app/Models/ChampionSkin.php index 23b5955..4e7ff74 100644 --- a/app/Models/ChampionSkin.php +++ b/app/Models/ChampionSkin.php @@ -43,16 +43,16 @@ class ChampionSkin extends Model public function getSkinImageAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/splash-art/centered/skin/' . $this->skin_id; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/splash-art/centered/skin/'.$this->skin_id; } public function getSkinImageLoadingAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/portrait/skin/' . $this->skin_id; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/portrait/skin/'.$this->skin_id; } public function getSkinImageTileAttribute() { - return 'https://cdn.communitydragon.org/latest/champion/' . $this->champion_id . '/tile/skin/' . $this->skin_id; + return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/tile/skin/'.$this->skin_id; } } diff --git a/app/Policies/ChampionPolicy.php b/app/Policies/ChampionPolicy.php index f038a40..b353988 100644 --- a/app/Policies/ChampionPolicy.php +++ b/app/Policies/ChampionPolicy.php @@ -4,7 +4,6 @@ namespace App\Policies; use App\Models\Champion; use App\Models\User; -use Illuminate\Auth\Access\Response; class ChampionPolicy { diff --git a/app/Policies/ChampionSkinPolicy.php b/app/Policies/ChampionSkinPolicy.php index 7719b08..0407029 100644 --- a/app/Policies/ChampionSkinPolicy.php +++ b/app/Policies/ChampionSkinPolicy.php @@ -4,7 +4,6 @@ namespace App\Policies; use App\Models\ChampionSkin; use App\Models\User; -use Illuminate\Auth\Access\Response; class ChampionSkinPolicy { diff --git a/composer.lock b/composer.lock index a879a14..d8cf31c 100644 --- a/composer.lock +++ b/composer.lock @@ -7017,16 +7017,16 @@ }, { "name": "laravel/pint", - "version": "v1.13.3", + "version": "v1.13.5", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "93b2d0d49719bc6e444ba21cd4dbbccec935413d" + "reference": "df105cf8ce7a8f0b8a9425ff45cd281a5448e423" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/93b2d0d49719bc6e444ba21cd4dbbccec935413d", - "reference": "93b2d0d49719bc6e444ba21cd4dbbccec935413d", + "url": "https://api.github.com/repos/laravel/pint/zipball/df105cf8ce7a8f0b8a9425ff45cd281a5448e423", + "reference": "df105cf8ce7a8f0b8a9425ff45cd281a5448e423", "shasum": "" }, "require": { @@ -7038,12 +7038,12 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.34.1", - "illuminate/view": "^10.23.1", + "illuminate/view": "^10.26.2", "laravel-zero/framework": "^10.1.2", "mockery/mockery": "^1.6.6", "nunomaduro/larastan": "^2.6.4", "nunomaduro/termwind": "^1.15.1", - "pestphp/pest": "^2.18.2" + "pestphp/pest": "^2.20.0" }, "bin": [ "builds/pint" @@ -7079,7 +7079,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2023-10-10T15:39:09+00:00" + "time": "2023-10-26T09:26:10+00:00" }, { "name": "laravel/sail", diff --git a/config/sluggable.php b/config/sluggable.php index 2b1495b..ca0c661 100644 --- a/config/sluggable.php +++ b/config/sluggable.php @@ -17,7 +17,6 @@ return [ * * Defaults to null, which uses the toString() method on your model. */ - 'source' => null, /** @@ -25,7 +24,6 @@ return [ * no length restrictions are enforced. Set it to a positive integer if you * want to make sure your slugs aren't too long. */ - 'maxLength' => null, /** @@ -40,7 +38,6 @@ return [ * * "my source string" -> "my-source-st" */ - 'maxLengthKeepWords' => true, /** @@ -58,13 +55,11 @@ return [ * * 'method' => array('Str','slug'), */ - 'method' => null, /** * Separator to use when generating slugs. Defaults to a hyphen. */ - 'separator' => '-', /** @@ -76,7 +71,6 @@ return [ * my-slug-1 * my-slug-2 */ - 'unique' => true, /** @@ -87,7 +81,6 @@ return [ * "similar" slugs. The closure should return the new unique * suffix to append to the slug. */ - 'uniqueSuffix' => null, /** @@ -107,7 +100,6 @@ return [ * If set to "false", then a new slug could duplicate one that exists on a trashed model. * If set to "true", then uniqueness is enforced across trashed and existing models. */ - 'includeTrashed' => false, /** @@ -133,7 +125,6 @@ return [ * * and continue from there. */ - 'reserved' => null, /** @@ -146,7 +137,6 @@ return [ * is probably not a good idea from an SEO point of view. * Only set this to true if you understand the possible consequences. */ - 'onUpdate' => false, /** diff --git a/database/seeders/ChampionSeeder.php b/database/seeders/ChampionSeeder.php index d391999..e980555 100644 --- a/database/seeders/ChampionSeeder.php +++ b/database/seeders/ChampionSeeder.php @@ -2,7 +2,6 @@ namespace Database\Seeders; -use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; class ChampionSeeder extends Seeder diff --git a/database/seeders/ChampionSkinSeeder.php b/database/seeders/ChampionSkinSeeder.php index 50356cf..ff08d31 100644 --- a/database/seeders/ChampionSkinSeeder.php +++ b/database/seeders/ChampionSkinSeeder.php @@ -2,7 +2,6 @@ namespace Database\Seeders; -use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; class ChampionSkinSeeder extends Seeder diff --git a/lang/nl/passwords.php b/lang/nl/passwords.php index ba53458..2318437 100644 --- a/lang/nl/passwords.php +++ b/lang/nl/passwords.php @@ -17,6 +17,6 @@ return [ 'sent' => 'We hebben je de link om je wachtwoord te resetten gemaild.', 'throttled' => 'Wacht even voordat u het opnieuw probeert.', 'token' => 'Wachtwoordreset token is ongeldig.', - 'user' => "We kunnen geen gebruiker met dat e-mailadres vinden.", + 'user' => 'We kunnen geen gebruiker met dat e-mailadres vinden.', ]; diff --git a/package.json b/package.json index a8f330b..4fd1d66 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "build": "vite build", "dev-laravel": "php artisan serve", "dev-node": "npm run dev", - "dev-all": "npm-run-all -p dev-laravel dev-node" + "dev-all": "npm-run-all -p dev-laravel dev-node", + "laravel-pint": "./vendor/bin/pint" }, "devDependencies": { "autoprefixer": "^10.4.16", diff --git a/pint.json b/pint.json new file mode 100644 index 0000000..93061b6 --- /dev/null +++ b/pint.json @@ -0,0 +1,3 @@ +{ + "preset": "laravel" +}