Home >PHP Framework >Laravel >Do you know what you must do when using Laravel?
Things I must do when using Laravel:
About "me": a program developer, not limited to language and technology, currently mainly engaged in PHP and Front-end development uses Laravel and VueJs, and the App side uses Apicloud hybrid development. Suitability and sufficiency are the most perfect pursuits.
● If you are not using the built-in User model, you need to modify the models used in the configuration files auth.php and jwt.php
● Modify the corresponding controller of the model api.php Add cross-domain middleware to the namespace
● Add RequestValidationsTrait.php request verification trait
● Add PublicMethodsTrait.php public model method trait
● Add PublicScopesTrait.php local query function Domain method trait
● Add UserTrait.php user model trait
● Add PublicActionsTrait.php public controller method trait
● Add jwt-attemptLogin middleware (default all APIs Routing usage)
Recommended: "laravel tutorial"
The above is the detailed content of Do you know what you must do when using Laravel?. For more information, please follow other related articles on the PHP Chinese website!