@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 ạ
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ả?
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
THẢO LUẬN
@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.
Đ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 ạ
@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?
@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 ạ
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!
'id' => $profile->id $profile lấy user_id chứ nhỉ bạn ơi
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 ^^
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 ^^
em k dùng zsh vì mỗi lần update version là xóa hết history
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.
Tự tạo bằng tay nha e
Cũng có thể ở version 6.2 nó không hỗ trợ nhỉ
query như nào v ạ
nói rõ hơn được k ad
Dùng fish có ưu điểm gì vượt trội hơn không anh?
bạn đưa nội dung file này lên mình xem nào
Ok b Tele: anhntt1176
Tool chết rồi bạn ơi
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ả?
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');
}
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');
}
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