コード例 #1
0
 /**
  * 注册当前公众号单例.
  *
  * @return Account
  */
 protected function registerCurrentAccount()
 {
     $this->app->singleton('viease.current_account', function () {
         $repositorie = new AccountRepository(new AccountModel());
         return $repositorie->getById(app('viease.account_service')->chosedId());
     });
 }
コード例 #2
0
ファイル: FanInfo.php プロジェクト: renyang9876/viease
 /**
  * 获取Account.
  *
  * @param Int $id AccountID
  */
 private function getAccount($accountId)
 {
     $accountRepository = new AccountRepository(new Account());
     return $accountRepository->getById($accountId);
 }
コード例 #3
0
 /**
  * 展示修改.
  *
  * @param int $id id
  */
 public function getUpdate($id)
 {
     $account = $this->accountRepository->getById($id);
     return admin_view('account.form', compact('account'));
 }
コード例 #4
0
 public function getUpdate($id)
 {
     $account = $this->accountRepository->getById($id);
     return view('weyi.account.update', compact('account'));
 }