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

__construct() public méthode

Initialize public controller.
public __construct ( ) : null
Résultat null
    public function __construct()
    {
        $this->middleware('web');
        $this->setupTheme(config('theme.themes.public.theme'), config('theme.themes.public.layout'));
        parent::__construct();
    }

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\PublicWebController::__construct
PublicWebController