App\Http\Controllers\PublicApiController::__construct PHP Method

__construct() public method

Initialize public controller.
public __construct ( ) : null
return null
    public function __construct()
    {
        $this->middleware('api');
    }

Usage Example

 /**
  * Constructor.
  *
  * @param type \Litecms\Gallery\Interfaces\GalleryRepositoryInterface $gallery
  *
  * @return type
  */
 public function __construct(GalleryRepositoryInterface $gallery)
 {
     $this->repository = $gallery;
     parent::__construct();
 }
All Usage Examples Of App\Http\Controllers\PublicApiController::__construct
PublicApiController