Frequently Asked Questions
Execution Logic
The admin framework concept is simple: M (model) only handles database table connections (can perform related data processing based on business logic)
Write middleware or service layer according to your business needs
Main focus on C (controller) -> V (view) -> JS (controller-specific JS)
Every controller has a corresponding JS file (directory: /public/static/admin/js/controller_name.js)
Installation Errors and Suggestions (pay attention to bold colors)
Check that the
phpversion is>=8.2, recommended8.5+. (EasyAdmin8-Laravelrequires8.3or above)Check that the
composerversion is>=2.0, verify that thephpversion bound tocomposermatches the above requirements using:composer show --platform, scroll to the last line to checkMySQLversion>= 5.7, recommended8.0+Other versions may work but have not been tested, use at your own discretionThe
pdoextension must be enabled, otherwise installation will fail Ifcomposer installfails, try usingcomposer install --ignore-platform-reqsIf certain package versions cannot be found during
composer install, check thecomposersource. It is recommended to use the Tencent Cloud Mirror or theofficial mirror. Avoid using theAlibaba Cloud mirrorIf the installation page shows errors, check that the database credentials are correct. For different server systems (
Windows,MacOS,Linux), ensure the relevant folders have properread/write permissions If the installation page keeps redirecting to itself after completion, check whether theinstall.lockfile exists atconfig/install/lock. If not, runchown -R www:www /www/wwwroot/EasyAdmin8(where/www/wwwroot/EasyAdmin8is your project path)If the page returns
404after successful installation, check whetherphp-fpmhas URL rewriting configured, mainly forThinkPHPandLaravelversionsAlthough different
EasyAdmin8versions have the same database structure, there are slight differences in internal data values. Do not share databases across versions; keep them separate during installation and.envconfiguration Do not manually importsqlfiles to install the database - it is not needed. After setting up the project, simply visit the homepage to configure and install the database automatically! If the initial loading speed feels too slow, check theAPP_DEBUGsetting in.env. Toggle this setting based on your understanding of the respective frameworkRecommended essential extensions:
opcache,event, enablejitIf you need the
file uploadfeature, check that thephpversion has thefileinfoextension installedStrongly recommended: Unless absolutely necessary, do NOT do NOT do NOT set any directory or file permissions to
777. Usechown+chmodappropriately to configure project permissionsAfter modifying the admin path, clear the system cache via the
admin page top-right corneror visitxxx.com/adminXyz/ajax/clearCache, replacing with your own domain, whereadminXyzis your new admin pathRefer to the example modules included in the default installation, such as the product management module and system log module
Casual Talk
Don't argue every day about which language or framework is better - languages and frameworks will outlive you. Use that time to write a few elegant bugs instead.
We're already in the AI era, and people are still debating which language to use?
No matter the language or framework, if it helps you make money, it's a good one!
Detailed Usage - More Documentation
How to Enable JIT
- Default
phpconfiguration file isphp.ini
Project File Permission Configuration
It is recommended not to set folder permissions to
777in any development process or any language, unless there is a particularlyunreasonablerequirementProject folder permissions can be configured as follows (replace with your own directory path in production)
EasyAdmin8 Version (ThinkPHP)
Domain binding must point to
publicURL rewriting configuration
EasyAdmin8-Laravel Version (Laravel)
Domain binding must point to
publicGlobal routes are in
routes/web.phpURL rewriting configuration
EasyAdmin8-webman Version (webman)
This version provides different branches for different development preferences: choose the
mainbranch if you preferLaravel, or thethinkphpbranch if you preferThinkPHPIf you encounter
{"code":-1,"msg":"访问地址异常"}, addEASYADMIN.ADMIN_DOMAIN_STATUSandEASYADMIN.ADMIN_DOMAINto.env(refer to.example.env), then runcomposer require webman/domain(This feature allows custom admin access URLs, see Custom Domain Configuration)
