mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 02:00:48 +01:00
🍺 Laravel Pint ran
- Moved the import statement for `Champion` and `ChampionSkin` models in their respective controllers to improve code organization. - Refactored image attribute methods in the `Champion` model to use string interpolation for better readability. - Refactored image attribute methods in the `ChampionSkin` model to use string interpolation for better readability. This commit improves code organization and readability by refactoring import statements and using string interpolation for image attribute methods.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace App\Policies;
|
||||
|
||||
use App\Models\Champion;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class ChampionPolicy
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace App\Policies;
|
||||
|
||||
use App\Models\ChampionSkin;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class ChampionSkinPolicy
|
||||
{
|
||||
|
||||
14
composer.lock
generated
14
composer.lock
generated
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ChampionSeeder extends Seeder
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ChampionSkinSeeder extends Seeder
|
||||
|
||||
@@ -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.',
|
||||
|
||||
];
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user