wip: just a save

This commit is contained in:
Nicolas Demangeat 2024-09-03 09:31:09 +02:00
parent fff08ddd0a
commit 1794a79824
5 changed files with 314 additions and 136 deletions

View file

@ -0,0 +1,27 @@
<?php
namespace App\Enums\Breedings;
use App\Traits\Enums\BaseEnum;
enum BreedingTypeEnum: int
{
use BaseEnum;
case breedingPoultry = 1;
case breedingJob = 2;
case breedingFood = 3;
case breedingHealth = 4;
/**
* Optionnal labels definition.
*
* @phpstan-ignore-next-line
*/
private const LABELS = [
self::breedingPoultry->name => 'L\'élevage des volailles',
self::breedingJob->name => 'Le métier d\'éleveur de volailles',
self::breedingFood->name => 'L\'alimentation des volailles',
self::breedingHealth->name => 'La santé des volailles',
];
}

View file

@ -21,6 +21,11 @@ enum StaticPageType: int
case home = 11;
case selling = 12;
case accessibility = 13;
case breedingPoultry = 14;
case breedingJob = 15;
case breedingFood = 16;
case breedingHealth = 17;
/**
* Optionnal labels definition.
@ -41,5 +46,9 @@ enum StaticPageType: int
self::home->name => 'Accueil',
self::selling->name => 'Conditions générales de vente',
self::accessibility->name => 'Accessibilité',
self::breedingPoultry->name => 'L\'élevage des volailles',
self::breedingJob->name => 'Le métier d\'éleveur de volailles',
self::breedingFood->name => 'L\'alimentation des volailles',
self::breedingHealth->name => 'La santé des volailles',
];
}

141
app/Models/BreedingNews.php Normal file
View file

@ -0,0 +1,141 @@
<?php
namespace App\Models;
use App\Lib\Helpers\FileStorageHelper;
use App\Traits\Models\ActivityLog;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* @property string $title The title of the bredding news.
* @property string $subtitle The subtitle of the bredding news.
* @property string $content The content of the bredding news.
* @property string $picture Picture path.
* @property string $picture_title Picture title attribute.
* @property string $picture_alt Picture alt attribute.
* @property int $order Order.
* @property boolean $published Bredding news publish status.
* @property-read \Illuminate\Support\Carbon $published_at Bredding news published_at.
* @property-read \Illuminate\Support\Carbon $unpublished_at Bredding news unpublished_at.
* @property-read \Illuminate\Support\Carbon $created_at Created date.
* @property-read \Illuminate\Support\Carbon $updated_at Updated date.
*/
class NewsCorporate extends Model
{
use ActivityLog;
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'title',
'subtitle',
'content',
'picture',
'picture_alt',
'picture_title',
'order',
'published',
'publish_at',
'unpublish_at',
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'published' => 'boolean',
'publish_at' => 'datetime',
'unpublish_at' => 'datetime',
];
/**
* Perform any actions required after the model boots.
*
* @return void
*/
protected static function booted(): void
{
static::creating(function (self $model) {
self::makeStatusSense($model);
$model->picture = FileStorageHelper::storeFile($model, $model->picture, true);
});
static::updating(function (self $model) {
self::makeStatusSense($model);
$model->picture = FileStorageHelper::storeFile($model, $model->picture, true);
});
static::updated(function (self $model) {
FileStorageHelper::removeOldFile($model, 'picture');
});
static::deleted(function (self $model) {
FileStorageHelper::removeFile($model, 'picture');
});
}
// * METHODS
/**
* Adjusts breedingNews status using current status and publish dates
*
* @param self $model
* @return void
*/
private static function makeStatusSense(self $model): void
{
/** @var \Carbon\Carbon|null */
$publish_at = $model->publish_at;
/** @var \Carbon\Carbon|null */
$unpublish_at = $model->unpublish_at;
$wantedStatus = $model->published;
if ($publish_at or $unpublish_at) {
$model->published = $model->planificated_status;
}
if ($wantedStatus !== $model->published) {
session()->flash('bo.info', \trans(
'La publication est modifiée en concordance avec les dates enregistrées.
Pour modifier l\'état de publication, veuillez modifier ou enlever les dates correspondantes.'
));
}
}
/**
* Getter the current status following planification dates planificated_status
*
* @return boolean
*/
public function getPlanificatedStatusAttribute(): bool
{
/** @var \Carbon\Carbon|null */
$publish_at = $this->publish_at;
/** @var \Carbon\Carbon|null */
$unpublish_at = $this->unpublish_at;
if ($publish_at and $unpublish_at) {
return $unpublish_at->greaterThanOrEqualTo(now()) and $publish_at->lessThan(now());
}
if ($publish_at) {
return $publish_at->lessThan(now());
}
if ($unpublish_at) {
return $unpublish_at->greaterThanOrEqualTo(now());
}
return false;
}
// * RELATIONSHIPS
/**
* Get Breeding static page (one-to-many relationship).
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function breedingPages(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(StaticPage::class)->where('type', 'breeding%');
}
}

View file

@ -48,6 +48,7 @@ class NewsCorporate extends Model
* @var array<string, string>
*/
protected $casts = [
'published' => 'boolean',
'publish_at' => 'datetime',
'unpublish_at' => 'datetime',
];

