Skip to content

Instantly share code, notes, and snippets.

View marifuli's full-sized avatar
🏠
Working from home

Md Ariful Islam marifuli

🏠
Working from home
View GitHub Profile
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, '-')
/*
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) {