Laravel artisan make命令返回随机文件



有点奇怪

今天我去运行以下命令:php artisan make:model -m Document,没什么疯狂的,一直这样做。然而,由于某些原因,由此生成的Model是一个完全随机的JSON字符串。以下是文件输出:

{
"name": "@mdi/font",
"version": "5.9.55",
"description": "Dist for Material Design Webfont. This includes the Stock and Community icons in a single webfont collection.",
"styl

我检查了也生成的迁移文件,它提供了其他东西(也是随机的)。所以我试着运行composer update,然后重新运行命令,得到这个:

<template>
<div>
<page-title :heading="heading" :subheading="subheading" :icon="icon"></page-title>
<tabs :tabs="tabs" :currentTab="currentTab" :wrapper-class="'body-tabs shadow-tabs'"

感谢任何提示,我已经使用Laravel 1.5-2年了,从来没有见过这个…

通过将-m参数移动到命令末尾来解决此问题。有点奇怪,考虑到去年我一直在模型名称之前做这件事,但嘿,我要赢!

最新更新