Skip to content

Instantly share code, notes, and snippets.

View mreduar's full-sized avatar

Eduar Bastidas mreduar

View GitHub Profile
@mreduar
mreduar / migrateHeroicons.js
Last active May 15, 2024 17:22 — forked from christiangenco/migrateHeroicons.js
Heroicons v1 to v2
const fs = require("fs");
const { execSync } = require('child_process');
if (!fs.existsSync("package.json")) {
console.error(
"Cannot find package.json. Please run this script in your project directory."
);
process.exit(1);
}
@mreduar
mreduar / PassportLaravelSpark.md
Last active June 15, 2020 02:21 — forked from tao/gist:fba880299bdfdcfd491582724ede9dd7
Using Laravel Passport with Laravel Spark 10.0

Installation

As far as I know this is how to get Passport on Laravel Spark working correctly, it works so far for me over the API but there might be something I am still missing.

I am using the following software versions in composer.json:

    "require": {
        "php": "^7.2.5",
 "fideloper/proxy": "^4.2",
@mreduar
mreduar / beautifier.js
Created July 24, 2019 17:33 — forked from fzldn/beautifier.js
VS Code Laravel Blade formatter using extension Beautify 1.5.0 by HookyQR with js-beautify hacks
...
Beautifier.prototype.beautify = function() {
...
var source_text = this._source_text;
// BEGIN
source_text = source_text.replace(/\{\{(--)?((?:(?!(--)?\}\}).)+)(--)?\}\}/g, function(m, ds, c, dh, de) {