Skip to content

Instantly share code, notes, and snippets.

View phpfact's full-sized avatar
🎯
Focusing

Sachin Sharma phpfact

🎯
Focusing
View GitHub Profile
/*
* 1. Clear All Localstorage
*/
(function deleteAllLocalstorage() {
window.localStorage.clear();
console.log('Clear All Localstorage.');
})();
laravel-7-x-sanctum-spa-with-vuejs-always-returns-401-unauthorized
2 time login error in laravel, 2 time error login 2 time login error, multiple time login failed, error in laravel, login failed multiple time, laravel login login login laravel login failed
Solution: https://stackoverflow.com/questions/62354802/laravel-7-x-sanctum-spa-with-vuejs-always-returns-401-unauthorized
Email not send create log in laravel
1. https://laracasts.com/discuss/channels/laravel/how-to-monitor-and-log-all-email-that-is-sent-out
2. https://stackoverflow.com/questions/42798745/laravel-mail-to-log
config/app.php
https://stackoverflow.com/questions/54905292/laravel-debugger-enable-disable-depending-on-ip-address-while-caching-implemen
<?php
'debug' => env('APP_DEBUG', $_SERVER['REMOTE_ADDR'] == 'your.ip.address' ? true : false),
<!-- Paste Disable Paste input disable paste disable into input field input field paste disable -->
<input type="text" onpaste="return false;" autocomplete="off" />
<script>
SELECT `columnnamehere`, COUNT(`columnnamehere`) FROM `hereisyourtablename` GROUP BY `columnnamehere` HAVING COUNT(`columnnamehere`) > 1;
/*
#Output
Value Count
0 22
1 26
*/
How to Enable Query Log Laravel on Anywhere
all query run in laravel project list created in there....
https://youtu.be/-COu-wS0Ho4
https://smarttechways.com/2021/05/27/enable-or-disable-general-log-for-sql-query-in-mysql
or with table
https://tableplus.com/blog/2018/10/how-to-show-queries-log-in-mysql.html
I found solution....paste this code in xampp/phpmyadmin/index.php...and create newfile.txt..find finally you get ip log with date-time in newfile.txt.........best of luck!!
//==========ip log who accessed phpmyadmin===========
date_default_timezone_set('Asia/Calcutta');
$ip = getenv('REMOTE_ADDR');
$time = date("Y-m-d H:i:s");
$txt = $ip."=>".$time."%%%%%%%%";