272
composer.lock generated
View file

@ -1672,16 +1672,16 @@
},
{
"name": "laravel/prompts",
"version": "v0.1.24",
"version": "v0.1.25",
"source": {
"type": "git",
"url": "https://github.com/laravel/prompts.git",
"reference": "409b0b4305273472f3754826e68f4edbd0150149"
"reference": "7b4029a84c37cb2725fc7f011586e2997040bc95"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/prompts/zipball/409b0b4305273472f3754826e68f4edbd0150149",
"reference": "409b0b4305273472f3754826e68f4edbd0150149",
"url": "https://api.github.com/repos/laravel/prompts/zipball/7b4029a84c37cb2725fc7f011586e2997040bc95",
"reference": "7b4029a84c37cb2725fc7f011586e2997040bc95",
"shasum": ""
},
"require": {
@ -1724,9 +1724,9 @@
"description": "Add beautiful and user-friendly forms to your command-line applications.",
"support": {
"issues": "https://github.com/laravel/prompts/issues",
"source": "https://github.com/laravel/prompts/tree/v0.1.24"
"source": "https://github.com/laravel/prompts/tree/v0.1.25"
},
"time": "2024-06-17T13:58:22+00:00"
"time": "2024-08-12T22:06:33+00:00"
},
{
"name": "laravel/serializable-closure",
@ -1972,16 +1972,16 @@
},
{
"name": "league/commonmark",
"version": "2.5.2",
"version": "2.5.3",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/commonmark.git",
"reference": "df09d5b6a4188f8f3c3ab2e43a109076a5eeb767"
"reference": "b650144166dfa7703e62a22e493b853b58d874b0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/df09d5b6a4188f8f3c3ab2e43a109076a5eeb767",
"reference": "df09d5b6a4188f8f3c3ab2e43a109076a5eeb767",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/b650144166dfa7703e62a22e493b853b58d874b0",
"reference": "b650144166dfa7703e62a22e493b853b58d874b0",
"shasum": ""
},
"require": {
@ -1994,8 +1994,8 @@
},
"require-dev": {
"cebe/markdown": "^1.0",
"commonmark/cmark": "0.31.0",
"commonmark/commonmark.js": "0.31.0",
"commonmark/cmark": "0.31.1",
"commonmark/commonmark.js": "0.31.1",
"composer/package-versions-deprecated": "^1.8",
"embed/embed": "^4.4",
"erusev/parsedown": "^1.0",
@ -2074,7 +2074,7 @@
"type": "tidelift"
}
],
"time": "2024-08-14T10:56:57+00:00"
"time": "2024-08-16T11:46:16+00:00"
},
{
"name": "league/config",
@ -3825,16 +3825,16 @@
},
{
"name": "psr/log",
"version": "3.0.0",
"version": "3.0.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/log.git",
"reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001"
"reference": "79dff0b268932c640297f5208d6298f71855c03e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001",
"reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001",
"url": "https://api.github.com/repos/php-fig/log/zipball/79dff0b268932c640297f5208d6298f71855c03e",
"reference": "79dff0b268932c640297f5208d6298f71855c03e",
"shasum": ""
},
"require": {
@ -3869,9 +3869,9 @@
"psr-3"
],
"support": {
"source": "https://github.com/php-fig/log/tree/3.0.0"
"source": "https://github.com/php-fig/log/tree/3.0.1"
},
"time": "2021-07-14T16:46:02+00:00"
"time": "2024-08-21T13:31:24+00:00"
},
{
"name": "psr/simple-cache",
@ -4441,23 +4441,23 @@
},
{
"name": "sentry/sentry-laravel",
"version": "4.7.1",
"version": "4.8.0",
"source": {
"type": "git",
"url": "https://github.com/getsentry/sentry-laravel.git",
"reference": "d70415f19f35806acee5bcbc7403e9cb8fb5252c"
"reference": "2bbcb7e81097993cf64d5b296eaa6d396cddd5a7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/d70415f19f35806acee5bcbc7403e9cb8fb5252c",
"reference": "d70415f19f35806acee5bcbc7403e9cb8fb5252c",
"url": "https://api.github.com/repos/getsentry/sentry-laravel/zipball/2bbcb7e81097993cf64d5b296eaa6d396cddd5a7",
"reference": "2bbcb7e81097993cf64d5b296eaa6d396cddd5a7",
"shasum": ""
},
"require": {
"illuminate/support": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0",
"nyholm/psr7": "^1.0",
"php": "^7.2 | ^8.0",
"sentry/sentry": "^4.7",
"sentry/sentry": "^4.9",
"symfony/psr-http-message-bridge": "^1.0 | ^2.0 | ^6.0 | ^7.0"
},
"require-dev": {
@ -4514,7 +4514,7 @@
],
"support": {
"issues": "https://github.com/getsentry/sentry-laravel/issues",
"source": "https://github.com/getsentry/sentry-laravel/tree/4.7.1"
"source": "https://github.com/getsentry/sentry-laravel/tree/4.8.0"
},
"funding": [
{
@ -4526,7 +4526,7 @@
"type": "custom"
}
],
"time": "2024-07-17T13:27:43+00:00"
"time": "2024-08-15T19:03:01+00:00"
},
{
"name": "setasign/fpdi",
@ -4654,16 +4654,16 @@
},
{
"name": "symfony/console",
"version": "v6.4.10",
"version": "v6.4.11",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "504974cbe43d05f83b201d6498c206f16fc0cdbc"
"reference": "42686880adaacdad1835ee8fc2a9ec5b7bd63998"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/504974cbe43d05f83b201d6498c206f16fc0cdbc",
"reference": "504974cbe43d05f83b201d6498c206f16fc0cdbc",
"url": "https://api.github.com/repos/symfony/console/zipball/42686880adaacdad1835ee8fc2a9ec5b7bd63998",
"reference": "42686880adaacdad1835ee8fc2a9ec5b7bd63998",
"shasum": ""
},
"require": {
@ -4728,7 +4728,7 @@
"terminal"
],
"support": {
"source": "https://github.com/symfony/console/tree/v6.4.10"
"source": "https://github.com/symfony/console/tree/v6.4.11"
},
"funding": [
{
@ -4744,7 +4744,7 @@
"type": "tidelift"
}
],
"time": "2024-07-26T12:30:32+00:00"
"time": "2024-08-15T22:48:29+00:00"
},
{
"name": "symfony/css-selector",
@ -5111,16 +5111,16 @@
},
{
"name": "symfony/finder",
"version": "v6.4.10",
"version": "v6.4.11",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "af29198d87112bebdd397bd7735fbd115997824c"
"reference": "d7eb6daf8cd7e9ac4976e9576b32042ef7253453"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/af29198d87112bebdd397bd7735fbd115997824c",
"reference": "af29198d87112bebdd397bd7735fbd115997824c",
"url": "https://api.github.com/repos/symfony/finder/zipball/d7eb6daf8cd7e9ac4976e9576b32042ef7253453",
"reference": "d7eb6daf8cd7e9ac4976e9576b32042ef7253453",
"shasum": ""
},
"require": {
@ -5155,7 +5155,7 @@
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/finder/tree/v6.4.10"
"source": "https://github.com/symfony/finder/tree/v6.4.11"
},
"funding": [
{
@ -5171,7 +5171,7 @@
"type": "tidelift"
}
],
"time": "2024-07-24T07:06:38+00:00"
"time": "2024-08-13T14:27:37+00:00"
},
{
"name": "symfony/http-foundation",
@ -5252,16 +5252,16 @@
},
{
"name": "symfony/http-kernel",
"version": "v6.4.10",
"version": "v6.4.11",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
"reference": "147e0daf618d7575b5007055340d09aece5cf068"
"reference": "1ba6b89d781cb47448155cc70dd2e0f1b0584c79"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/147e0daf618d7575b5007055340d09aece5cf068",
"reference": "147e0daf618d7575b5007055340d09aece5cf068",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/1ba6b89d781cb47448155cc70dd2e0f1b0584c79",
"reference": "1ba6b89d781cb47448155cc70dd2e0f1b0584c79",
"shasum": ""
},
"require": {
@ -5346,7 +5346,7 @@
"description": "Provides a structured process for converting a Request into a Response",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-kernel/tree/v6.4.10"
"source": "https://github.com/symfony/http-kernel/tree/v6.4.11"
},
"funding": [
{
@ -5362,7 +5362,7 @@
"type": "tidelift"
}
],
"time": "2024-07-26T14:52:04+00:00"
"time": "2024-08-30T16:57:20+00:00"
},
{
"name": "symfony/mailer",
@ -5446,16 +5446,16 @@
},
{
"name": "symfony/mime",
"version": "v6.4.9",
"version": "v6.4.11",
"source": {
"type": "git",
"url": "https://github.com/symfony/mime.git",
"reference": "7d048964877324debdcb4e0549becfa064a20d43"
"reference": "dba5d5f6073baf7a3576b580cc4a208b4ca00553"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/mime/zipball/7d048964877324debdcb4e0549becfa064a20d43",
"reference": "7d048964877324debdcb4e0549becfa064a20d43",
"url": "https://api.github.com/repos/symfony/mime/zipball/dba5d5f6073baf7a3576b580cc4a208b4ca00553",
"reference": "dba5d5f6073baf7a3576b580cc4a208b4ca00553",
"shasum": ""
},
"require": {
@ -5511,7 +5511,7 @@
"mime-type"
],
"support": {
"source": "https://github.com/symfony/mime/tree/v6.4.9"
"source": "https://github.com/symfony/mime/tree/v6.4.11"
},
"funding": [
{
@ -5527,7 +5527,7 @@
"type": "tidelift"
}
],
"time": "2024-06-28T09:49:33+00:00"
"time": "2024-08-13T12:15:02+00:00"
},
{
"name": "symfony/options-resolver",
@ -6369,16 +6369,16 @@
},
{
"name": "symfony/psr-http-message-bridge",
"version": "v7.1.3",
"version": "v7.1.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/psr-http-message-bridge.git",
"reference": "1365d10f5476f74a27cf9c2d1eee70c069019db0"
"reference": "405a7bcd872f1563966f64be19f1362d94ce71ab"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/psr-http-message-bridge/zipball/1365d10f5476f74a27cf9c2d1eee70c069019db0",
"reference": "1365d10f5476f74a27cf9c2d1eee70c069019db0",
"url": "https://api.github.com/repos/symfony/psr-http-message-bridge/zipball/405a7bcd872f1563966f64be19f1362d94ce71ab",
"reference": "405a7bcd872f1563966f64be19f1362d94ce71ab",
"shasum": ""
},
"require": {
@ -6432,7 +6432,7 @@
"psr-7"
],
"support": {
"source": "https://github.com/symfony/psr-http-message-bridge/tree/v7.1.3"
"source": "https://github.com/symfony/psr-http-message-bridge/tree/v7.1.4"
},
"funding": [
{
@ -6448,20 +6448,20 @@
"type": "tidelift"
}
],
"time": "2024-07-17T06:10:24+00:00"
"time": "2024-08-15T22:48:53+00:00"
},
{
"name": "symfony/routing",
"version": "v6.4.10",
"version": "v6.4.11",
"source": {
"type": "git",
"url": "https://github.com/symfony/routing.git",
"reference": "aad19fe10753ba842f0d653a8db819c4b3affa87"
"reference": "8ee0c24c1bf61c263a26f1b9b6d19e83b1121f2a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/routing/zipball/aad19fe10753ba842f0d653a8db819c4b3affa87",
"reference": "aad19fe10753ba842f0d653a8db819c4b3affa87",
"url": "https://api.github.com/repos/symfony/routing/zipball/8ee0c24c1bf61c263a26f1b9b6d19e83b1121f2a",
"reference": "8ee0c24c1bf61c263a26f1b9b6d19e83b1121f2a",
"shasum": ""
},
"require": {
@ -6515,7 +6515,7 @@
"url"
],
"support": {
"source": "https://github.com/symfony/routing/tree/v6.4.10"
"source": "https://github.com/symfony/routing/tree/v6.4.11"
},
"funding": [
{
@ -6531,7 +6531,7 @@
"type": "tidelift"
}
],
"time": "2024-07-15T09:26:24+00:00"
"time": "2024-08-29T08:15:38+00:00"
},
{
"name": "symfony/service-contracts",
@ -6618,16 +6618,16 @@
},
{
"name": "symfony/string",
"version": "v7.1.3",
"version": "v7.1.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
"reference": "ea272a882be7f20cad58d5d78c215001617b7f07"
"reference": "6cd670a6d968eaeb1c77c2e76091c45c56bc367b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/ea272a882be7f20cad58d5d78c215001617b7f07",
"reference": "ea272a882be7f20cad58d5d78c215001617b7f07",
"url": "https://api.github.com/repos/symfony/string/zipball/6cd670a6d968eaeb1c77c2e76091c45c56bc367b",
"reference": "6cd670a6d968eaeb1c77c2e76091c45c56bc367b",
"shasum": ""
},
"require": {
@ -6685,7 +6685,7 @@
"utf8"
],
"support": {
"source": "https://github.com/symfony/string/tree/v7.1.3"
"source": "https://github.com/symfony/string/tree/v7.1.4"
},
"funding": [
{
@ -6701,7 +6701,7 @@
"type": "tidelift"
}
],
"time": "2024-07-22T10:25:37+00:00"
"time": "2024-08-12T09:59:40+00:00"
},
{
"name": "symfony/translation",
@ -6878,16 +6878,16 @@
},
{
"name": "symfony/uid",
"version": "v6.4.8",
"version": "v6.4.11",
"source": {
"type": "git",
"url": "https://github.com/symfony/uid.git",
"reference": "35904eca37a84bb764c560cbfcac9f0ac2bcdbdf"
"reference": "6a0394ad707de386547223948fac1e0f2805bc0b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/uid/zipball/35904eca37a84bb764c560cbfcac9f0ac2bcdbdf",
"reference": "35904eca37a84bb764c560cbfcac9f0ac2bcdbdf",
"url": "https://api.github.com/repos/symfony/uid/zipball/6a0394ad707de386547223948fac1e0f2805bc0b",
"reference": "6a0394ad707de386547223948fac1e0f2805bc0b",
"shasum": ""
},
"require": {
@ -6932,7 +6932,7 @@
"uuid"
],
"support": {
"source": "https://github.com/symfony/uid/tree/v6.4.8"
"source": "https://github.com/symfony/uid/tree/v6.4.11"
},
"funding": [
{
@ -6948,20 +6948,20 @@
"type": "tidelift"
}
],
"time": "2024-05-31T14:49:08+00:00"
"time": "2024-08-12T09:55:28+00:00"
},
{
"name": "symfony/var-dumper",
"version": "v6.4.10",
"version": "v6.4.11",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "a71cc3374f5fb9759da1961d28c452373b343dd4"
"reference": "ee14c8254a480913268b1e3b1cba8045ed122694"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/a71cc3374f5fb9759da1961d28c452373b343dd4",
"reference": "a71cc3374f5fb9759da1961d28c452373b343dd4",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/ee14c8254a480913268b1e3b1cba8045ed122694",
"reference": "ee14c8254a480913268b1e3b1cba8045ed122694",
"shasum": ""
},
"require": {
@ -7017,7 +7017,7 @@
"dump"
],
"support": {
"source": "https://github.com/symfony/var-dumper/tree/v6.4.10"
"source": "https://github.com/symfony/var-dumper/tree/v6.4.11"
},
"funding": [
{
@ -7033,7 +7033,7 @@
"type": "tidelift"
}
],
"time": "2024-07-26T12:30:32+00:00"
"time": "2024-08-30T16:03:21+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
@ -7090,21 +7090,21 @@
},
{
"name": "uwil/k8s-laravel",
"version": "1.3.0",
"version": "1.4.0",
"source": {
"type": "git",
"url": "git@lab.s-web.fr:ldc-web/projets/k8s-laravel.git",
"reference": "6af203c3920b40ef45039bd7ed905713837744e4"
"reference": "14da608cb5ebc1c48615d213545655db2009364f"
},
"dist": {
"type": "zip",
"url": "https://lab.s-web.fr/api/v4/projects/90/packages/composer/archives/uwil/k8s-laravel.zip?sha=6af203c3920b40ef45039bd7ed905713837744e4",
"reference": "6af203c3920b40ef45039bd7ed905713837744e4",
"url": "https://lab.s-web.fr/api/v4/projects/90/packages/composer/archives/uwil/k8s-laravel.zip?sha=14da608cb5ebc1c48615d213545655db2009364f",
"reference": "14da608cb5ebc1c48615d213545655db2009364f",
"shasum": ""
},
"require": {
"illuminate/support": "~8|~9|~10",
"laravel/framework": "~8|~9|~10",
"illuminate/support": "~8|~9|~10|~11",
"laravel/framework": "~8|~9|~10|~11",
"php": "~7.3|~7.4|~8"
},
"require-dev": {
@ -7723,16 +7723,16 @@
},
{
"name": "doctrine/dbal",
"version": "3.8.7",
"version": "3.9.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/dbal.git",
"reference": "2093d670ca17f634f3c095ec10a20687eccebd99"
"reference": "d8f68ea6cc00912e5313237130b8c8decf4d28c6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/2093d670ca17f634f3c095ec10a20687eccebd99",
"reference": "2093d670ca17f634f3c095ec10a20687eccebd99",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/d8f68ea6cc00912e5313237130b8c8decf4d28c6",
"reference": "d8f68ea6cc00912e5313237130b8c8decf4d28c6",
"shasum": ""
},
"require": {
@ -7816,7 +7816,7 @@
],
"support": {
"issues": "https://github.com/doctrine/dbal/issues",
"source": "https://github.com/doctrine/dbal/tree/3.8.7"
"source": "https://github.com/doctrine/dbal/tree/3.9.0"
},
"funding": [
{
@ -7832,7 +7832,7 @@
"type": "tidelift"
}
],
"time": "2024-08-07T11:57:25+00:00"
"time": "2024-08-15T07:34:42+00:00"
},
{
"name": "doctrine/deprecations",
@ -8664,16 +8664,16 @@
},
{
"name": "laravel-lang/attributes",
"version": "2.10.7",
"version": "2.10.8",
"source": {
"type": "git",
"url": "https://github.com/Laravel-Lang/attributes.git",
"reference": "6cbfd302951ce4dd5d4f79dbdc1d04f222fabdbb"
"reference": "cf53eb18a47692045ac135e5be1e3fa979232504"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Laravel-Lang/attributes/zipball/6cbfd302951ce4dd5d4f79dbdc1d04f222fabdbb",
"reference": "6cbfd302951ce4dd5d4f79dbdc1d04f222fabdbb",
"url": "https://api.github.com/repos/Laravel-Lang/attributes/zipball/cf53eb18a47692045ac135e5be1e3fa979232504",
"reference": "cf53eb18a47692045ac135e5be1e3fa979232504",
"shasum": ""
},
"require": {
@ -8727,9 +8727,9 @@
],
"support": {
"issues": "https://github.com/Laravel-Lang/attributes/issues",
"source": "https://github.com/Laravel-Lang/attributes/tree/2.10.7"
"source": "https://github.com/Laravel-Lang/attributes/tree/2.10.8"
},
"time": "2024-05-30T16:40:01+00:00"
"time": "2024-08-30T09:34:14+00:00"
},
{
"name": "laravel-lang/common",
@ -9676,16 +9676,16 @@
},
{
"name": "phpmyadmin/sql-parser",
"version": "5.9.1",
"version": "5.10.0",
"source": {
"type": "git",
"url": "https://github.com/phpmyadmin/sql-parser.git",
"reference": "169a9f11f1957ea36607c9b29eac1b48679f1ecc"
"reference": "91d980ab76c3f152481e367f62b921adc38af451"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpmyadmin/sql-parser/zipball/169a9f11f1957ea36607c9b29eac1b48679f1ecc",
"reference": "169a9f11f1957ea36607c9b29eac1b48679f1ecc",
"url": "https://api.github.com/repos/phpmyadmin/sql-parser/zipball/91d980ab76c3f152481e367f62b921adc38af451",
"reference": "91d980ab76c3f152481e367f62b921adc38af451",
"shasum": ""
},
"require": {
@ -9759,20 +9759,20 @@
"type": "other"
}
],
"time": "2024-08-13T19:01:01+00:00"
"time": "2024-08-29T20:56:34+00:00"
},
{
"name": "phpstan/phpdoc-parser",
"version": "1.29.1",
"version": "1.30.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
"reference": "fcaefacf2d5c417e928405b71b400d4ce10daaf4"
"reference": "5ceb0e384997db59f38774bf79c2a6134252c08f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/fcaefacf2d5c417e928405b71b400d4ce10daaf4",
"reference": "fcaefacf2d5c417e928405b71b400d4ce10daaf4",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/5ceb0e384997db59f38774bf79c2a6134252c08f",
"reference": "5ceb0e384997db59f38774bf79c2a6134252c08f",
"shasum": ""
},
"require": {
@ -9804,22 +9804,22 @@
"description": "PHPDoc parser with support for nullable, intersection and generic types",
"support": {
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.29.1"
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.30.0"
},
"time": "2024-05-31T08:52:43+00:00"
"time": "2024-08-29T09:54:52+00:00"
},
{
"name": "phpstan/phpstan",
"version": "1.11.10",
"version": "1.12.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "640410b32995914bde3eed26fa89552f9c2c082f"
"reference": "384af967d35b2162f69526c7276acadce534d0e1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/640410b32995914bde3eed26fa89552f9c2c082f",
"reference": "640410b32995914bde3eed26fa89552f9c2c082f",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/384af967d35b2162f69526c7276acadce534d0e1",
"reference": "384af967d35b2162f69526c7276acadce534d0e1",
"shasum": ""
},
"require": {
@ -9864,36 +9864,36 @@
"type": "github"
}
],
"time": "2024-08-08T09:02:50+00:00"
"time": "2024-08-27T09:18:05+00:00"
},
{
"name": "phpunit/php-code-coverage",
"version": "10.1.15",
"version": "10.1.16",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae"
"reference": "7e308268858ed6baedc8704a304727d20bc07c77"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae",
"reference": "5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7e308268858ed6baedc8704a304727d20bc07c77",
"reference": "7e308268858ed6baedc8704a304727d20bc07c77",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-libxml": "*",
"ext-xmlwriter": "*",
"nikic/php-parser": "^4.18 || ^5.0",
"nikic/php-parser": "^4.19.1 || ^5.1.0",
"php": ">=8.1",
"phpunit/php-file-iterator": "^4.0",
"phpunit/php-text-template": "^3.0",
"sebastian/code-unit-reverse-lookup": "^3.0",
"sebastian/complexity": "^3.0",
"sebastian/environment": "^6.0",
"sebastian/lines-of-code": "^2.0",
"sebastian/version": "^4.0",
"theseer/tokenizer": "^1.2.0"
"phpunit/php-file-iterator": "^4.1.0",
"phpunit/php-text-template": "^3.0.1",
"sebastian/code-unit-reverse-lookup": "^3.0.0",
"sebastian/complexity": "^3.2.0",
"sebastian/environment": "^6.1.0",
"sebastian/lines-of-code": "^2.0.2",
"sebastian/version": "^4.0.1",
"theseer/tokenizer": "^1.2.3"
},
"require-dev": {
"phpunit/phpunit": "^10.1"
@ -9905,7 +9905,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "10.1-dev"
"dev-main": "10.1.x-dev"
}
},
"autoload": {
@ -9934,7 +9934,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
"security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.15"
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.16"
},
"funding": [
{
@ -9942,7 +9942,7 @@
"type": "github"
}
],
"time": "2024-06-29T08:25:15+00:00"
"time": "2024-08-22T04:31:57+00:00"
},
{
"name": "phpunit/php-file-iterator",
@ -11856,16 +11856,16 @@
},
{
"name": "symfony/yaml",
"version": "v7.1.1",
"version": "v7.1.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
"reference": "fa34c77015aa6720469db7003567b9f772492bf2"
"reference": "92e080b851c1c655c786a2da77f188f2dccd0f4b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/fa34c77015aa6720469db7003567b9f772492bf2",
"reference": "fa34c77015aa6720469db7003567b9f772492bf2",
"url": "https://api.github.com/repos/symfony/yaml/zipball/92e080b851c1c655c786a2da77f188f2dccd0f4b",
"reference": "92e080b851c1c655c786a2da77f188f2dccd0f4b",
"shasum": ""
},
"require": {
@ -11907,7 +11907,7 @@
"description": "Loads and dumps YAML files",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/yaml/tree/v7.1.1"
"source": "https://github.com/symfony/yaml/tree/v7.1.4"
},
"funding": [
{
@ -11923,7 +11923,7 @@
"type": "tidelift"
}
],
"time": "2024-05-31T14:57:53+00:00"
"time": "2024-08-12T09:59:40+00:00"
},
{
"name": "thedoctor0/laravel-factory-generator",