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/create-action-classes/index.html
2021-04-06 18:27:18 +02:00

87 lines
4.2 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">🔥 Create action classes</h1>
<div class="flex justify-center w-1/2 gap-1 flex-wrap">
<a href="https://pbs.twimg.com/media/Ean0gvIWsAAIfxK.jpg?name=large" target="_blank">
<img alt="Create action classes" src="https://pbs.twimg.com/media/Ean0gvIWsAAIfxK.jpg?name=small">
</a>
</div>
</header>
<section role="article" class="mt-8 text-xl prose mx-auto">
<p>Let's expand on the previous example. Sometimes, creating a class for a single action can clean things up.</p>
<p>Models should encapsulate the business logic related to them, but they shouldn't be too big. <a href="https://t.co/Mll37AAh5o">https://t.co/Mll37AAh5o</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/1272822450137546753" 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>