小编Orh*_*han的帖子

Laravel安装sail问题((23)写body失败)

我尝试使用原始 laravel 文档安装 laravel 但什么也没发生,我遇到了很多错误,例如我在CMD上尝试了这个命令

curl -s https://laravel.build/example-app | bash
Run Code Online (Sandbox Code Playgroud)

但我收到了这个错误

(23) 写入主体失败

当我尝试使用PowerShell 时,出现此错误;

cmdlet Invoke-WebRequest at command pipeline position 1
Supply values for the following parameters:
Uri:
curl : Cannot find drive. A drive with the name 'https' does not exist.
At line:1 char:1
 curl -s https://laravel.build/example-app | bash
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 CategoryInfo          : ObjectNotFound: (https:String) [Invoke-WebRequest], DriveNotFoundException
 FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Run Code Online (Sandbox Code Playgroud)

眼镜;

Docker 引擎 v20.10.0

版本 Windows 10 家庭版 20H2 安装在?14/?08/?2020 操作系统版本 19042.685 体验 …

laravel docker

8
推荐指数
1
解决办法
3716
查看次数

如何在 Laravel Blade 上获取 Create_at 月份名称?

我有created_at田地。在我的数据库中,例如,我需要获取月份名称;

...
{{\Carbon\Carbon::now()->monthName}}
...
Run Code Online (Sandbox Code Playgroud)

那么我该怎么做呢$value->created_at

我尝试了一些解决方案,但没有得到月份名称。

laravel php-carbon

7
推荐指数
1
解决办法
9955
查看次数

如何在 vue.js 欢迎组件中使用 bootstrap 而不是 tailwind CSS

我将 jetstream+inertia.js 安装到我的 Laravel 项目中,一切正常,但我只需要在welcome. vue组件中使用 bootstrap 5,那么我该如何处理呢?

我的app.js档案;

require('./bootstrap');

// Import modules...
import {createApp, h} from 'vue';
import {App as InertiaApp, plugin as InertiaPlugin} from '@inertiajs/inertia-vue3';
import 'animate.css';
import Toaster from '@meforma/vue-toaster';
import 'alpinejs';



const el = document.getElementById('app');

createApp({
    render: () =>
        h(InertiaApp, {
            initialPage: JSON.parse(el.dataset.page),
            resolveComponent: (name) => require(`./Pages/${name}`).default,
        }),
})
    .mixin({methods: {route}})
    .use(InertiaPlugin)
    .use(Toaster)
    .mount(el);
Run Code Online (Sandbox Code Playgroud)

我的app.css文件:

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
Run Code Online (Sandbox Code Playgroud)

图片

javascript inertiajs laravel laravel-mix laravel-jetstream

5
推荐指数
1
解决办法
1381
查看次数