This file contains hidden or 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
//Clear Cache facade value: | |
Route::get('/clear-cache', function() { | |
$exitCode = Artisan::call('cache:clear'); | |
return '<h1>Cache facade value cleared</h1>'; | |
}); | |
//Clear Route cache: | |
Route::get('/route-clear', function() { | |
$exitCode = Artisan::call('route:clear'); | |
return '<h1>Route cache cleared</h1>'; |
This file contains hidden or 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 | |
/** | |
* Laravel - A PHP Framework For Web Artisans | |
* | |
* @package Laravel | |
* @author Taylor Otwell <[email protected]> | |
*/ | |
/* |
This file contains hidden or 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
@if(!is_null(session('flash_notification'))) | |
@foreach ((array)session('flash_notification') as $message) | |
@php | |
$message = (array)$message[0]; | |
@endphp | |
<script> | |
var Message = <?php echo json_encode($message); ?>; | |
toastr.options = { | |
"closeButton": true, |
This file contains hidden or 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
UPDATE table_name1 | |
SET column1 = ( | |
SELECT column2 | |
FROM table_name2 | |
WHERE table_name1.id = table_name2.id | |
); | |
This file contains hidden or 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
{ | |
"Rajshahi": { | |
"Joypurhat": [ | |
"Akkelpur", | |
"Joypurhat Sadar", | |
"Kalai", | |
"Khetlal", | |
"Panchbibi" | |
], | |
"Bogura": [ |
This file contains hidden or 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 | |
symlink('/home/username/public_html/directory1', '/home/username/public_html/directory2'); | |
?> |
This file contains hidden or 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
document.onkeypress = function(e) { | |
if (123 == (e = e || window.event).keyCode) return !1 | |
}, document.onmousedown = function(e) { | |
if (123 == (e = e || window.event).keyCode) return !1 | |
}, document.onkeydown = function(e) { | |
if (123 == (e = e || window.event).keyCode) return !1 | |
}; | |
var message = "Sorry, right-click has been disabled"; | |
function clickIE() { |
This file contains hidden or 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\Console\Commands; | |
use Illuminate\Console\Command; | |
class EnsureQueueListenerIsRunning extends Command | |
{ | |
/** | |
* The name and signature of the console command. |