This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Feature\Katas; | |
use PhpParser\Node\Expr\Cast\Object_; | |
class TennisMatch | |
{ | |
protected Player $playerOne; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Feature\Katas; | |
use Tests\Feature\Katas\TennisMatch; | |
use PHPUnit\Framework\TestCase; | |
class TennisMatchTest extends TestCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Feature\Katas; | |
class Player | |
{ | |
public int $points = 0; | |
public string $name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
import {Link, useForm} from '@inertiajs/vue3'; | |
import InputError from '@/Components/InputError.vue'; | |
import InputLabel from '@/Components/InputLabel.vue'; | |
import PrimaryButton from '@/Components/PrimaryButton.vue'; | |
import TextInput from '@/Components/TextInput.vue'; | |
import AppHead from "@/Layouts/AppHead.vue"; | |
import {reactive, ref, toRefs} from "vue"; | |
import axios from "axios"; | |
import debounce from "lodash/debounce"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is just the gist where I store all the images I use for markup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Filters; | |
abstract class Filters | |
{ | |
/** | |
* The protected request and query objects. | |
* @var object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
use Exception; | |
trait EnumMethods | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineStore } from "pinia"; | |
import useBreaks from "../Composables/useBreakpoints"; | |
const { isSmall, isMedium, isLarge, isExtraLarge, is2xl, greaterThanMedium, greaterThanLarge } = useBreaks(); | |
export const useLayoutStore = defineStore("layout", { | |
state: () => ({ | |
sidebar: { | |
open: false, | |
expanded: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<SidebarLayout v-if="$page.props.auth.user" | |
@newPost="handleNewPost"/> | |
<div id="wrapper" | |
class="flex w-full place-content-center"> | |
<main id="main" | |
:class="[ | |
layout.isMedium ? 'max-w-[980px]' : '', | |
layout.isLarge && !layout.isSidebarExpanded ? 'max-w-[956px]' : '', | |
layout.isLarge && layout.isSidebarExpanded ? 'max-w-[762px]' : '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineConfig } from 'vite'; | |
import laravel from 'laravel-vite-plugin'; | |
import vue from '@vitejs/plugin-vue'; | |
import fs from 'fs'; | |
import { homedir } from 'os'; | |
import { resolve } from 'path'; | |
export default defineConfig({ | |
plugins: [ | |
laravel({ |
OlderNewer