mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
87 lines
4.3 KiB
HTML
87 lines
4.3 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">🔥 Don't split lines at random places, but don't make them too long either</h1>
|
|
|
|
<div class="flex justify-center w-1/2 gap-1 flex-wrap">
|
|
<a href="https://pbs.twimg.com/media/Eanz0jnXsAAvkv1.jpg?name=large" target="_blank">
|
|
<img alt="Don't split lines at random places, but don't make them too long either" src="https://pbs.twimg.com/media/Eanz0jnXsAAvkv1.jpg?name=small">
|
|
</a>
|
|
</div>
|
|
</header>
|
|
|
|
<section role="article" class="mt-8 text-xl prose mx-auto">
|
|
<p>Opening an array with [ and indenting the values tends to work well. Same with long function parameter values.</p>
|
|
<p>Other good places to split lines are chained calls and closures. <a href="https://t.co/bnTL2I0Bxa">https://t.co/bnTL2I0Bxa</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/1272822442990473216" 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>
|