title: Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting end of file
body: <p>I have problem and please help me</p>
  
  <p>I'm getting error in this laravel php file on line 15.
  what could be wrong?</p>
  
  <pre><code>public function tambahdata() {  
  
      $data = array(
          'nama' =&gt; Input::get('nama'),
          'alamat' =&gt; Input::get('alamat'),
          'kelas' =&gt; Input::get('kelas'),
      );
  
      DB::table('siswa')-&gt;insert($data);
      return Redirect::to('/read')-&gt;with('message','Tambah data berhasil');
  }
  </code></pre>