Error “Trying to access array offset on value of type null” laravel 5.8.26 Php 7.4.2

前端 未结 4 407
轮回少年
轮回少年 2021-01-13 01:23

I use below function for insert/create new user from admin panel:

public function store(Request $request)
{
    $this->validate($request, [
        \'name         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 01:53

    I have faced the same problem when I use laravel version 5.8.* and php version 7.4. I have solved this issue update composer. I just use this command in terminal

    php composer.phar update
    

    or

    composer update
    

    and fixed my issue easily.

提交回复
热议问题