App\Http\Controllers\PublicApiController::__construct PHP Méthode

__construct() public méthode

Initialize public controller.
public __construct ( ) : null
Résultat 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