Get All sites

Get All sites

>>> $allSites = \App\Sites::all();
=> Illuminate\Database\Eloquent\Collection {#826
     all: [
       App\Sites {#832
         id: 1,
         site_name: "Foo",
         url: "http://foo",
         created_at: "2018-02-14 09:53:27",
         updated_at: "2018-02-14 09:53:27",
       },
       App\Sites {#833
         id: 2,
         site_name: "Bar",
         url: "http://bar",
         created_at: "2018-02-14 09:53:39",
         updated_at: "2018-02-14 09:53:39",
       },
     ],
   }
Comments are closed.