title: Laravel restful api error 500(store and destroy)
body: <p>I am new to restful api,and I met a problem,problem is :when I request destroy with delete method and store with post method,both will return 500 error.But I use get method to request index and show,both are ok.What is the problem? Here is my codes and request:</p>
  
  <p>delete http://***.com/RestfulPrac/public/customers/10000001</p>
  
  <p>get   http://***.com/RestfulPrac/public/customers/10000001</p>
  
  <p>post http://***.com/RestfulPrac/public/customers</p>
  
  <hr>
  
  <pre><code> class CustomersController extends Controller
   {
      public function index(){
  
      $customersInfo = customers::all();
      return $customersInfo;
  
      }
  
      public function show($cust_id){
  
      $customer = customers::where('cust_id',$cust_id)-&gt;first();
      return $customer;
      }
      public function store()
      {
  
      echo "store";
      }
  
     public function destroy()
     {
  
        return "success";
     }
  }
  </code></pre>
  
  <hr>
  
  <pre><code>Route::resource('customers','CustomersController');
  </code></pre>
  
  <hr>
  
  <p>The apache access.log :
  "DELETE /RestfulPrac/public/customers/1000000001 HTTP/1.0" 500 20246 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"</p>
  
  <p>The apache error.log:
  [Thu Jun 02 09:09:24.324782 2016] [negotiation:error] [pid 4328:tid 1676] [client 127.0.0.1:4940] AH00690: no acceptable variant: D:/XAMPP/apache/error/HTTP_NOT_FOUND.html.var</p>
  
  <p>The laravel.log:
  local.ERROR: exception 'Illuminate\Session\TokenMismatchException' in F:\PhpstormProjects\RestfulPrac\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php:67
  Stack trace:</p>
  
  <p>if any one can help me ,I'd appreciate it!Thanks in advanced!</p>