Tag: autoload
-
Post Views: 62 1. Generate a new module: blog. 2. By default, the module class will not load automatically. You can load your modules automatically using PSR-4. Edit composer.json. as shown in Figure 1 3. Tip: Don’t forget to run composer dump-autoload. as shown in Figure 2 4. Generate a given console command for the specified module. 5. Edit CreatePostCommand.php,…
-
Post Views: 18 1. When pushing to github in TortoiseGit, an error is reported: Fatal: Unable to accesshttps://github.com/shuijingwan/refactoring.git/: Failed to connect to github.com port 443 after 21049 MS: timed out. as shown in Figure 1 2. In the push interface, uncheck the automatic Putty key (A). as shown in Figure 2 3. When pushing, no more errors are reported. as…
-
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: 22 1. In the local development environment, Laravel Sail has been deployed based on the deployment. Open URL:http://weibo.test/, the response 200. as shown in Figure 1 2. Register a Heroku account and use @163.com to find that it is not allowed, and finally use @gmail.com, the registration is successful. as shown in Figure 2 3. Click the link…
-
Post Views: 14 1. Optimize the composer to automatically load, execute the command: composer dumputoload -o, prompt: deprecation notice: does not comply with PSR-0 autoloading stan Ard. It will not autoload anymore in composer v2.0. As shown in Figure 1 2. After translation, the notification of deprecation: the class does not meet the automatic loading standard of PSR-0. It will…