title: General error: 1364 Field 'StudentID' doesn't have a default value
body: <p>im trying to make a simple formule that insert data to 2 different tables that have relationship hasMany but i keep getting this error:
  1364 Field 'PlayerID' doesn't have a default value (SQL: insert into <code>phones</code> (<code>name</code>, <code>updated_at</code>, <code>created_at</code>) values (qws, 2019-10-19 22:45:40, 2019-10-19 22:45:40))</p>
  
  <p>here is player model </p>
  
  <pre><code>    &lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Player extends Model
  {
      public function phones()
      {
          return $this-&gt;hasMany('App\Phone', 'foreign_key', 'local_key');
  
  
      }
  
  }
  </code></pre>
  
  <p>phone model:</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class phone extends Model
  {
      public function Player()
      {
          return $this-&gt;belongsTo('App\Player');
  
  
      }
  }
  </code></pre>
  
  <p>this controller</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Player;
  use App\phone;
  
  class PlayersControlller extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          //
      }
  
      /**
       * Show the form for creating a new resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function create()
      {
          return view('players.create');    }
  
      /**
       * Store a newly created resource in storage.
       *
       * @param  \Illuminate\Http\Request  $request
       * @return \Illuminate\Http\Response
       */
      public function store(Request $request)
      {
          $people = new Player();
          $phone = new phone();
  
          $people-&gt;name = $request-&gt;input('name');
          $people-&gt;lastname = $request-&gt;input('lastname');
          $phone-&gt;name =$request-&gt;input('pname');
  
          $phone-&gt;save();
          $people-&gt;save();    }
  
      /**
       * Display the specified resource.
       *
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function show($id)
      {
          //
      }
  
      /**
       * Show the form for editing the specified resource.
       *
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function edit($id)
      {
          //
      }
  
      /**
       * Update the specified resource in storage.
       *
       * @param  \Illuminate\Http\Request  $request
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function update(Request $request, $id)
      {
          //
      }
  
      /**
       * Remove the specified resource from storage.
       *
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function destroy($id)
      {
          //
      }
  }
  </code></pre>
  
  <p>and this is the form</p>
  
  <pre><code> &lt;form action="{{url('player')}}" method="Post" &gt;
  
              {{ csrf_field() }}
      &lt;label&gt; name&lt;/label&gt;
      &lt;input type="text" name="name"&gt;
      &lt;label&gt;  last name&lt;/label&gt;
      &lt;input type="text" name="lastname"&gt;
      &lt;label&gt; phone name&lt;/label&gt;
      &lt;input type="text" name="pname"&gt;
      &lt;input type="submit" name="valider"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>`</p>