mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 18:16:55 +01:00 
			
		
		
		
	Too much grep
This commit is contained in:
		
							parent
							
								
									532ee98663
								
							
						
					
					
						commit
						59f8ae4b50
					
				| @ -228,7 +228,7 @@ abstract class EloquentRepository extends Repository implements RepositoryInterf | |||||||
|     { |     { | ||||||
|         $instance = $this->getBuilder(); |         $instance = $this->getBuilder(); | ||||||
|         if (is_subclass_of(get_called_class(), SearchableInterface::class) && $this->hasSearchTerm()) { |         if (is_subclass_of(get_called_class(), SearchableInterface::class) && $this->hasSearchTerm()) { | ||||||
|             $instance = $instance->setSearchTerm($this->getSearchTerm()); |             $instance = $instance->search($this->getSearchTerm()); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         return $instance->get($this->getColumns()); |         return $instance->get($this->getColumns()); | ||||||
|  | |||||||
| @ -47,7 +47,7 @@ class PackRepository extends EloquentRepository implements PackRepositoryInterfa | |||||||
|     public function paginateWithEggAndServerCount(): LengthAwarePaginator |     public function paginateWithEggAndServerCount(): LengthAwarePaginator | ||||||
|     { |     { | ||||||
|         return $this->getBuilder()->with('egg')->withCount('servers') |         return $this->getBuilder()->with('egg')->withCount('servers') | ||||||
|             ->setSearchTerm($this->getSearchTerm()) |             ->search($this->getSearchTerm()) | ||||||
|             ->paginate(50, $this->getColumns()); |             ->paginate(50, $this->getColumns()); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
| @ -34,7 +34,7 @@ class ServerRepository extends EloquentRepository implements ServerRepositoryInt | |||||||
|      */ |      */ | ||||||
|     public function getAllServers(int $paginate): LengthAwarePaginator |     public function getAllServers(int $paginate): LengthAwarePaginator | ||||||
|     { |     { | ||||||
|         $instance = $this->getBuilder()->with('node', 'user', 'allocation')->setSearchTerm($this->getSearchTerm()); |         $instance = $this->getBuilder()->with('node', 'user', 'allocation')->search($this->getSearchTerm()); | ||||||
| 
 | 
 | ||||||
|         return $instance->paginate($paginate, $this->getColumns()); |         return $instance->paginate($paginate, $this->getColumns()); | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -46,7 +46,7 @@ class UserRepository extends EloquentRepository implements UserRepositoryInterfa | |||||||
|             'id', 'email', 'username', 'name_first', 'name_last', |             'id', 'email', 'username', 'name_first', 'name_last', | ||||||
|         ]); |         ]); | ||||||
| 
 | 
 | ||||||
|         $instance = $this->getBuilder()->setSearchTerm($query)->get($this->getColumns()); |         $instance = $this->getBuilder()->search($query)->get($this->getColumns()); | ||||||
| 
 | 
 | ||||||
|         return $instance->transform(function ($item) { |         return $instance->transform(function ($item) { | ||||||
|             $item->md5 = md5(strtolower($item->email)); |             $item->md5 = md5(strtolower($item->email)); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dane Everitt
						Dane Everitt