小编ace*_*777的帖子

SASS源地图指向错误的SASS文件

我有4个SASS文件main.sass,_fonts.sass,_variables.sass,_home.sass.

main.sass

@import 'fonts'
@import 'variables'
@import 'home'
Run Code Online (Sandbox Code Playgroud)

_fonts.sass

@font-face
    font-family: "FontAwesome"
    font-weight: normal
    font-style: normal
    src: url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.eot?v=4.3.0")
    src: url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.eot?#iefix&v=4.3.0") format("embedded-opentype"), url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.woff2?v=4.3.0") format("woff2"), url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.woff?v=4.3.0") format("woff"), url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.ttf?v=4.3.0") format("truetype"), url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular") format("svg")
Run Code Online (Sandbox Code Playgroud)

_variables.sass

$yellow: #fce001
Run Code Online (Sandbox Code Playgroud)

_home.sass

.container
    color: $yellow
    text-align: right

.another-container
    color: $yellow
    text-align: center

    &:after
        content: '\f0b0'
        font-family: FontAwesome
        font-style: normal
        font-weight: normal
        text-decoration: inherit
        position: absolute
        right: 20px
        display: inline-block
        font-size: 1.1em
Run Code Online (Sandbox Code Playgroud)

这是我的示例HTML

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" …
Run Code Online (Sandbox Code Playgroud)

css sass

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

在Laravel 5.5中测试授权策略时遇到问题

我在测试授权策略时遇到了问题,它显示了一个冒险的测试,我不知道如何解决这个问题.这是一个新安装的laravel 5.5

PHPUnit 6.5.13 by Sebastian Bergmann and contributors.

R.                                                                  2 / 2 (100%)

Time: 99 ms, Memory: 16.00MB

There was 1 risky test:

1) Tests\Feature\ExampleTest::testBasicTest
Test code or tested code did not (only) close its own output buffers

OK, but incomplete, skipped, or risky tests!
Tests: 2, Assertions: 2, Risky: 1.
Run Code Online (Sandbox Code Playgroud)

这是我的测试代码:

public function testBasicTest()
{
    $this->get('/home')
        ->assertStatus(403);
}
Run Code Online (Sandbox Code Playgroud)

当我使用时dd($this->get('/home')->getContent());,我收到类似这样的错误..

file_get_contents([internal]): failed to open stream: No such file or directory
in Frame.php line 122
Run Code Online (Sandbox Code Playgroud)

这是我的家庭控制器

<?php

namespace …
Run Code Online (Sandbox Code Playgroud)

php phpunit laravel

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

artisan句柄函数控制台命令的返回值

我使用以下命令创建了一个 artisan 命令:

php artisan make:command --command=custom:command SomeCustomCommand
Run Code Online (Sandbox Code Playgroud)

运行命令后,它创建了以下文件:

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

class SomeCustomCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'custom:command';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * …
Run Code Online (Sandbox Code Playgroud)

laravel laravel-8

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

Laravel Beyondcode websockets - 如果 verify_peer 为 true 则不起作用

我正在使用该包beyondcode/laravel-websockets

\n

我的问题是,当我设置'verify_peer' => truewebsocket 时,它不起作用,但当该值是时,false它就起作用了。这里有人设法让它发挥作用吗?

\n

对于生产网站,我想设置verify_peertrue防止中间人攻击。

\n

我有一个网站,可以说aceraven777.com,它已经SSL安装了(在cPanel它已autoSSL启用的情况下)。

\n

cPanel在 websockets 配置中,我为证书和私钥输入了相同的路径(生成的路径)。

\n

chrome 抛出错误:

\n
WebSocket connection to 'wss://aceraven777.com:6001/app/asdfswerqwsafasfd?protocol=7&client=js&version=4.3.1&flash=false' failed: \ncreateWebSocket @ pusher.min.js:8\n
Run Code Online (Sandbox Code Playgroud)\n

这是 Firefox 中的错误:

\n
Firefox can\xe2\x80\x99t establish a connection to the server at wss://aceraven777.com:6001/app/asdfswerqwsafasfd?protocol=7&client=js&version=4.3.1&flash=false. pusher.min.js:8:6335\n
Run Code Online (Sandbox Code Playgroud)\n

以下是我使用的设置:

\n

配置/websockets.php

\n
'ssl' => [\n    /*\n        * Path to local certificate file on filesystem. It must …
Run Code Online (Sandbox Code Playgroud)

php websocket laravel

6
推荐指数
1
解决办法
2207
查看次数

如何在Laravel中运行异步脚本?

我有一个控制器,让我们说'Foo'控制器的功能'索引'需要很长时间才能执行.

我有另一个控制器,'Bar'控制器,我想在其中异步处理/调用'Foo'控制器中的'index'函数.

class BarController extends \BaseController {
    public function index()
    {
        // call the Foo controller here
    }
}
Run Code Online (Sandbox Code Playgroud)

有没有办法异步调用'Foo'控制器中的'index'函数?

php laravel

2
推荐指数
1
解决办法
9932
查看次数

如何更改 Sublime Text 3 中“添加光标”的鼠标绑定?

目前,要在 Sublime Text 3 中选择多个光标,您必须按住Ctrl键并左键单击。我想改变那个的鼠标绑定。相反Ctrl,我想使用Alt.

我知道如何在 Sublime Text 3 中更改鼠标绑定。它是创建文件Username\AppData\Roaming\Sublime Text 3\Packages\User\Default (Windows).sublime-mousemap

[
    {
        "button": "button1",
        "count": 1,
        "modifiers": ["alt"],
        "press_command": "drag_select",
        "command": "command_here"
    }
]
Run Code Online (Sandbox Code Playgroud)

我不知道我应该在那里输入什么命令。我在https://docs.sublimetext.io/reference/commands.html 中找到了命令列表,但找不到。

sublimetext3

2
推荐指数
1
解决办法
1110
查看次数

Hash :: make函数总是在Laravel中返回60个字符吗?

我安装了一个新版本的laravel 4.2,我正在创建一个用户表,我想询问Hash :: make函数是否总是返回60个字符,以便我可以使密码字段数据类型为CHAR(60).

附加:我正在使用laravel的默认配置.

php laravel

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

标签 统计

laravel ×5

php ×4

css ×1

laravel-8 ×1

phpunit ×1

sass ×1

sublimetext3 ×1

websocket ×1