Category: Laravel
-
Post Views: 13 1. In Lighthouse 4.10.1, add a new Query Type: There is no effect after obtaining the theme material list. 2. Check the document, there is no existence to get the list of theme materials. as shown in Figure 1 3. Refer to schema caching:https://lighthouse-php.com/4/performance/schema-caching.html, it is recommended to enable cache in production mode. Now for the local…
-
Post Views: 17 1. In the Git library, it is found that the database migration file has some changes, such as: the field MINE_TYPE is changed to MIME_TYPE. as shown in Figure 1 2. 2 database migration files, just in the last migration. as shown in Figure 2 To roll back the migration, if you want to roll back the…
-
Post Views: 56 1. Search in GitHub: Laravel Module, select the first result: NWidArt / Laravel-Modules. It supports module management in Laravel. 2. Reference URL: https://nicolaswidart.com/blog/writing-modular-applications-with-laravel-modules . Why use this package, write modular applications using laravel-modules. When it comes to writing more complex and larger applications, it is found that Laravel’s default structure is cumbersome and not ideal. 3. To…
-
Post Views: 20 1. Use Composer locally to create a new Laravel project: laravel-theme-demo. 2. IGaster / Laravel-Theme is a Laravel package that adds basic support for management themes. It allows you to build views and assets in separate folders and support theme extensions. Execute the command: composer require “gaster/laravel-theme” to install igaster/laravel-theme. 3. Install Laravel Mix, execute: yarn install,…
-
Post Views: 16 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: 17 1. When executing composer require, an error is reported:[Composer\Downloader\TransportException]Curl Error 6 while downloadinghttps://api/v4/projects/%2Fnova:Could not resolve host: API . as shown in Figure 1 2. Check the composer.json file, which contains nova-related configuration items. 3. Create a new file: C:\Users\Lenovo\AppData\Roaming\Composer\Auth.json. Specific values need to be set by yourself. as shown in Figure 2 4. When the Composer require…
-
Post Views: 21 1. In Laravel 6, execute the command: php artisan telescope:publish, report an error: Unable to local publishable resources. Publishing complete. as shown in Figure 1 2. Check composer.json, laravel/teleScope exists in require-dev. 3. Check the directory /config, the file telescope.php already exists, the file: /app/providers/teleScopeServiceProvider.php already exists. But the directory /public/vendor/teleScope does not exist. 4. Access:http://object.local/telescope, the…
-
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: 59 1. When executing the command composer update –ignore-platform-reqs, an error is reported: script @php artisan package:discover –ansi handling the Post-autoload-dump event returned with error code 255. as shown in Figure 1 2. Why the option –ignore-platform-reqs is added when executing the composer update command. The reason is that when executing composer update, an error is reported: it…