Skip to content

Instantly share code, notes, and snippets.

View whoisthisstud's full-sized avatar

The Lincster whoisthisstud

View GitHub Profile
@whoisthisstud
whoisthisstud / LaravelWhereLikeMacro.php
Created October 10, 2025 03:09 — forked from MrPunyapal/LaravelWhereLikeMacro.php
Laravel Custom 'whereLike' Macro for Dynamic 'LIKE' Searches including relationships
<?php
namespace App\Providers;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Stripe\Stripe;
class PaymentController extends Controller {
public function index() {
return view('test-payment');
@whoisthisstud
whoisthisstud / .gitignore
Created September 20, 2022 05:34 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
<script>
document.addEventListener('alpine:init', () => {
Alpine.data('flatpickr', () => ({
selectedDate: '',
init() {
const fp = new window.flatpickr(this.$refs.picker, {});
if (typeof window.flatpickrInputs === 'undefined') {
window.flatpickrInputs = [];
}
window.flatpickrInputs.push(fp);
<h1>List</h1>
<ul
x-data="{items: @entangle('items').defer, newItem:'', errors:{}}"
@validation.window="errors = $event.detail">
<template x-for="(item, index) in items">
<li x-bind:class="errors['item.'+index'] ? 'text-danger' : ''">
<span x-text="item"></span>
<i x-show="errors['item.'+index']"
x-text="errors['item.'+index] ? errors['item.'+index].join(' ') : ''"
@whoisthisstud
whoisthisstud / GooglePlacesAutocomplete.html
Created August 11, 2022 18:56 — forked from TWithers/GooglePlacesAutocomplete.html
AlpineJS implementation of Google Places Autocomplete
<div x-data="googlePlacesAutocomplete">
<div>
<label>Address</label>
<input type="hidden">
<input type="text" name="no-auto-fill" x-model="address.address1" x-ref="googleAutocomplete" autocomplete="no-auto-fill">
</div>
<div>
<label>Address 2</label>
<input type="text" name="address2" x-model="address.address2">
</div>
@whoisthisstud
whoisthisstud / Big List of Real Estate APIs.md
Created May 7, 2022 03:00 — forked from patpohler/Big List of Real Estate APIs.md
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.