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


PHP Flyer::create方法代码示例

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


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

示例1: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(FlyerRequest $request)
 {
     $flyer = Flyer::create($request->all());
     Auth::user()->publish(new Flyer($request->all()));
     flash('info', 'Flyer successfully saved');
     return redirect(flyer_path($flyer));
 }
开发者ID:DevMaurice,项目名称:proflyer,代码行数:13,代码来源:FlyerController.php

示例2: store

 public function store(FlyerRequest $request)
 {
     // Create the flyer
     Flyer::create($request->all());
     flash()->success('Success', 'The Flyer was created!');
     return redirect()->back();
 }
开发者ID:serrati,项目名称:project-flyer,代码行数:7,代码来源:FlyersController.php

示例3: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $reqest
  * @return \Illuminate\Http\Response
  */
 public function store(Requests\FlyerRequest $request)
 {
     //create the flyer
     \App\Flyer::create($request->all());
     flash('Create with success', 'Success!');
     return redirect()->back();
 }
开发者ID:k3bra,项目名称:Laravel-app,代码行数:13,代码来源:FlyersController.php

示例4: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(FlyerRequest $request)
 {
     Flyer::create($request->all());
     // flash('Success','Your flyer has been created');
     flash()->success('Success', 'Your flyer has been created');
     return redirect()->back();
 }
开发者ID:sezertunca,项目名称:laravel-project-flyer,代码行数:13,代码来源:FlyersController.php

示例5: store

 /**
  * Store a newly created resource in storage.
  *
  * @param FlyerRequest|Request $request
  * @return Response
  */
 public function store(FlyerRequest $request)
 {
     $input = array_add($request->all(), 'user_id', Auth::id());
     $flyer = Flyer::create($input);
     flash()->success('Success', 'your flyer has been created');
     return Redirect::to(url('/' . $flyer->zip . '/' . $flyer->street));
 }
开发者ID:kriminal666,项目名称:project-flayers,代码行数:13,代码来源:FlayersController.php

示例6: store

 public function store(Requests\FlyerRequest $request)
 {
     //var_dump($request);
     Flyer::create($request->all());
     //flash('Flyer successfully created!');
     return redirect()->back();
 }
开发者ID:kchimbo,项目名称:flyer,代码行数:7,代码来源:FlyersController.php

示例7: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  FlyerRequest  $request
  * @return Response
  */
 public function store(FlyerRequest $request)
 {
     Flyer::create($request->all());
     flash()->success('Success!', 'Your flyer is created, great Job!.');
     return redirect()->back();
     // temporary
 }
开发者ID:hikups,项目名称:project-flyer,代码行数:13,代码来源:FlyersController.php

示例8: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  FlyerRequest  $request
  * @return Response
  */
 public function store(FlyerRequest $request, Flash $flash)
 {
     Flyer::create($request->all());
     flash()->success('success!', 'your flyer has been created');
     return redirect()->back();
     //temporary
 }
开发者ID:rijalul,项目名称:build_projectflyer,代码行数:13,代码来源:FlyersController.php

示例9: store

 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(FlyerRequest $request)
 {
     Flyer::create($request->all());
     session()->flash('flash_message', 'Flyer successfully created');
     // flash messaging
     //return redirect()->back();
 }
开发者ID:zaiendi,项目名称:ProjectFlyer,代码行数:12,代码来源:FlyersController.php

示例10: store

 public function store(Requests\FlyerRequest $request)
 {
     Flyer::create($request->all());
     // session()->flash('flash_message','Flyer successfully created!');
     //flash('Success', 'Your flyer has been created');
     flash()->success('Success!', 'Your flyer has been created.');
     return redirect()->back();
 }
开发者ID:shwezin,项目名称:Projectflyer,代码行数:8,代码来源:FlyerController.php

示例11: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  FlyerRequest  $request
  * @return Response
  */
 public function store(FlyerRequest $request)
 {
     //persist
     Flyer::create($request->all());
     //flash
     flash("Sucess", "Your Flyer has been created");
     //redirect to home...
     return redirect()->back();
 }
开发者ID:rrubiorr81,项目名称:flyer,代码行数:15,代码来源:FlyerController.php

示例12: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  FlyerRequest $request
  * @return Response
  */
 public function store(FlyerRequest $request)
 {
     Flyer::create($request->all());
     //validate the form
     flash()->success('Success', 'Your flyer has been created.');
     // flash success message
     return redirect()->back();
     //temporary redirection to home page.
 }
开发者ID:nomadme,项目名称:lara-pro-fly,代码行数:15,代码来源:FlyersController.php

示例13: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(FlyerRequest $request)
 {
     //Validation wird im FlyerRequest gemacht
     Flyer::create($request->all());
     flash()->Success('Success', 'Your Flyer has been successfull saved in our DB');
     return redirect()->back();
     //temporary
     //persist
     //redirect to a landing page
 }
开发者ID:naxjud,项目名称:projectflyer,代码行数:16,代码来源:FlyersController.php

示例14: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Requests\FlyerRequest $request)
 {
     // Notice the validation is being done through the custom Request in the above parameter
     // This method won't get triggered if the Request doesn't pass validation in the FlyerRequest.php file
     Flyer::create($request->all());
     flash()->overlay("Success!", "Listing successfully created.");
     // We've created "flash" as a global function in app/helpers.php
     // where it accesses the class and object we've created
     // in app/http called Flash.php
     flash('Flyer successfully created!');
     $street = $street = str_replace('-', ' ', $request->street);
     return redirect($request->zip . '/' . $street);
 }
开发者ID:bryanjamesmiller,项目名称:projectflyer,代码行数:19,代码来源:FlyersController.php

示例15: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\FlyerRequest  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Requests\FlyerRequest $request)
 {
     //
     // validate form
     //$this->validate();
     //USING FlyerRequest to Validate
     // persist flyer
     Flyer::create($request->all());
     //flash messaging
     flash('Success', 'Flyer successfully created!');
     // redirect to landing page or the flyer
     return redirect()->back();
 }
开发者ID:qtheninja,项目名称:flyer,代码行数:19,代码来源:FlyersController.php


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