
Suppose you find yourself in a situation where you need to disable or intercept a console command in Laravel. This tutorial will primarily focus on how to intercept the php artisan migrate command. We'll delve into the command method app/Console/Keel.php and explore how to prevent the migrate command from executing any actions. Inside the command method of app/Console/Keel.php In Laravel 11 use routes/console.php Intercept command You can intercept php artisan migrate and, instead, catch it and use a closure. Artisan::command('migrate', function () { // }); This would essentially stop the migrate command from doing anything. You could then print a message out: Artisan::command('migrat...
ادامه مطلب
Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Let's block ads! بخوانید...
ادامه مطلب
I try to set a root password as follows: mysqladmin -u root password "root"; Then I make a coection to my MySQL server, the following command: mysql -u root -p Enter password: **** enter image description here ...
ادامه مطلب
Ok, I already read how to swap fn / ctrl in bios. I enter bios, then go to Keyboard / Mouse, then Enabled Fn and Ctrl Key swap and also enabled fn key as primary function. Success. Now I can easily do f1-f12 without use fn key, that's good, can use ctrl f3 (or fn f3 actually because already swapped) example to increase sound. But.... still have issue, how do I click ctrl + f9 real (example in some IDE / editor, if you want to compile, you have to press ctrl + f9), but ctrl + f9 will trigger 'setting' or gear icon in my notebook (that mean is after swap fn / ctrl, if i click ctrl f3 or fn f3 the result will be same, fn f3). This is a big problem for me, since I am do many ctrl + f1-f12 key an...
ادامه مطلب
I have Fedora 24 installed using Hyper-V on top of Windows 10 (aiversary update) Trying to get the Hyper-V vGPU working, but Fedora does not recognizing it, and it doesn't even recognizing the video device if i don't have the vGPU enabled. Anyway to get some video acceleration or even just fullscreen working on this setup or should i look at different Hyper-visors? Side Question: Would i be better off testing this with Server 2016 - Which has pass through? I started this expedition after i noticed keel 4.6 is suppose to support Hyper-V better than previous versions. Let's block ads! بخوانید...
ادامه مطلب
I'm an L2 helpdesk guy and I have a user whose Lenovo L440 will not coect to wifi. The wifi icon in the notification area shows a red X and the "tu wireless on" button is greyed out in the Mobility Center. When she presses F8, it shows that wifi is on. The adapter is enabled and "allow to tu off to save power" is unchecked. We've reinstalled Pro/Set Wireless, and tried to install the adapter driver from the Device Manager. When I uninstalled the device there, checking the "remove driver" checkbox, it did not find the driver in Windows Update and I had to install Pro/Set Wireless from the Intel website. I've reinstalled the Hotkey Features Integration package and the Power Management driver. ...
ادامه مطلب
I caot understand what should I write to the terminal according to step 4 here. Can you help me please? ...
ادامه مطلب
My site http://iosre.com is built upon discourse. It remains unreachable after setting up fail2ban. I've asked the question on their official forum, but their staff said it may be a general server problem and suggested superuser. I guess my website may be under attack, but since I'm not a server expert, I have no idea what to do the fix or track down the problem. Any ideas? Thanks! Let's block ads! بخوانید...
ادامه مطلب
I HV A 24 PORT SWITCH OF DLINK WHICH HV A OPTICAL WIRED CONNECTION AND ALL COMPUTER RUN ON LAN PROVIDED BY SWITCH , I WANT TO CONNECT THAT 24 PORT SWITCH TO MY MOBILE HOTSPOT ,MEANS IF THAT 24 PORT SWITCH CAN RECEIVE WIFI SIGNAL BY MY MOBILE MY QUESTION IS THERE ANY DEVICE (LAN WIFI RECEIVER ) THAT I CAN PLUG IN BY LAN PORT IN ANY PORT , IN MY 24 PORT SWITCH . THAT WILL RECEIVE WIFI SIGNAL FR MY PHONE AND ALL MY 23 COMPUTER WILL RUN ,WITH OUT ADDING INDIVISUAL WIFI RECEIVER IN 23 PC . Let's block ads! بخوانید...
ادامه مطلب
I just installed ionic following this guide. http://stackoverflow.com/questions/31041366/how-to-install-ionic-framework-on-ubuntu and also installed ionic / cordova using the command from ionic framework but when I start the app using this command ionic start todo example this message keep on showing up giving errors. I searched up and only found two threads talking about it but both of them just said restart the terminal. I even restarted my machine but still giving me this error. Can someone please give me a hand? Creating Ionic app in folder /home/et-ubuntu-pc/todo based on example project Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip [========================...
ادامه مطلب
Use it in what capacity? Custom PCB design is out of scope for Superuser –Ramhound 1 min ago Sorry, this is totally off-topic here, and a very vague question to boot. It might be on-topic on electronics.stackexchange.com , if you describe in detail what you want to do, and where you are having problems. –sleske 31 secs ago Let's block ads! بخوانید...
ادامه مطلب
I'm plaing to put together a 4k pc gaming rig, in research stage. I'm really confused with the graphic cards. I was thinking of getting Asus GTX 980ti oc. Then I started researching Asus GTX 1070 oc. I'm confused because the 1070 in Canada is over $200 cheaper. I would have thought since the 980ti was released first it would be cheaper. What am I missing? Could someone please shed some light on what the 980ti offers that the 1070 is missing? Which do you think it is better for 4k gaming? Let's block ads! بخوانید...
ادامه مطلب
I have a pair of earbuds with a microphone that I would like to record with instead of the terrible inbuilt one. Unfortunately, when I plug it in it still uses the inbuilt one. The icon next to the jack indicates that it is speaker and microphone, and the end of my audio jack does have four rings. The microphone works fine on my Android phone, so I know it isn't the earbuds' fault. I remember when I first plugged them, there was a dialogue menu that asked what I wanted to coect it as, and I selected sound and tried to select microphone, but it only let me use one so I selected sound and told it not to ask again. How can I get the microphone to work on those earbuds? Getting sound and mic to ...
ادامه مطلب
I'm ruing Ubuntu 14.04. I need someone to tell me the steps I need to take to fix this issue... It's not my Inteet problem because I'm able to wired in on my other laptop. So it's obviously something wrong with my laptop. It makes no sense that It was working perfectly fine yesterday and then today dead... I did not installed anything . Things to know My mac address is not blocked (contacted my Network Administrator) Wired coections works when I got home but not at work. Tested the wired coection on another laptop and it works Etheet port is not damaged. Test it out with an adapter(same outcome) What are the steps I need to take to diagnose this? ifconfig eth0 Link encap:Etheet ...
ادامه مطلب
Info: I'm using acer aspire 5733 (windows 8). I recently bought a new battery online that has a capacity of 112 Wh (which is double the original 48 Wh AS10D31 battery that the laptop came with). It came with the same voltage as the original one which is 10.8 V. Charger supplies 19 V 3.42 A 65W. Problem: I caot charge the new battery past 43% even after two days of charging. I tried to calibrate the battery by draining it all the way and uninstalling Microsoft ACPI compliant control but all attempts were to no avail. Any suggestions/advice. Thanks! Let's block ads! بخوانید...
ادامه مطلب
Sometimes my mouse accidentally moves too low, and gets over the taskbar while I am trying to scroll, which results in the active window being replaced by the next one, i.e. the next window pops up and covers my focal one. Note, that I'm not talking about scrolling among icons in a crowded taskbar that only show a fraction of windows (as can be seen in this image), neither about this issue, but about the fact that when I move my mouse wheel while being over the taskbar the next window will pop up without me clicking on its taskbar icon. Is it possible to disable scrolling behaviour in the Windows 7 taskbar? Let's block ads! بخوانید...
ادامه مطلب
windows 10 x64 pro, Asus z170p, BIOS version old. AMD graphics card. As you all are facing, I am facing the beta graphics driver-secure boot problem after windows 10 aiversary update, seems like microsoft hates non-WHQL drivers and I can't properly install beta drivers in windows 10 anymore. So I need to disable secure boot. But I can not disable secure boot from BIOS, the option is grayed out in BIOS. I even tried Windows->Settings Menu-> Update->Advance Startup->Troubleshoot->Restart-> UEFI FIRMWARE SETTINGS. The option is still grayed out. So I wonder how I can disable secure boot. Do I have to do anything with the Secure Boot Keys? Let's block ads! بخوانید...
ادامه مطلب
I am using a self-generated certificate for my mail server to which I coect through SSL/TLS. Due to the self-generated certificate which I have not added to the Windows certificate store, Thunderbird asks me to add an exception for this certificate in order to use it. So far, things went fine for years. Today, Thunderbird presented me a dialog to add an exception for my email certificate. Of course I was surprised and looked into the certificate details. It shows "ESET SSL Filter CA" in the chain, which is a clear indicator that this change is related to the upgrade of ESET NOD32 virus scaer to version 9 I performed yesterday. A similar question for Avast suggests that this is not much of an...
ادامه مطلب
Typically I'm using MikroTik embeded routers, they're basing on Linux so their firewall settings feel pretty much 1:1 the same as iptables, just commands are a bit different but mechanics the same. Some more advance MTK firewall functionality with raw iptables can be achieved using -m extensions - like coection states or comments for example. I can't find disable option in raw iptables. Is there any iptables extension that allows to temporarily disable iptables rules? By temporarily I mean disabling rule without actually removing it from table so that it's still visible in iptables -L but not functional. In MTK you can type something like set 40 disabled=yes and then later set 40 disabled=no...
ادامه مطلب
So as the title says, I bricked my laptop. I'm not that good at explaining but let me try. I reformatted my laptop and installed the drivers given by the acer support, driver and manual site. and noticed my speakers aren't working. I opened my laptop to check if the speakers are still okay or the pins might have been discoected. So it was still okay, after a couple of minutes searching, I found out I needed to update my BIOS. and so I did (yes I checked the version first). everything was doing well as plaed except for some reason there was an error on memory block 0xFFFFF100. it didn't give me any more details except Error on Memory Block 0xFFFFF100 and decided to shut it self down. I re sta...
ادامه مطلب