<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Release Archívum - iWorkshop</title>
	<atom:link href="https://iworkshop.hu/tema/release/feed/" rel="self" type="application/rss+xml" />
	<link>https://iworkshop.hu/tema/release/</link>
	<description>Mi vagyunk az iWorkshop</description>
	<lastBuildDate>Fri, 27 Mar 2026 21:04:41 +0000</lastBuildDate>
	<language>hu</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Laravel v12.50.0 – 3 újdonság</title>
		<link>https://iworkshop.hu/laravel-12-50/</link>
		
		<dc:creator><![CDATA[Bihacsy László]]></dc:creator>
		<pubDate>Tue, 17 Feb 2026 20:54:56 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Release]]></category>
		<guid isPermaLink="false">https://iworkshop.hu/?p=2220</guid>

					<description><![CDATA[<p>Laravel v12.50.0 – 3 újdonság, amit érdemes ismerni  A Laravel csapat kiadta a v12.50.0 verziót, amely több mint 40 pull requestet tartalmaz 20 közreműködőtől. Ebben a cikkben a három legfontosabb, fejlesztői élményt javító újdonságot mutatjuk be.   1. Új hasMany() metódus a Collection-ökön  A collection-ökön eddig is létezett a containsOneItem() és  [...]</p>
<p>A <a href="https://iworkshop.hu/laravel-12-50/">Laravel v12.50.0 – 3 újdonság</a> bejegyzés először <a href="https://iworkshop.hu">iWorkshop</a>-én jelent meg.</p>
]]></description>
										<content:encoded><![CDATA[<div class="fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling" style="--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;" ><div class="fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap" style="max-width:1248px;margin-left: calc(-4% / 2 );margin-right: calc(-4% / 2 );"><div class="fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column" style="--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;"><div class="fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column"><div class="fusion-title title fusion-title-1 fusion-sep-none fusion-title-center fusion-title-text fusion-title-size-two" style="--awb-margin-top-small:10px;--awb-margin-right-small:0px;--awb-margin-bottom-small:10px;--awb-margin-left-small:0px;"><h2 class="fusion-title-heading title-heading-center" style="margin:0;">Laravel v12.50.0 – 3 újdonság, amit érdemes ismerni</h2></div><div class="fusion-text fusion-text-1"><p>A Laravel csapat kiadta a v12.50.0 verziót, amely több mint 40 pull requestet tartalmaz 20 közreműködőtől. Ebben a cikkben a három legfontosabb, fejlesztői élményt javító újdonságot mutatjuk be.<span id="more-2220"></span></p>
</div></div></div><div class="fusion-layout-column fusion_builder_column fusion-builder-column-1 fusion_builder_column_1_1 1_1 fusion-flex-column" style="--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;"><div class="fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column"><div class="fusion-title title fusion-title-2 fusion-sep-none fusion-title-text fusion-title-size-three" style="--awb-margin-top-small:10px;--awb-margin-right-small:0px;--awb-margin-bottom-small:10px;--awb-margin-left-small:0px;"><h3 class="fusion-title-heading title-heading-left" style="margin:0;">1. Új hasMany() metódus a Collection-ökön</h3></div><div class="fusion-text fusion-text-2"><p>A collection-ökön eddig is létezett a <strong>containsOneItem()</strong> és a <strong>containsManyItems()</strong> metódus, de valljuk be, ezek elég hosszúak és nehezen megjegyezhetők voltak. A v12.50.0-ban két új, tömörebb alternatíva érkezett:</p>
</div><style type="text/css" scopped="scopped">.fusion-syntax-highlighter-1 > .CodeMirror, .fusion-syntax-highlighter-1 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-1 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-1 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }</style><div class="fusion-syntax-highlighter-container fusion-syntax-highlighter-1 fusion-syntax-highlighter-theme-light" style="opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);"><div class="syntax-highlighter-copy-code"><span class="syntax-highlighter-copy-code-title" data-id="fusion_syntax_highlighter_1" style="font-size:14px;">Copy to Clipboard</span></div><label for="fusion_syntax_highlighter_1" class="screen-reader-text">Syntax Highlighter</label><textarea class="fusion-syntax-highlighter-textarea" id="fusion_syntax_highlighter_1" data-readOnly="nocursor" data-lineNumbers="1" data-lineWrapping="" data-theme="default" data-mode="text/x-php">$collection->hasSole();  // pontosan egy elem van-e?
$collection->hasMany();  // több elem van-e?</textarea></div><div class="fusion-text fusion-text-3"><p>A hasMany() boolean értéket ad vissza, és callback-et is elfogad, ha pontosítani szeretnéd, mire keresel:</p>
</div><style type="text/css" scopped="scopped">.fusion-syntax-highlighter-2 > .CodeMirror, .fusion-syntax-highlighter-2 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-2 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-2 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }</style><div class="fusion-syntax-highlighter-container fusion-syntax-highlighter-2 fusion-syntax-highlighter-theme-light" style="opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);"><div class="syntax-highlighter-copy-code"><span class="syntax-highlighter-copy-code-title" data-id="fusion_syntax_highlighter_2" style="font-size:14px;">Copy to Clipboard</span></div><label for="fusion_syntax_highlighter_2" class="screen-reader-text">Syntax Highlighter</label><textarea class="fusion-syntax-highlighter-textarea" id="fusion_syntax_highlighter_2" data-readOnly="nocursor" data-lineNumbers="1" data-lineWrapping="" data-theme="default" data-mode="text/x-php">$collection->hasMany(fn ($item) => $item->isActive());</textarea></div><div class="fusion-text fusion-text-4"><p>A régi containsOneItem() és containsManyItems() metódusok <strong>Laravel 13-ban deprecated-té válnak</strong>, úgyhogy érdemes már most átszokni az újakra.</p>
<p><em>Közreműködő: <a href="https://github.com/JosephSilber">@JosephSilber</a> — <a href="https://github.com/laravel/framework/pull/58550">#58550</a></em></p>
</div></div></div><div class="fusion-layout-column fusion_builder_column fusion-builder-column-2 fusion_builder_column_1_1 1_1 fusion-flex-column" style="--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;"><div class="fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column"><div class="fusion-title title fusion-title-3 fusion-sep-none fusion-title-text fusion-title-size-three" style="--awb-margin-top-small:10px;--awb-margin-right-small:0px;--awb-margin-bottom-small:10px;--awb-margin-left-small:0px;"><h3 class="fusion-title-heading title-heading-left" style="margin:0;">2. Típusos getterek a Cache facade-on</h3></div><div class="fusion-text fusion-text-5"><p>A Config facade-on már régóta elérhetők a típusos getterek (getString(), getInteger() stb.), amelyek biztosítják, hogy a visszakapott érték a várt típusú legyen. Most ez a Cache facade-ra is megérkezett:</p>
</div><style type="text/css" scopped="scopped">.fusion-syntax-highlighter-3 > .CodeMirror, .fusion-syntax-highlighter-3 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-3 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-3 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }</style><div class="fusion-syntax-highlighter-container fusion-syntax-highlighter-3 fusion-syntax-highlighter-theme-light" style="opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);"><div class="syntax-highlighter-copy-code"><span class="syntax-highlighter-copy-code-title" data-id="fusion_syntax_highlighter_3" style="font-size:14px;">Copy to Clipboard</span></div><label for="fusion_syntax_highlighter_3" class="screen-reader-text">Syntax Highlighter</label><textarea class="fusion-syntax-highlighter-textarea" id="fusion_syntax_highlighter_3" data-readOnly="nocursor" data-lineNumbers="1" data-lineWrapping="" data-theme="default" data-mode="text/x-php">// Adat beállítása
Cache::put('username', 'Christoph');

