1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/test/tips/have-a-single-source-of-truth-for-validation-rules/index.html
2021-04-06 18:27:18 +02:00

84 lines
3.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<link rel="stylesheet" href="/css/app.css?id=d5acc62a4ce7a6842556">
<script type="module" src="/js/app.js?id=a136d2a5a73d65f4c129"></script>
<link href="https://fonts.rcvd.io/iA%20Writer/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body class="antialiased bg-white">
<div class="w-full p-3 text-center min-h-screen flex justify-between flex-col">
<main class="mx-auto flex justify-between items-center gap-8">
<aside class="flex flex-col gap-2">
<h2 class="text-2xl font-medium">
<a class="block" href="/">
Laravel Code Tips
</a>
</h2>
<div class="flex justify-between">
<a class="block" href="https://twitter.com/LaravelCodeTips" target="_blank">
<span class="link">Twitter</span>
</a>
<span class="px-2">·</span>
<a class="block" href="https://newsletter.laravel-code.tips" target="_blank">
<span class="link">Newsletter</span>
</a>
<span class="px-2">·</span>
<a class="block" href="https://t.me/laraveltips" target="_blank">
<span class="link">Telegram</span>
</a>
</div>
<a class="block" href="/">
<span class="link">All tips</span>
</a>
</aside>
<article class="max-w-5xl w-full mt-8 text-xl">
<header class="flex justify-center flex-wrap gap-5">
<h1 class="text-4xl w-full">🔥 Have a single source of truth for validation rules</h1>
<div class="flex justify-center w-1/2 gap-1 flex-wrap">
</div>
</header>
<section role="article" class="mt-8 text-xl prose mx-auto">
<p>If you validate some resource's attributes on multiple places, you definitely want to centralize these validation rules, so that you don't change them in one place but forget about the other places.</p>
<p><a href="https://t.co/qI1Q0HUEyK">https://t.co/qI1Q0HUEyK</a></p>
</section>
</article>
<aside>
<dl class="grid grid-cols-2 gap-x-5 gap-y-4 items-center">
<dt class="text-right">Author</dt>
<dd class="text-left">
<a href="https://twitter.com/samuelstancl" class="flex items-center gap-2" target="_blank">
<img src="https://pbs.twimg.com/profile_images/1257272213088190464/8kuysprf_normal.jpg" class="w-8 rounded-full border-blue-800 border-2">
<span class="text-blue-800">Samuel Štancl</span>
</a>
</dd>
<dt class="text-right">Thread</dt>
<dd class="text-left text-blue-800">
<a href="http://127.0.0.1:6969/threads/laravel-clean-code-tactics">
Laravel Clean Code Tactics
</a>
</dd>
<dt class="text-right">Tweet</dt>
<dd class="text-left text-blue-800">
<a href="https://twitter.com/samuelstancl/status/1272826456960315392" target="_blank">
twitter.com/...
</a>
</dd>
</dl>
</aside>
</main>
<footer class="space-y-2 text-gray-700 text-sm">
<p>Found an error? Contact us at <a href="mailto:hello@laravel-code.tips" class="link">support@laravel-code.tips</a>.</p>
<p>Want to share a tip? Submit it <a href="https://airtable.com/shrBX2ZAfnuAXh3up" target="_blank" class="link">here</a>.</p>
</footer>
</div>
</body>
</html>