/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     # Clear the table.
     SegmentCriteria::truncate();
     # Seed the table.
     $segmentCriterias = [['Sc_Name' => 'Adult', 'Sc_CreatedOn' => Carbon\Carbon::now(), 'Sc_CreatedBy' => 1, 'Sc_GUID' => (string) Uuid::generate(4)], ['Sc_Name' => 'Kids', 'Sc_CreatedOn' => Carbon\Carbon::now(), 'Sc_CreatedBy' => 1, 'Sc_GUID' => (string) Uuid::generate(4)]];
     SegmentCriteria::insert($segmentCriterias);
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $this->data['model'] = SegmentCriteria::paginate(10);
     return $this->renderPage();
 }