當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。