当前位置: 首页>>代码示例>>PHP>>正文


PHP Storage::prepend方法代码示例

本文整理汇总了PHP中Storage::prepend方法的典型用法代码示例。如果您正苦于以下问题:PHP Storage::prepend方法的具体用法?PHP Storage::prepend怎么用?PHP Storage::prepend使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Storage的用法示例。


在下文中一共展示了Storage::prepend方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: generate

 /**
  * @param $request
  * @return mixed
  * @throws CheckoutException
  */
 public static function generate($request)
 {
     $data = $request;
     $data['transaction'] = uniqid();
     if (config('checkout.use_database') === true) {
         /**
          * @todo Add database support
          */
         throw new CheckoutException('Database is not supported yet.');
     } else {
         \Storage::prepend(config('checkout.table_prefix') . 'Transactions', $data['transaction'] . '|.' . json_encode($data));
     }
     return $data;
 }
开发者ID:kiberzauras,项目名称:laravel.checkout,代码行数:19,代码来源:TransactionData.php

示例2: handle

 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     if (!$this->commandData->skipMigration) {
         $migrationGenerator = new MigrationGenerator($this->commandData);
         $migrationGenerator->generate();
     }
     $modelGenerator = new ModelGenerator($this->commandData);
     $modelGenerator->generate();
     \Storage::prepend('laravel.log', 'Model Generated');
     $AdminModelGenerator = new AdminModelGenerator($this->commandData);
     $AdminModelGenerator->generate();
     $requestGenerator = new RequestGenerator($this->commandData);
     $requestGenerator->generate();
     $adminRequestGenerator = new AdminRequestGenerator($this->commandData);
     $adminRequestGenerator->generate();
     $repositoryGenerator = new RepositoryGenerator($this->commandData);
     $repositoryGenerator->generate();
     $adminRepositoryGenerator = new AdminRepositoryGenerator($this->commandData);
     $adminRepositoryGenerator->generate();
     $adminViewsGenerator = new AdminViewGenerator($this->commandData);
     $adminViewsGenerator->generate();
     $liveViewsGenerator = new LiveViewGenerator($this->commandData);
     $liveViewsGenerator->generate();
     $repoAdminControllerGenerator = new AdminControllerGenerator($this->commandData);
     $repoAdminControllerGenerator->generate();
     $repoControllerGenerator = new ViewControllerGenerator($this->commandData);
     $repoControllerGenerator->generate();
     $repoControllerGenerator = new APIControllerGenerator($this->commandData);
     $repoControllerGenerator->generate();
     $routeGenerator = new RoutesGenerator($this->commandData);
     $routeGenerator->generate();
     if ($this->confirm("\nDo you want to migrate database? [y|N]", false)) {
         $this->call('migrate');
     }
 }
开发者ID:phillipmadsen,项目名称:philscrud,代码行数:41,代码来源:ScaffoldAPIGeneratorCommand.php


注:本文中的Storage::prepend方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。