Example #1
0
 /**
  * メールで連絡ページ
  * @Post("/mail_send/{id}", as="articles.postMailSend", where={"id": "[0-9]+"})
  * @param DirectMailPost $directMailPost
  * @param string $id
  * @return \Illuminate\Http\Response
  */
 public function postMailSend(DirectMailPost $directMailPost, $id)
 {
     $article = $this->article->find($id);
     if (empty($article)) {
         abort(404);
     }
     $data = $directMailPost->all();
     $this->articleService->directMailSend($article, $data);
     return view('article.mail_send', ['article' => $article, 'flg' => true]);
 }
Example #2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('articles')->delete();
     $id = 1;
     for ($i = 1; $i <= 1; $i++) {
         Article::create(array('id' => $id, 'res_id' => 0, 'name' => '美羽miu' . $id, 'age' => rand(1, 7), 'sex' => rand(1, 2), 'title' => '調教していただけるご主人様を探しています。:' . $i, 'body' => '首輪や口枷をされ拘束されて身動きがとれない状態で、いやらしい姿を晒しながら、身体中隅々までねっとり執拗に責められ、辱められたいです。女の子みたいに扱われて身体も心も征服されたいです。少し胸がある真性包茎です。挿入には興味ないので、理解ある方お願いします。変態さんやおじさんも大歓迎です。', 'password' => 'password', 'ip_address' => '192.169.123.123', 'created_at' => Carbon::today(), 'updated_at' => Carbon::today(), 'deleted_at' => null));
         $id++;
         Article::create(array('id' => $id, 'res_id' => $i, 'name' => 'マッキー' . $id, 'age' => rand(1, 7), 'sex' => rand(1, 2), 'title' => 'Re 調教していただけるご主人様を探しています。:' . $i, 'body' => 'Re首輪や口枷をされ拘束されて身動きがとれない状態で、いやらしい姿を晒しながら、身体中隅々までねっとり執拗に責められ、辱められたいです。女の子みたいに扱われて身体も心も征服されたいです。少し胸がある真性包茎です。挿入には興味ないので、理解ある方お願いします。変態さんやおじさんも大歓迎です。', 'password' => 'password', 'ip_address' => '192.169.123.123', 'created_at' => Carbon::today(), 'updated_at' => Carbon::today(), 'deleted_at' => null));
     }
 }
Example #3
0
 /**
  * 記事削除
  * @param $data
  * @throws \Exception
  */
 public function delete($data)
 {
     $article = $this->article->find($data['id']);
     if ($article) {
         if ($article->password === $data['password']) {
             $article->delete();
             Log::debug(sprintf('article delete. id: %s, password: %s', $data['id'], $data['password']));
         } else {
             Log::info(sprintf('password missing. id: %s, password: %s', $data['id'], $data['password']));
         }
     }
 }