Home > PHP Framework > Laravel > body text

Do you know what you must do when using Laravel?

藏色散人
Release: 2020-04-17 13:35:37
forward
1914 people have browsed it

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template