Category: Laravel
-
Post Views: 57 1. Install Nginx Proxy Manager, open the Windows Terminal command line, and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 2. Enter the user root directory, create a new directory: proxy-manager, enter the directory: proxy-manager, create a file: docker-compose.yml. as shown in Figure 2 3. Edit the file: docker-compose.yml, save and…
-
Post Views: 16 1. In the Ubuntu system in WSL2, execute the command: sudo apt install php7.4-cli, report an error: e: failed to fetchhttp://security.ubuntu.com/ubuntu/pool/main/p/php7.4/php7.4-common_7.4.3-4ubuntu2.5_amd64.deb404 Not Found[IP: 91.189.88.152 80]. as shown in Figure 1 2. Based on the prompt information, run apt-get update. as shown in Figure 2 3. Execute the command again: sudo apt install php7.4-cli, no error is reported.…
-
Post Views: 16 1. Use Composer to create an application called weibo. Open the Windows Terminal command line and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 2. Ubuntu, as a Windows subsystem, can access the hard disk under the main system. In order to facilitate the management code, I have already created the…
-
Post Views: 111 1. Laravel Sail requires Windows 10 systems that support WSL 2. The 2004 version released in May 2020 only supports the WSL 2 function, so our system needs to be updated to the 2004 version equal to or greater than the 2004 version. To view the system version, you can use the winver command, refer to Windows…
-
Post Views: 17 1. The error is reported when uploading the picture file, because the picture in GIF format is uploaded, which is treated as a JPEG format. as shown in Figure 1 2. Check the corresponding code implementation. 3. Decide to judge the extension of the file after receiving the request. Reference URL:https://github.com/symfony/symfony/blob/3.0/src/Symfony/Component/HttpFoundation/File/UploadedFile.php. Returns the original file extension. How…
-
Post Views: 16 1. In Laravel 8.6.3, Laravel Breeze is installed, and when executing npm run dev, an error is reported: You are using an unsupported version of node. Please update to at least node v12.14. as shown in Figure 1 2. Check the version of Node.js: v8.10.0. The required version is at least: Node v12.14. as shown in Figure…
-
Post Views: 12 1. Report an error in Laravel 5.4: call to undefined function app\\app\\services\\exif_read_data(). as shown in Figure 1 2. EXIF_READ_DATA — Read the EXIF header information from an image file. is an EXIF function that depends on the extension: EXIF. Check out phpinfo . Extension not installed: EXIF. as shown in Figure 2 3. The local environment is…
-
Post Views: 18 1. Run Composer in Laravel 5.4 and report an error: RuntimeException.[运行时异常]require-dev.mikey179/vfsstream is invalid and should not contain uppercase characters. Please use mikey179/vfsstrea instead. as shown in Figure 1 2. Check composer.json. Contains: “mikey179/vfsstream”: “v1.5.0”,. 3. Check the URL:https://packagist.org/packages/mikey179/vfsstream. A virtual file system that simulates a real file system in unit tests. 4. Check composer.json. Modification: “mikey179/vfsstream”: “v1.5.0”,.…
-
Post Views: 19 1. Execute the command line in Windows 10 and report an error: Call to undefined function App\Console\Commands\POSIX_Getpid(). as shown in Figure 1 2. Reference URL:https://www.php.net/manual/zh/intro.posix.php. This extension is not available on Windows platforms. You can also try using getMyPid() instead. as shown in Figure 2 3. POSIX_GETPID — Returns the current process ID. Decide to replace with:…