// Hagyományos lekérés — bármit visszaadhat
Cache::get('username');

// Típusos lekérés — garantáltan string
Cache::getString('username'); // ✅ működik

// Ha integer-t várnánk — kivételt dob
Cache::getInteger('username'); // ❌ nem string → hiba</textarea></div><div class="fusion-text fusion-text-6"><p>Ez egy extra biztonsági réteg, ami segít korán elkapni a típushibákat, különösen nagyobb alkalmazásokban, ahol a cache-ben tárolt adatok típusáról könnyű megfeledkezni.<br />
<em>Közreműködő: <a href="https://github.com/ahinkle">@ahinkle</a> — <a href="https://github.com/laravel/framework/pull/58451">#58451</a></em></p>
</div></div></div><div class="fusion-layout-column fusion_builder_column fusion-builder-column-3 fusion_builder_column_1_1 1_1 fusion-flex-column" style="--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;"><div class="fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column"><div class="fusion-title title fusion-title-4 fusion-sep-none fusion-title-text fusion-title-size-three" style="--awb-margin-top-small:10px;--awb-margin-right-small:0px;--awb-margin-bottom-small:10px;--awb-margin-left-small:0px;"><h3 class="fusion-title-heading title-heading-left" style="margin:0;">3. Új clamp() metódus a request adatokhoz</h3></div><div class="fusion-text fusion-text-7"><p>Ez a funkció különösen hasznos lapozásnál. Képzeld el, hogy van egy terméklistád, ahol a felhasználó kiválaszthatja, hány elemet lát oldalanként: 10, 25 vagy 50. Eddig semmi nem akadályozta meg, hogy valaki kézzel átírja az URL-ben a per_page paramétert mondjuk 5000-re — ami komoly terhelést okozhat a szerveren.<br />
Az új clamp() metódussal ez egyszerűen megoldható:</p>
</div><style type="text/css" scopped="scopped">.fusion-syntax-highlighter-4 > .CodeMirror, .fusion-syntax-highlighter-4 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-4 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-4 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }</style><div class="fusion-syntax-highlighter-container fusion-syntax-highlighter-4 fusion-syntax-highlighter-theme-light" style="opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:var(--awb-color3);"><div class="syntax-highlighter-copy-code"><span class="syntax-highlighter-copy-code-title" data-id="fusion_syntax_highlighter_4" style="font-size:14px;">Copy to Clipboard</span></div><label for="fusion_syntax_highlighter_4" class="screen-reader-text">Syntax Highlighter</label><textarea class="fusion-syntax-highlighter-textarea" id="fusion_syntax_highlighter_4" data-readOnly="nocursor" data-lineNumbers="1" data-lineWrapping="" data-theme="default" data-mode="text/x-php">// Régi megoldás
$perPage = $request->integer('per_page');

