title: postman 404 Not Found
body: <p>I'm a beginner in laravel API I want to display list of articles (method index),I already created model Article, but I can not.</p>
  
  <p>Hi, I'm a beginner in laravel API I want to display list of articles (method index),I already created model Article, but I can not.</p>
  
  <p><strong>ArticleController</strong></p>
  
  <pre><code>&lt;?php  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Http\Requests;
  use App\Article;
  use App\Http\Resources\Article as ArticleResource;
  
  class ArticleController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          $articles= Article::paginate(15);
          return ArticleResource::collection($articles);
      }
  </code></pre>
  
  <p><strong>create_table_articles</strong></p>
  
  <pre><code> public function up()
      {
          Schema::create('articles', function (Blueprint $table) {
              $table-&gt;increments('id');
              $table-&gt;string('title');
              $table-&gt;string('body');
              $table-&gt;timestamps();
          });
      }
  </code></pre>
  
  <p><strong>AppServiceProvider.php</strong></p>
  
  <pre><code>&lt;?php
  namespace App\Providers;
  use Illuminate\Support\ServiceProvider;
  use Illuminate\Support\Facades\Schema;
  class AppServiceProvider extends ServiceProvider
  {
      /**
       * Bootstrap any application services.
       *
       * @return void
       */
      public function boot()
      {
          Schema::defaultStringLength(191);
      }
  </code></pre>
  
  <p><strong>ArticlesTableSeeder</strong></p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Seeder;
  
  class ArticalesTableSeeder extends Seeder
  {
      /**
       * Run the database seeds.
       *
       * @return void
       */
      public function run()
      {
          factory(App\Article::class,30)-&gt;create();
      }
  }
  </code></pre>
  
  <p><strong>ArticleFactory.php</strong></p>
  
  <pre><code>&lt;?php
  
  /* @var $factory \Illuminate\Database\Eloquent\Factory */
  
  use Faker\Generator as Faker;
  
  $factory-&gt;define(App\Article::class, function (Faker $faker) {
      return [
          'title' =&gt; $faker-&gt;text(50),
          'body'  =&gt; $faker-&gt;text(200)
      ];
  });
  </code></pre>
  
  <p><strong>App\Resources\Article.php</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Resources;
  
  use Illuminate\Http\Resources\Json\JsonResource;
  
  class Article extends JsonResource
  {
      /**
       * Transform the resource into an array.
       *
       * @param  \Illuminate\Http\Request  $request
       * @return array
       */
      public function toArray($request)
      {
          return parent::toArray($request);
      }
  }
  </code></pre>
  
  <p><strong>DatabaseSeeder.php</strong></p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Seeder;
  
  class DatabaseSeeder extends Seeder
  {
      /**
       * Run the database seeds.
       *
       * @return void
       */
      public function run()
      {
           $this-&gt;call(ArticalesTableSeeder::class);
      }
  }
  </code></pre>
  
  <p><strong>routes/api.php</strong></p>
  
  <pre><code>//list 
  Route::get('articles','ArticleController@index');
  //list single
  Route::get('article/{id}','ArticleController@show');
  //create article
  Route::post('article','ArticleController@store');
  //update articles
  Route::put('article','ArticleController@store');
  //delete article
  Route::delete('articles','ArticleController@destroy');
  </code></pre>