After conducting an extensive two-week search for a comprehensive guide on implementing multi-tenancy within my SaaS project, I regrettably found no fully documented resources. Consequently, I resorted to seeking assistance through Filament's support channels, where I received invaluable assistance from knowledgeable individuals.
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 { Emitter } from "./constructorFunction.mjs" | |
let emit = new Emitter(); | |
emit.on("login",function(){ | |
console.log("hello you are logged in"); | |
}) | |
emit.emit("login") |
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
let calc = require("./calcMethod"); | |
let personalData = require("./personData") | |
// <------------- demo 1 -----------------> // | |
console.log(calc.math("A",1,calc.add)); | |
console.log(calc.math(1,3,calc.subtract)); | |
console.log(calc.math(1,3,calc.multiply)); | |
// <------------- demo 2 -----------------> // | |
console.log(personalData("Hegabovic",1995)); |