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


PHP Session::flash方法代码示例

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


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

示例1: scopeDate

 public function scopeDate($query, $date)
 {
     if (trim($date) != "") {
         $query->where(\DB::raw("CONCAT(date)"), "LIKE", "%{$date}%");
         Session::flash('message', 'Fecha:' . ' ' . $date . '  ' . 'Resultado de la busqueda');
     }
 }
开发者ID:luiscarlosmarca,项目名称:matixmedia,代码行数:7,代码来源:Brief.php

示例2: store

 public function store(LocationRequest $request)
 {
     $location = Location::create($request->all());
     Session::flash('success', true);
     Session::flash('message', 'Aðgerð tókst: Ný staðsetning');
     return Redirect::back();
 }
开发者ID:birgirob,项目名称:TiSDaV,代码行数:7,代码来源:LocationController.php

示例3: destroy

 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $contact = Contact::findOrFail($id);
     $contact->delete();
     Session::flash('message', 'Successfully Deleted your Data!');
     return redirect()->back();
 }
开发者ID:minhajCSE,项目名称:teleaus-dev,代码行数:13,代码来源:FeedbackController.php

示例4: update

 /**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @param StoreBankDetailPostRequest $request
  * @return Response
  */
 public function update(BankDetail $bank, StoreBankDetailPostRequest $request)
 {
     $input = $request->all();
     $bank->fill($input)->save();
     Session::flash('flash_message', 'Bank Details successfully Updated!');
     return redirect()->back();
 }
开发者ID:arianpour,项目名称:AgentProV0.6,代码行数:14,代码来源:BankDetailController.php

示例5: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Requests\CreatePagoRequest $request)
 {
     $pago = Pagos::create($request->all());
     $message = 'Pago efectuado de: ' . $pago->monto . ' al usuario: ' . $pago->user->first_name . ' ' . $pago->user->last_name;
     Session::flash('message', $message);
     return Redirect::route('admin.users.index');
 }
开发者ID:panxox1323,项目名称:Oral_Plus2,代码行数:13,代码来源:PagarController.php

示例6: TambahJadwal

 public function TambahJadwal()
 {
     $rules = array('unit_id' => 'required', 'kategori' => 'required', 'tglstart' => 'required', 'tglases' => 'required', 'tglfinish' => 'required', 'detail' => 'required');
     $messages = array('unit_id.required' => 'Nama Jabatan Harus Terisi', 'kategori.required' => 'Kategori Harus Dipilih', 'tglstart.required' => 'Tanggal Mulai Harus Terisi', 'tglases.required' => 'Tanggal Asessment Harus Terisi', 'tglfinish.required' => 'Tanggal Selesai Harus Terisi', 'detail.required' => 'Detail Harus terisi');
     $validasi = validator::make(Input::all(), $rules, $messages);
     if ($validasi->fails()) {
         return Redirect::back()->withErrors($validasi)->withInput();
     } else {
         $kat = Input::get('kategori');
         if ($kat == 'internal') {
             $aa = "in";
         } else {
             $aa = "ex";
         }
         DB::transaction(function ($aa) use($aa) {
             //asesment promosi
             $jadwal = KandidatPromote::create(['unit_staf_id' => Input::get('unit_id'), 'tgl_awal' => Input::get('tglstart'), 'tgl_asesment' => Input::get('tglases'), 'tgl_selesai' => Input::get('tglfinish'), 'detail' => Input::get('detail')]);
             //rekrutmen rekap header
             $rekap_header = HeaderRekap::create(['id_asesmen' => $jadwal->id, 'kategori' => Input::get('kategori'), 'nama' => Input::get('jabatan'), 'tanggal_awal' => Input::get('tglstart'), 'tanggal_akhir' => Input::get('tglfinish'), 'deksripsi' => Input::get('detail')]);
             //asessment promosi daftar
             $daftar = KandidatPromosiDaftar::create(['asesment_promosi_id' => $jadwal->id, 'nip' => Input::get('nip'), 'detail' => Input::get('detail')]);
             //rekrutment rekap profiling
             $profil = ProfilingRekap::create(['id_rekap' => $rekap_header->id, 'kategori' => $aa, 'nip' => $daftar->nip, 'id_jabatan' => $jadwal->unit_staf_id]);
         });
         Session::flash('message', 'Berhasil Menambahkan Jadwal Asessment');
         return Redirect::to('career/jadwal/lihat/asessment');
     }
 }
开发者ID:hendrilara,项目名称:kemenpan,代码行数:28,代码来源:KandidatPromosiController.php

