THẢO LUẬN

Mar 2nd, 2020 10:00 a.m.

@Hungpv-ashen thì bạn check ở Request của profile xem yêu cầu đầu vào như thế nào thì bạn sửa lại ở setParram kia là pass validate.

0
Mar 2nd, 2020 9:53 a.m.

Đoạn này trong route em để là nhận vào id của profile nên sẽ phải là 'id' => $profile->id ạ

0
Avatar
đã bình luận câu trả lời trong câu hỏi
Mar 2nd, 2020 9:51 a.m.

Screenshot_5.png Đây ạ.

0
Avatar
đã bình luận câu trả lời trong câu hỏi
Mar 2nd, 2020 9:47 a.m.

@caoquangtu chụp cho mình file pusher.min.js dòng 8, hoặc bạn click vào lỗi và chụp screenshot được k?

0
Mar 2nd, 2020 9:46 a.m.

@anhnq98 dạ thưa nêu em cũng biết là nếu không gọi hàm setParram() nữa thì sẽ đúng . Vấn đề ở đây là mặc dù em đã gọi hàm setParram() để set giá trị cho biến $parrams tuy nhiên khi gửi request lên thì vẫn nhận về mã lỗi validate 422, ở đây là chưa truyền fisrt_name, last_name, và phone lên ạ

+1

Viết rút gọn thế này thì cần phải chú thích (comment)

Và mình bình luận (comment) thế này: viết quá tắt!

0

'id' => $profile->id $profile lấy user_id chứ nhỉ bạn ơi

0
Avatar
đã bình luận câu trả lời trong câu hỏi
Mar 2nd, 2020 9:39 a.m.

Screenshot_2.pngScreenshot_3.pngScreenshot_4.png
Anh cho em hỏi rõ hơn là thêm vào phần nào không ạ? code của em đang ntn. Em cảm ơn ^^

0
Mar 2nd, 2020 9:39 a.m.

Screenshot_2.pngScreenshot_3.pngScreenshot_4.png
Anh cho em hỏi rõ hơn là thêm vào phần nào không ạ? code của em đang ntn. Em cảm ơn ^^

0
Mar 2nd, 2020 9:16 a.m.

em k dùng zsh vì mỗi lần update version là xóa hết history

+1

Mình bị lỗi này fix mãi ko đc. Giúp mình với!!! Please make sure the PHP Redis extension is installed and enabled.

0
Mar 2nd, 2020 6:44 a.m.

Tự tạo bằng tay nha e

0
Mar 2nd, 2020 5:59 a.m.
<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        //
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        // $schedule->command('inspire')
        //          ->hourly();
    }

    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');

        require base_path('routes/console.php');
    }
}

Cũng có thể ở version 6.2 nó không hỗ trợ nhỉ

0

query như nào v ạ 😦 nói rõ hơn được k ad

0

Dùng fish có ưu điểm gì vượt trội hơn không anh?

0
Mar 2nd, 2020 4:08 a.m.

bạn đưa nội dung file này lên mình xem nào

App\Console\Kernel
0

Ok b Tele: anhntt1176

0

Tool chết rồi bạn ơi

0
Mar 2nd, 2020 3:19 a.m.

Những bài viết của tester cho dev =)) Chỉ trans từ eng --> vi chứ có hiểu cái mẹ gì đâu. Càng ngày càng nhiều những bài kém chất lượng. Đăng cho đủ số lượng hả?

0
Mar 2nd, 2020 2:50 a.m.

Mình sử dụng laravel 6.2
khi chạy câu lệnh php artisan vue-i18n:generate thì ra lỗi như bên dưới.
php artisan vue-i18n:generate PHP Fatal error: Cannot declare class App\Console\Kernel, because the name is already in use in D:\research\src\vietoffshore\app\Console\Kernel.php on line 42

Symfony\Component\Debug\Exception\FatalErrorException : Cannot declare class App\Console\Kernel, because the name is already in use

at D:\research\src\vietoffshore\app\Console\Kernel.php:42 $this->load(DIR.'/Commands');

   require base_path('routes/console.php');
 }

}

Whoops\Exception\ErrorException : Cannot declare class App\Console\Kernel, because the name is already in use

at D:\research\src\vietoffshore\app\Console\Kernel.php:42 $this->load(DIR.'/Commands');

      require base_path('routes/console.php');
    }

}

Exception trace:

1 Whoops\Run::handleError("Cannot declare class App\Console\Kernel, because the name is already in use", "D:\research\src\vietoffshore\app\Console\Kernel.php") D:\research\src\vietoffshore\vendor\filp\whoops\src\Whoops\Run.php:408

2 Whoops\Run::handleShutdown() [internal]:0
có ai bị thế không vậy, chỉ mình các fix với

0
Viblo
Hãy đăng ký một tài khoản Viblo để nhận được nhiều bài viết thú vị hơn.
Đăng kí