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
<?php namespace App\Database; | |
use Config; | |
use DB; | |
class OTF { | |
/** | |
* The name of the database we're connecting to on the fly. | |
* |
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
//create new route | |
Route::get('/checkAuth', function() { | |
})->middleware('auth'); | |
//add this script to your master layout file | |
<script> | |
setInterval(function() { | |
$.ajax({ |