// Új, biztonságos megoldás
$perPage = $request->clamp('per_page', min: 10, max: 50);</textarea></div><div class="fusion-text fusion-text-8"><p>Ha a felhasználó 5000-et ad meg, az automatikusan 50-re csökken. Ha 1-et, akkor 10-re nő. Nem kell többé kézzel validálni és korlátozni a lapozási értékeket.<br />
<em>Közreműködő: <a href="https://github.com/cosmastech">@cosmastech</a> — <a href="https://github.com/laravel/framework/pull/58608">#58608</a></em></p>
</div></div></div><div class="fusion-layout-column fusion_builder_column fusion-builder-column-4 fusion_builder_column_1_1 1_1 fusion-flex-column" style="--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;"><div class="fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column"><div class="fusion-title title fusion-title-5 fusion-sep-none fusion-title-text fusion-title-size-four" style="--awb-margin-top-small:10px;--awb-margin-right-small:0px;--awb-margin-bottom-small:10px;--awb-margin-left-small:0px;"><h4 class="fusion-title-heading title-heading-left" style="margin:0;">Egyéb figyelemre méltó változások</h4></div><div class="fusion-text fusion-text-9"><p>A fenti három kiemelt újdonságon túl a release számos egyéb javítást és fejlesztést is tartalmaz:</p>
</div><ul style="--awb-iconcolor:var(--awb-color5);--awb-textcolor:var(--awb-color1);--awb-line-height:27.2px;--awb-icon-width:27.2px;--awb-icon-height:27.2px;--awb-icon-margin:11.2px;--awb-content-margin:38.4px;--awb-circlecolor:var(--awb-color3);--awb-circle-yes-font-size:14.08px;" class="fusion-checklist fusion-checklist-1 fusion-checklist-default type-icons"><li class="fusion-li-item" style=""><span class="icon-wrapper circle-yes"><i class="fusion-li-icon awb-icon-check" aria-hidden="true"></i></span><div class="fusion-li-item-content"><strong>Unique queued listenerek</strong> — a queue-ba helyezett listenerek mostantól lehetnek egyediek (<a href="https://github.com/laravel/framework/pull/58402">#58402</a>)</div></li><li class="fusion-li-item" style=""><span class="icon-wrapper circle-yes"><i class="fusion-li-icon awb-icon-check" aria-hidden="true"></i></span><div class="fusion-li-item-content">authority() metódus a Support/Uri-hoz — URI authority komponens kezelése (<a href="https://github.com/laravel/framework/pull/58534">#58534</a>)</div></li><li class="fusion-li-item" style=""><span class="icon-wrapper circle-yes"><i class="fusion-li-icon awb-icon-check" aria-hidden="true"></i></span><div class="fusion-li-item-content"><strong>withoutAppends() az Eloquent modelleken</strong> — az appended attribútumok szelektív eltávolítása (<a href="https://github.com/laravel/framework/pull/58552">#58552</a>)</div></li><li class="fusion-li-item" style=""><span class="icon-wrapper circle-yes"><i class="fusion-li-icon awb-icon-check" aria-hidden="true"></i></span><div class="fusion-li-item-content">MorphMap használata model identifierek szerializálásakor (<a href="https://github.com/laravel/framework/pull/58482">#58482</a>)</div></li><li class="fusion-li-item" style=""><span class="icon-wrapper circle-yes"><i class="fusion-li-icon awb-icon-check" aria-hidden="true"></i></span><div class="fusion-li-item-content"><strong>SQL Server grammar javítások</strong> — precíziós ellenőrzések oszloptípusoknál (<a href="https://github.com/laravel/framework/pull/58602">#58602</a>)</div></li><li class="fusion-li-item" style=""><span class="icon-wrapper circle-yes"><i class="fusion-li-icon awb-icon-check" aria-hidden="true"></i></span><div class="fusion-li-item-content"><strong>Notification állapotmegőrzés</strong> a via() metódusból sendNow() -ba (<a href="https://github.com/laravel/framework/pull/58558">#58558</a>)</div></li></ul></div></div><div class="fusion-layout-column fusion_builder_column fusion-builder-column-5 fusion_builder_column_1_1 1_1 fusion-flex-column" style="--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;"><div class="fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column"><div class="fusion-text fusion-text-10"><p>A teljes changelog elérhető a <a href="https://github.com/laravel/framework/releases/tag/v12.50.0" target="_blank" rel="noopener">GitHub release oldalon</a>.<br />
Köszönet a 20 közreműködőnek, akik ezt a kiadást lehetővé tették! 🚀</p>
</div></div></div></div></div>
<p>A <a href="https://iworkshop.hu/laravel-12-50/">Laravel v12.50.0 – 3 újdonság</a> bejegyzés először <a href="https://iworkshop.hu">iWorkshop</a>-én jelent meg.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
