title: Error "Trying to access array offset on value of type null" laravel 5.8.26 Php 7.4.2
body: <p>I use below function for insert/create new user from admin panel:</p>
  
  <pre><code>public function store(Request $request)
  {
      $this-&gt;validate($request, [
          'name' =&gt; 'required',
          'email' =&gt; 'required|email|unique:users,email',
          'password' =&gt; 'required|same:confirm-password'
      ]);
  
  
      $input = $request-&gt;all();
      $input['password'] = Hash::make($input['password']);
  
  
      User::create($input);
  
      return redirect()-&gt;route('admin.pages.users.index')
          -&gt;with('success','User created successfully');
  }
  </code></pre>
  
  <p>when I submit I get error as below :-</p>
  
  <blockquote>
    <p>Trying to access array offset on value of type null</p>
  </blockquote>
  
  <p>EDIT: 
  I found my problem. my problem is email validation rule. when i remove email validation insert data is true. </p>
  
  <p><a href="https://i.stack.imgur.com/lbpjq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lbpjq.png" alt="enter image description here"></a></p>
  
  <p>How do can i fix this error !</p>