title: Laravel 6 PHP 7
body: <p>I'm making a invoice print in laravel as i did in php using mysql i have been getting a syntax error (syntax error, unexpected ':', expecting ';' or '{')
  I know its the previous version of php which i am using but how to write the proper syntax for My route get method</p>
  
  <pre class="lang-php prettyprint-override"><code>Route::get('/printPreview' , 'PrintController@printPreview');
  
  Route::get('/printPreview' , 'PrintController@printPreview');
  </code></pre>
  
  <p>when the person who i was watching was giving a path from localhost/myproject/public/printPreview the print option was present but when i am doing the method he did the print button was absent</p>