Tag: Laravel
-
Post Views: 17 1. Get started with the GraphQL server with Lighthouse. Reference URL:https://lighthouse-php.cn/tutorial/ 2. Create a GraphQL API for a simple blog from scratch. Create a new Laravel project via Composer: lighthouse-tutorial 3. Create a database: lighthouse_tutorial, and configure the database connection in .env. Run the database migration to create the Users table 4. Put some fake user data…
-
Post Views: 18 1. Report an error in Laravel 6: log.error: this cache store does not support tagging. {“exception”:{}}. as shown in Figure 1 2. Check the log file, /storage/logs/laravel-2022-01-11.log 3. Edit the .env file, and adjust the cache_driver=file to cache_driver=redis. No more errors. as shown in Figure 2
-
Post Views: 16 1. chmod(): operation not permitted, /vendor/laravel/framework/src/illuminate/filesystem/filesystem.php . as shown in Figure 1 2. The reason may be that the git branch is switched, and the code is not merged. But the /vender directory is shared. Re-execute the command: after composer install, no more errors are reported. as shown in Figure 2
-
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: 16 1. Install Laravel by running the create-project command on the command line by composer, and run the command:composer create-project –prefer-dist Laravel/Laravel Laravel, as shown in Figure 1 2. Generate directory: E:\wwwroot\Laravel, as shown in Figure 2 3. Using nginx, adding the following code to the website configuration will forward all requests to the index.php front-end controller, as…