
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 an...
ادامه مطلب
The script generated by the Feedback Form Wizard has been updated to improve compatibility with PHP 8 (eg, 8.0, 8.1, etc). Note: if you have generated your form and script after 1 January 2023, you already have this version (ver 3.2.0). ...
ادامه مطلب
When upgrading from an Intel mac to an Apple Silicone I noticed docker fails to run. I'm using Laravel Sail when Sail is installed or when a sail up command is attempted I get an error: docker: 'compose' is not a docker command The reason for this is a docker-compose is now a plugin. Docker needs docker-compose to be installed. Use brew to install docker-compose brew install docker-compose Once installed sail will function normally without any extra setup. بخوانید...
ادامه مطلب
Find out how to generate an SSL certificate for a website on your own computer. (For those wondering, SSL certificates are needed so that your site can be accessed using HTTPS instead of HTTP.) ...
ادامه مطلب
YouTube is the second biggest search engine in the world and the 2nd most popular website in the world with over 2 billion monthly active devices. YouTube has grown pretty quickly and overtaken Facebo...
ادامه مطلب
I run into a problem with my exteal HDD, i used it for backups but when i reinstalled windows (and forgot to remove the HDD) my HDD got whiped. After the whipe suddenly my HDD splitted itself into multiple Disks. Ive tried evrything and googles alot but no succes. I would like to bring it back to one disk, just like it was when i bought it. Can anyone help me out, or give me some tips on how to achieve this? Here is an image of the partitions, if you need any extra details of information let me ...
ادامه مطلب
I have 2 crucial sticks in my ASUS P8Z68-V LX atm. I'd like to go to 8GB and wanted to know if the lower voltage Kingston sticks would be compatible? ...
ادامه مطلب
Using command prompt, how can I change my Gmail address useame on my local account back to Microsoft. It doesn't let me sign in. You see my Gmail address but when I put my password in, it said to change my Microsoft password to sign in. But it's not a Microsoft account. Somehow I ended up with my Gmail address as my sign in local account. I also don't see the option of changing my useame. I can only sign in as a built-in administrative. Let's block ads! بخوانید...
ادامه مطلب
I have a client who has asked for a number of dropdowns in their form which can be any value between 1 and 240 months. I assume there must be an easier way to set this up than typing the numbers 1 - 240 multiple times? Alteatively - in fact preferably - is there a better control to use for this than a combobox? It seems to me that scrolling down a list of 240 items is not a very good user experience. Let's block ads! بخوانید...
ادامه مطلب
I am using Windows 10 (well, the version is irrelevant I believe) and I would like to execute my programs through 'Run' just for convenience. My problem is, where do I look for each software's Run keyword ? For example, to open paint, you can run 'mspaint', to open Notepad++ I luckily figured out you can run notepad++ but what about other processes ? For example, I have no clue how to open Sublime text 3 with Run or paint.net and many other software. If you are willing to help, please also provi...
ادامه مطلب
I'm trying to automate a backup script with attic, but I'm stuck on this issue: the actual attic command performs differently when executed from the script and when executed directly in the terminal. The script builds and executes the command: /usr/bin/attic create --stats --verbose --exclude '/home/.cache' /media/attic-backup/paolo.attic::2016-08-27 /home the command outputs the files backuped up from attic: /home /home/.attic /home/.attic/keys /home/.cache /home/git /home/git/.bash_history...
ادامه مطلب
I cannot understand what should I write to the terminal according to step 4 here. Can you help me please? ...
ادامه مطلب
I am asking because some minutes ago my month-old Lenovo Y700 desktop (running windows 10) suddenly restarted itself. This is the first time anything like this has happened before. No blue screens and no errors. I know it wasn't due to temperature or strain on my GPU as the only programs I had open at the time were Opera and Adobe Acrobat DC. The only other thing I can think of is a power surge as we've had that once before and it fried my laptop several years back. I've installed a surge protec...
ادامه مطلب
During Ping command what kind of packet they are going to send ? I got output like this: 19 packets transmitted, 19 received, 0% packet loss, time 18006ms so what is strategy behind this . also I want to know how I come to know that my packet is receiving at remote destination. Let's block ads! بخوانید...
ادامه مطلب
I've got 2 Windows installations which are identical, the same settings, the same programs. The only difference is that the Windows architecture is different, the one is 32bit and the other one is 64bit. When having sysprepped my 32bit installation with the following answer file: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="u:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitec...
ادامه مطلب
I have a FT232R device controlled by a VXM Stepping Motor Controller. I was able to communicate with the device on Mac(using Matlab). But I'm having trouble doing it on Windows. I installed the VCP driver for Windows 64-bit from here: http://www.ftdichip.com/Drivers/VCP.htm I already checked that the driver is properly installed. Here is my code: #include <windows.h> #include <setupapi.h> #include <stdio.h> int main() { char command[34] = "I2M10,R"; HANDLE hSerial = Cr...
ادامه مطلب
I want to cd to USB without specifying it because it changes its letter on every other computer. ...
ادامه مطلب
I spend two days trying to compile my code with header as cross compiler for OpenWrt I am using LinksysWRT54GL, and mipsel architecture. I download the libpcap from OpenWrt and tried to generate the MakeFile using ./configure --prefix=$TOOLCHAIN --build=mipsel-openwrt-linux-gnu --host=mipsel-openwrt-linux-uclibc --with-pcap=null and I got this error when I ran make pcap-usb-linux.o: could not read symbols: File in wrong format collect2: ld retued 1 exit status make: *** [libpcap.so] Error 1 ...
ادامه مطلب
That "legacy console" option should only be available on a shortcut to cmd.exe, not on cmd.exe itself. So hopefully something is wrong with your shortcut and not with the actual cmd.exe. Try browsing to c:windowssystem32 (or whatever your system dir is), then running cmd.exe directly from there. Alteatively, press WIN+R and run c:windowssystem32cmd.exe directly. If that works like normal, then just delete the existing shortcut that's giving you the problems and create a new shortcut, that should...
ادامه مطلب
Is it not possible to make a permanent link to a bookmark folder? I want a URL which will take me to a specific folder, independently of which computer I am logged in at. Currently using e.g. "chrome://bookmarks/#2225", gives me the folder I want on one computer, but not on another. It is also not permanent, which is also a problem. Let's block ads! بخوانید...
ادامه مطلب