private function read()
	{
		$files = $this->getFilesystem()->allFiles(app_path() . '/database/seeds');

		$filtered = [];

		foreach ($files as $file)
		{
			if (strpos(file_get_contents($file->getPathName()), 'extends Seeder') != false)
			{
				if ($file->getFileName() != 'DatabaseSeeder.php')
				{
					$filtered[] = $file->getFileName();
				}
			}
		}

		$this->setFiles($filtered);
	}
private function read()
	{
		$files = $this->getFilesystem()->allFiles(app_path() . '/database/seeds');

		$filtered = [];

		foreach ($files as $file)
		{
			if (strpos(file_get_contents($file->getPathName()), 'extends Seeder') != false)
			{
				if ($file->getFileName() != 'DatabaseSeeder.php')
				{
					$filtered[] = $file->getFileName();
				}
			}
		}

		$this->setFiles($filtered);
	}
private function read ( ) { $ files = $ this -> getFilesystem ( ) -> allFiles ( app_path ( ) . '/database/seeds' ) ; $ filtered = [ ] ; foreach ( $ files as $ file ) { if ( strpos ( file_get_contents ( $ file -> getPathName ( ) ) , 'extends Seeder' ) != false ) { if ( $ file -> getFileName ( ) != 'DatabaseSeeder.php' ) { $ filtered [ ] = $ file -> getFileName ( ) ; } } } $ this -> setFiles ( $ filtered ) ; }
Get an array of all the files that is actually compatible with the files we're looking for.
Get an array of all the files that is actually compatible with the files we re looking for .