Skip to content

Instantly share code, notes, and snippets.

@grafxflow
grafxflow / index.php
Created March 7, 2026 17:54 — forked from vielhuber/index.php
get class model name of object #laravel #php
<?php
get_class($obj) // App\Models\Foo
class_basename($obj) // Foo
(new ReflectionClass($obj))->getShortName() // Foo
@grafxflow
grafxflow / README.md
Created April 7, 2023 14:17 — forked from eusonlito/README.md
Laravel Auth and Session without database. Using a remote API as Auth and Data provider.

This is an example of a web that uses a remote API as a database wrapper.

The remote API is stateless and the web uses cookies to maintain session persistence.

The API authentication endpoint returns a TOKEN that allows the web to make each request to the API with the user authentication header.


Este es un ejemplo de web que usa una API remota como wrapper de base de datos.

@grafxflow
grafxflow / FigureOptions.ts
Created September 27, 2021 14:03 — forked from vasiltabakov/FigureOptions.ts
Quill editor editable image caption
import Quill from 'quill';
import {TaskerFigure} from './TaskerFigure';
import Parchment from 'parchment';
export class FigureOptions {
quill: Quill;
figure;
overlay;
linkRange;
@grafxflow
grafxflow / examples-and-output.css
Last active June 22, 2017 19:13 — forked from kellec/examples-and-output.css
a LESS mixin for versatile gradients (with IE support)
/* Basic two stop gradient */
.example-gradient {
.linear-gradient(150deg, #eee, #aaa);
}
/* Outputs */
.example-gradient {
background: -webkit-linear-gradient(150deg, #EEE 0%, #AAA 100%);
background: -moz-linear-gradient(150deg, #EEE 0%, #AAA 100%);
background: -ms-linear-gradient(150deg, #EEE 0%, #AAA 100%);
background: -o-linear-gradient(150deg, #EEE 0%, #AAA 100%);