title: Laravel 5.3 - Data inserting issue in MySQL 5.7.1
body: <p>While inserting data from Laravel 5.3 it doesn't show up in the MySQL 5.7.1 database. I was following a tutorial, the teacher was using Laravel 5.2  Is that an issue?
  Any help would be appreciated.</p>
  
  <pre><code>public function store(Request $request)
      {
         // validate the data
         $this-&gt;validate($request, array(
             'title' =&gt; 'required|max:255',
             'body'  =&gt; 'required'
         ));
  
         // store in the database
         $post = new Post;
  
         $post-&gt;title = $request-&gt;title;
         $post-&gt;body = $request-&gt;body;
  
         $post-&gt;save();
         // Session::flash('success', 'The blog post was successfully save!');
         return redirect()-&gt;route('posts.show', $post-&gt;id);
     }
  </code></pre>
  
  <p>Adding the whole code here...</p>
  
  <pre><code>&lt;?php
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  use App\Post;
  use Session;
  
  
  class PostController extends Controller
  {
  /**
   * Display a listing of the resource.
   *
   * @return \Illuminate\Http\Response
   */
  public function index()
  {
  
      $posts = Post::all();
      return view('posts.index')-&gt;withPosts($posts);
  }
  
  /**
   * Show the form for creating a new resource.
   *
   * @return \Illuminate\Http\Response
   */
  public function create()
  {
      //
      return view('posts.create');
   }
  
  /**
   * Store a newly created resource in storage.
   *
   * @param  \Illuminate\Http\Request  $request
   * @return \Illuminate\Http\Response
   */
  public function store(Request $request)
  {
      // validate the data
      $this-&gt;validate($request, array(
              'title' =&gt; 'required|max:255',
              'body'  =&gt; 'required'
          ));
  
      // store in the database
      $post = new Post;
  
      $post-&gt;title = $request-&gt;title;
      $post-&gt;body = $request-&gt;body;
  
      $post-&gt;save();
  
      return redirect()-&gt;route('posts.show', $post-&gt;id);
  
  
  }
  
  /**
   * Display the specified resource.
   *
   * @param  int  $id
   * @return \Illuminate\Http\Response
   */
  public function show($id)
  {
      $post = Post::find($id);
      return view('posts.show')-&gt;withPost($post);
  }
  
  /**
   * 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>