Skip to content

Instantly share code, notes, and snippets.

View Wulfheart's full-sized avatar

Alex Wulfheart

  • Kulmbach, Germany
  • 10:35 (UTC -12:00)
  • X @alexfwulf
View GitHub Profile
<?php
namespace Tests;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\ValidationException;
use Illuminate\Validation\Validator;
use Symfony\Component\HttpFoundation\ParameterBag;
use function PHPUnit\Framework\assertFalse;
CREATE table attr (
product_id int,
code varchar(50),
type varchar(50)
);
INSERT into attr (product_id, code, type) VALUES
(1,'a','ec'),
(1,'b','ec'),
@Wulfheart
Wulfheart / gist:ee82894e265879bef0a3d8017664718c
Created January 30, 2021 18:20
Laravel IDE Helper Composer Script
"ide": [
"@php artisan ide-helper:generate -n",
"@php artisan ide-helper:models -n",
"@php artisan ide-helper:meta -n"
]
@Wulfheart
Wulfheart / index.html
Created July 24, 2019 13:12
Navigation Tailwind CSS Responsive + VueJS
<div class="font-sans antialiased" id="app">
<nav class="flex items-center justify-between flex-wrap bg-teal p-6">
<div class="flex items-center flex-no-shrink text-white mr-6">
<svg class="fill-current h-8 w-8 mr-2" width="54" height="54" viewBox="0 0 54 54" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 22.1c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05zM0 38.3c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05z"/></svg>
<span class="font-semibold text-xl tracking-tight">Tailwind CSS</span>
</div>
<div class="block sm:hidden">
<button @click="toggle" class="flex items-center px-3 py-2 border rounded text-teal-lighter border-teal-light hover:text-white hover:border-white">
<svg class="fill-current h-3 w-3" viewBox="0 0 20 20" xmlns="http://www.w3.
@Wulfheart
Wulfheart / gdprremove.sql
Created July 22, 2019 20:21
webdiplomacy user delete
START TRANSACTION
@Wulfheart
Wulfheart / index.html
Last active December 30, 2017 23:53
Tribute Page
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Horst Degelmann Tribute</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.1/css/bulma.min.css">
</head>
<body class="body">
<section id="hero" class="hero is-fullheight is-success is-bold">