find() 공개 정적인 메소드

Returns pre-configured find endpoint
public static find ( ) : static
리턴 static
 public function initialize()
 {
     $this->name('Photo')->model(Photo::class)->expectsJsonData()->transformer(PhotoTransformer::class)->itemKey('photo')->collectionKey('photos')->deny(AclRoles::UNAUTHORIZED)->handler(CrudResourceController::class)->endpoint(ApiEndpoint::all())->endpoint(ApiEndpoint::create())->endpoint(ApiEndpoint::find())->endpoint(ApiEndpoint::update())->endpoint(ApiEndpoint::remove());
 }
 /**
  * Returns resource with default values & all, find, create, update and delete endpoints pre-configured
  *
  * @param string $prefix Prefix for the resource (e.g. /user)
  * @param string $name Name for the resource (e.g. users) (optional)
  *
  * @return static
  */
 public static function crud($prefix, $name = null)
 {
     return self::factory($prefix, $name)->endpoint(ApiEndpoint::all())->endpoint(ApiEndpoint::find())->endpoint(ApiEndpoint::create())->endpoint(ApiEndpoint::update())->endpoint(ApiEndpoint::remove());
 }