title: Attempt to assign property of non-object in Controller store method in laravel
body: <p>Im new in laravel, please help me with this thing</p>
  
  <p>I have store method in controller and try to set property in that method</p>
  
  <pre><code>public function store(Request $request) {
  
      $configuration = $this-&gt;validate(request(), [
        'device_name' =&gt; 'required',
        'sn' =&gt; 'required'
      ]);
  
      $configuration-&gt;timezone = "+4"; 
      configuration::create($configuration);
  
      return back()-&gt;with('success', 'configuration has been added');
  }
  </code></pre>
  
  <p>But when I try to submit the request I get this error</p>
  
  <blockquote>
    <p>Attempt to assign property of non-object</p>
  </blockquote>
  
  <p><strong>What did i do wrong in above method?</strong></p>