refactor: Update import statement for Carbon library

The import statement for the Carbon library in the listposts.blade.php file has been updated to use the @use directive instead of the @php directive. This change improves code readability and follows best practices.
This commit is contained in:
Rico van Zelst
2023-12-13 09:01:30 +01:00
parent ca94ef62d0
commit 0a06f1f7cc

View File

@@ -1,4 +1,5 @@
@php use Carbon\Carbon; @endphp @use('Carbon\Carbon')
<div class="container mx-auto p-4 flex flex-col items-center justify-center mt-3"> <div class="container mx-auto p-4 flex flex-col items-center justify-center mt-3">
<div class="grid grid-cols-1 md:grid-cols-2 gap-12 auto-cols-max w-full"> <div class="grid grid-cols-1 md:grid-cols-2 gap-12 auto-cols-max w-full">
@foreach($posts as $post) @foreach($posts as $post)