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
Route::any('/dynamic/route/{class}/{method}', function ($class, $method) { | |
$class = "\App\Http\Controllers\\" . str_replace('-', "/", $class); | |
// return $class; | |
$con = new $class(); | |
return $con->$method(); | |
})->name('dynamic.route'); | |
global.route2 = (classAndMethodName, params = {}) => { | |
let array = classAndMethodName.split('@') | |
params.class = array[0].replace(/\\/g, '-') |
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
/* | |
Just add this JS code in you HTML however you want. it will check all kinds of AdBlocker with JS | |
*/ | |
var adBlockEnabled = false; | |
var testAd = document.createElement('div'); | |
testAd.innerHTML = ' '; | |
testAd.className = 'adsbox'; | |
document.body.appendChild(testAd); | |
window.setTimeout(function() { | |
if (testAd.offsetHeight === 0) { |