Run npm install -D prettier prettier-plugin-antlers prettier-plugin-blade prettier-plugin-tailwindcss in your terminal
Create a .prettierrc file with the following content
{
"singleQuote": true,
"printWidth": 140,| <?php | |
| namespace App\Helpers; | |
| use Illuminate\Support\Facades\Http; | |
| use Illuminate\Support\Facades\Storage; | |
| use Intervention\Image\ImageManagerStatic as Image; | |
| use Statamic\Contracts\Assets\AssetContainer; | |
| use Statamic\Facades\Asset; |
| const plugin = require('tailwindcss/plugin'); | |
| const columns = 12; | |
| const columnUtilityOptions = { | |
| ...{ full: 'full', hd: 'hd', content: 'content' }, | |
| ...Object.fromEntries([...Array(columns).keys()].map((k) => [`${k + 1}`, `${k + 1}`])), | |
| }; | |
| /** @type {import('tailwindcss').Config} */ | |
| export default { |
| <?php | |
| $current_year = date("Y"); | |
| echo '<ul>'; | |
| for ($month = 1; $month <= 12; $month++) { | |
| echo '<li>'; | |
| echo date("d.M.Y", strtotime("first monday of $current_year-$month") - 1); | |
| echo '</li>'; | |
| } | |
| echo '</ul>'; |
| server { | |
| listen 80; | |
| server_name project.test www.project.test *.project.test; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; | |
| location /41c270e4-5535-4daa-b23e-c269744c2f45/ { |
| server { | |
| listen 80; | |
| server_name project.test www.project.test *.project.test; | |
| return 301 https://$host$request_uri; | |
| } | |
| server { | |
| listen 443 ssl http2; |