title: How to create a RESTful Resource Controller in Laravel 5.2, using Artisan command (PHP)
body: <p>I'm working with Laravel 5 and I would like to know how to generate a RESTful Resource Controller with all predefined methods using the Artisan command (PHP).</p>
  
  <p>When I run <code>php artisan make:controller LessonsController</code>, it creates a controller, with no methods as shown below:</p>
  
  <pre><code>&lt;?php
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Http\Requests;
  
  class LessonsController extends Controller
  {
  
  
  }
  </code></pre>
  
  <p>What I want to create is a complete Laravel RESTful Resource Controller with all predefined methods as in: <code>index(), create(), store(), show(), edit(), update()</code> and <code>destroy()</code>.</p>
  
  <p>How can I achieve this?</p>