示例7: destroy

 public function destroy($id, Request $request)
 {
     Dnschecker::destroy($id);
     $message = 'El registro ha sido eliminado con exito';
     Session::flash('message', $message);
     return $message;
 }
开发者ID:edgarflores,项目名称:dns,代码行数:7,代码来源:DnsController.php

示例8: store

 public function store()
 {
     // getting all of the post data
     $file = array('image' => Input::file('image'));
     $input = Request::all();
     $image = $input['image'];
     // setting up rules
     $rules = array('image' => 'required');
     //mimes:jpeg,bmp,png and for max size max:10000
     // doing the validation, passing post data, rules and the messages
     $validator = Validator::make($image, $rules);
     if ($validator->fails()) {
         // send back to the page with the input data and errors
         return Redirect::to('/')->withInput()->withErrors($validator);
     } else {
         // checking file is valid.
         if (Input::file('image')->isValid()) {
             $destinationPath = '/uploads/images';
             // upload path
             $extension = Input::file('image')->getClientOriginalExtension();
             // getting image extension
             $fileName = rand(11111, 99999) . '.' . $extension;
             // renameing image
             Input::file('image')->move($destinationPath, $fileName);
             // uploading file to given path
             // sending back with message
             Session::flash('success', 'Upload successfully');
             return Redirect::to('upload');
         } else {
             // sending back with error message.
             Session::flash('error', 'uploaded file is not valid');
             return Redirect::to('upload');
         }
     }
 }
开发者ID:Omniarate,项目名称:omniaratedev1,代码行数:35,代码来源:UploadApplyController.php

示例9: logout

 public function logout()
 {
     Session::flush();
     Session::flash('message', 'You have successfully logged out of the system.');
     Session::flash('alert-class', 'alert-success');
     return Redirect::to('/');
 }
开发者ID:Headrun-php,项目名称:TLG,代码行数:7,代码来源:VaultController.php

示例10: scopeName

 public function scopeName($query, $name)
 {
     if (trim($name) != "") {
         $query->where(\DB::raw("CONCAT(name)"), "LIKE", "%{$name}%");
         Session::flash('message', 'Nombre:' . ' ' . $name . '  ' . 'Resultado de la busqueda');
     }
 }
开发者ID:luiscarlosmarca,项目名称:matixmedia,代码行数:7,代码来源:Project.php

示例11: destroy

 public function destroy($id)
 {
     $page = Page::findOrFail($id);
     $page->delete();
     Session::flash('delete_page', 'page has been deleted');
     return redirect('panel/pages');
 }
开发者ID:AliBedaer,项目名称:watania,代码行数:7,代码来源:PagesController.php

示例12: logout

 public function logout()
 {
     Session::flush();
     Auth::logout();
     Session::flash('messages', ["Successfully logged out."]);
     return view('front.index');
 }
开发者ID:SaadQobaa,项目名称:testing_laravel,代码行数:7,代码来源:LoginController.php

示例13: delete

 public function delete($id)
 {
     $user = usersdb::find($id);
     $user->delete();
     Session::flash('success', "L'utilisateur {$user->username} a bien été supprimé.");
     return Redirect::route('users.index');
 }
开发者ID:hykz,项目名称:Laravel,代码行数:7,代码来源:UsersController.php

示例14: destroy

 public function destroy($id)
 {
     $horarios = Horario::find($id);
     $horarios->delete();
     Session::flash('message', 'El Horario de la fecha ' . $horarios->fecha . ' fue eliminado');
     return redirect()->route('Administrador.horarios.index');
 }
开发者ID:jaime1992,项目名称:Proyecto-Sala-Utem,代码行数:7,代码来源:HorariosController.php

示例15: update

 public function update()
 {
     $btnStatus = Input::get('btn_sta');
     $inputs = Input::get('check');
     switch ($btnStatus[0]) {
         case 1:
             foreach ($inputs as $key => $id) {
                 DB::table('users')->where('id', $id)->delete();
             }
             Session::flash('flash_message', "Sukses Menghapus Data !!");
             break;
         case 2:
             foreach ($inputs as $key => $id) {
                 DB::table('users')->where('id', $id)->update(['hak_akses' => "2"]);
             }
             Session::flash('flash_message', "Sukses Memperbaharui Status !!");
             break;
         case 3:
             foreach ($inputs as $key => $id) {
                 DB::table('users')->where('id', $id)->update(['hak_akses' => "3"]);
             }
             Session::flash('flash_message', "Sukses Memperbaharui Status !!");
             break;
         default:
             break;
     }
     return redirect('users');
 }
开发者ID:blacknvcone,项目名称:eAgenda,代码行数:28,代码来源:UserController.php


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