mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
initial commit
This commit is contained in:
commit
1beb9dd34c
281 changed files with 56773 additions and 0 deletions
|
|
@ -0,0 +1,87 @@
|
|||
<!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 just write procedural code in classes</h1>
|
||||
|
||||
<div class="flex justify-center w-1/2 gap-1 flex-wrap">
|
||||
<a href="https://pbs.twimg.com/media/Ean2u-YX0AEmwEd.jpg?name=large" target="_blank">
|
||||
<img alt="Don't just write procedural code in classes" src="https://pbs.twimg.com/media/Ean2u-YX0AEmwEd.jpg?name=small">
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section role="article" class="mt-8 text-xl prose mx-auto">
|
||||
<p>This ties the previous tweet with the other tips here. OOP exists to make your code more readable, use it. Don't just write 400 line long procedural code in controller actions.</p>
|
||||
<p>Here's code from my first Laravel project 😬 <a href="https://t.co/2DeGX148Wh">https://t.co/2DeGX148Wh</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/1272822462040899584" 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue