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
| Backup | |
| ----------------------------------------------------------------------------------------------------------------------------------- | |
| Step 1: Install & Activate plugins: https://wordpress.org/plugins/all-in-one-wp-migration/ | |
| Step 2: Go [All-in-One WP Migration > Backups > Create Backup] from Your Admin Menu | |
| Step 3: If you want to change URL, like Live server to local server, Use "Find <text> Replace with <another-text> in the database" | |
| Example: Live: http://boipoka.org ----> Local: http://localhost/boipoka | |
| Step 4: Export to File | |
| Step 5: Download | |
| Restore |
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 <taylor@laravel.com> | |
| */ | |
| /* |
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() { |