title: what is the use of api,php in laravel 5,4
body: <p>
  
  <pre><code>use Illuminate\Http\Request;
  
  /*
  |-----------------------------------------------------------------------
  | API Routes
  |-----------------------------------------------------------------------        |
  | Here is where you can register API routes for your application. These
  | routes are loaded by the RouteServiceProvider within a group which
  | is assigned the "api" middleware group. Enjoy building your API!
  |
  */
  
  Route::middleware('auth:api')-&gt;get('/user', function (Request $request) {
      return $request-&gt;user();
  </code></pre>
  
  <p>--what is the purpose of this api.php in laravel 5.4. and how can i used in our projects....?--- </p>