Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
- <style>
- .gradient {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- }
- </style>
- <title>Tailwind Card Grid</title>
- </head>
- <body class="bg-gray-100">
- <div class="container mx-auto my-10 px-4">
- <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
- <!-- Repeat this block for each card -->
- <div class="max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden md:max-w-2xl transition duration-500 ease-in-out transform hover:-translate-y-1 hover:scale-105">
- <div class="flex flex-wrap md:flex-nowrap">
- <div class="w-full md:w-1/3 h-48 md:h-auto md:min-h-full gradient"></div>
- <div class="p-8 w-full md:w-2/3">
- <h2 class="text-2xl font-semibold text-gray-900">How to always append attributes to Laravel Eloquent model</h2>
- <p class="mt-2 text-gray-500">Source: <a href="http://stackoverflow.com/questions/35701538/ddg#35701539" class="text-blue-600">Stack Overflow</a></p>
- <p class="mt-4">Tags: <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">php</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">api</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">laravel</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">laravel-5</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">restful-architecture</span></p>
- <p class="mt-4 text-gray-700">Answer by: <a href="http://stackoverflow.com/users/5751341/ddg" class="text-blue-600">Mustafa Dwekat</a></p>
- <p class="mt-4 text-gray-700">After some search I found that you simply need to add the <b>attribute</b> you want to the <code>$appends</code> array in your <b>Eloquent</b> <b>Model</b>...</p>
- <p class="mt-4"><a href="http://stackoverflow.com/questions/35701538/ddg#35701539" class="text-blue-600 font-semibold">Read More</a></p>
- </div>
- </div>
- </div>
- <div class="max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden md:max-w-2xl transition duration-500 ease-in-out transform hover:-translate-y-1 hover:scale-105">
- <div class="flex flex-wrap md:flex-nowrap">
- <div class="w-full md:w-1/3 h-48 md:h-auto md:min-h-full gradient"></div>
- <div class="p-8 w-full md:w-2/3">
- <h2 class="text-2xl font-semibold text-gray-900">How to always append attributes to Laravel Eloquent model</h2>
- <p class="mt-2 text-gray-500">Source: <a href="http://stackoverflow.com/questions/35701538/ddg#35701539" class="text-blue-600">Stack Overflow</a></p>
- <p class="mt-4">Tags: <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">php</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">api</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">laravel</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">laravel-5</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">restful-architecture</span></p>
- <p class="mt-4 text-gray-700">Answer by: <a href="http://stackoverflow.com/users/5751341/ddg" class="text-blue-600">Mustafa Dwekat</a></p>
- <p class="mt-4 text-gray-700">After some search I found that you simply need to add the <b>attribute</b> you want to the <code>$appends</code> array in your <b>Eloquent</b> <b>Model</b>...</p>
- <p class="mt-4"><a href="http://stackoverflow.com/questions/35701538/ddg#35701539" class="text-blue-600 font-semibold">Read More</a></p>
- </div>
- </div>
- </div>
- <div class="max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden md:max-w-2xl transition duration-500 ease-in-out transform hover:-translate-y-1 hover:scale-105">
- <div class="flex flex-wrap md:flex-nowrap">
- <div class="w-full md:w-1/3 h-48 md:h-auto md:min-h-full gradient"></div>
- <div class="p-8 w-full md:w-2/3">
- <h2 class="text-2xl font-semibold text-gray-900">How to always append attributes to Laravel Eloquent model</h2>
- <p class="mt-2 text-gray-500">Source: <a href="http://stackoverflow.com/questions/35701538/ddg#35701539" class="text-blue-600">Stack Overflow</a></p>
- <p class="mt-4">Tags: <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">php</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">api</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">laravel</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">laravel-5</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">restful-architecture</span></p>
- <p class="mt-4 text-gray-700">Answer by: <a href="http://stackoverflow.com/users/5751341/ddg" class="text-blue-600">Mustafa Dwekat</a></p>
- <p class="mt-4 text-gray-700">After some search I found that you simply need to add the <b>attribute</b> you want to the <code>$appends</code> array in your <b>Eloquent</b> <b>Model</b>...</p>
- <p class="mt-4"><a href="http://stackoverflow.com/questions/35701538/ddg#35701539" class="text-blue-600 font-semibold">Read More</a></p>
- </div>
- </div>
- </div>
- <div class="max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden md:max-w-2xl transition duration-500 ease-in-out transform hover:-translate-y-1 hover:scale-105">
- <div class="flex flex-wrap md:flex-nowrap">
- <div class="w-full md:w-1/3 h-48 md:h-auto md:min-h-full gradient"></div>
- <div class="p-8 w-full md:w-2/3">
- <h2 class="text-2xl font-semibold text-gray-900">How to always append attributes to Laravel Eloquent model</h2>
- <p class="mt-2 text-gray-500">Source: <a href="http://stackoverflow.com/questions/35701538/ddg#35701539" class="text-blue-600">Stack Overflow</a></p>
- <p class="mt-4">Tags: <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">php</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">api</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">laravel</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">laravel-5</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">restful-architecture</span></p>
- <p class="mt-4 text-gray-700">Answer by: <a href="http://stackoverflow.com/users/5751341/ddg" class="text-blue-600">Mustafa Dwekat</a></p>
- <p class="mt-4 text-gray-700">After some search I found that you simply need to add the <b>attribute</b> you want to the <code>$appends</code> array in your <b>Eloquent</b> <b>Model</b>...</p>
- <p class="mt-4"><a href="http://stackoverflow.com/questions/35701538/ddg#35701539" class="text-blue-600 font-semibold">Read More</a></p>
- </div>
- </div>
- </div>
- <div class="max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden md:max-w-2xl transition duration-500 ease-in-out transform hover:-translate-y-1 hover:scale-105">
- <div class="flex flex-wrap md:flex-nowrap">
- <div class="w-full md:w-1/3 h-48 md:h-auto md:min-h-full gradient"></div>
- <div class="p-8 w-full md:w-2/3">
- <h2 class="text-2xl font-semibold text-gray-900">How to always append attributes to Laravel Eloquent model</h2>
- <p class="mt-2 text-gray-500">Source: <a href="http://stackoverflow.com/questions/35701538/ddg#35701539" class="text-blue-600">Stack Overflow</a></p>
- <p class="mt-4">Tags: <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">php</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">api</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">laravel</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">laravel-5</span> <span class="bg-blue-100 text-blue-700 rounded px-2 py-1 text-sm">restful-architecture</span></p>
- <p class="mt-4 text-gray-700">Answer by: <a href="http://stackoverflow.com/users/5751341/ddg" class="text-blue-600">Mustafa Dwekat</a></p>
- <p class="mt-4 text-gray-700">After some search I found that you simply need to add the <b>attribute</b> you want to the <code>$appends</code> array in your <b>Eloquent</b> <b>Model</b>...</p>
- <p class="mt-4"><a href="http://stackoverflow.com/questions/35701538/ddg#35701539" class="text-blue-600 font-semibold">Read More</a></p>
- </div>
- </div>
- </div>
- <!-- End of card block -->
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement