mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user