PHP头条
热点:

Laravel中使用php artisan make:model到指定目录(其他同理),laravelartisan


百度了一下没找到 

自己就试了试,多试几次就出来了


php artisan make:model ./Models/Log/DecryptLog
这个就是创建一个Decrypt模型文件到app\Models\Log\DecryptLog.php目录下;

同理

 php artisan make:controller ./Api/DecryptLogController
而这个则是创建一个Decrypt控制器文件到app\Http\Controllers\Api\DecryptLogController.php目录下;

其他相关命令同理    主要是前面的选择生成路径为默认生成路径的相对路径


www.phpzy.comtrue/php/485.htmlTechArticleLaravel中使用php artisan make:model到指定目录(其他同理),laravelartisan 百度了一下没找到  自己就试了试,多试几次就出来了 php artisan make:model ./Models/Log/DecryptLog 这个就是创建一个Decrypt模...

相关文章

相关频道:

PHP之友评论

今天推荐