本文整理汇总了PHP中Illuminate\Support\Facades\DB::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP DB::delete方法的具体用法?PHP DB::delete怎么用?PHP DB::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Support\Facades\DB
的用法示例。
在下文中一共展示了DB::delete方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bannerSil
function bannerSil($sil)
{
$bannerSil = DB::delete("delete from banner where id = ?", array($sil));
if ($bannerSil) {
return Redirect::to('admin/bannerListele');
}
}
示例2: mesajSil
function mesajSil($sil)
{
$mesajSil = DB::delete("delete from mesajlar where id = ?", array($sil));
if ($mesajSil > 0) {
return Redirect::to('admin/mesajlar');
}
}
示例3: store
public function store(SetupRequest $request)
{
DB::delete('delete from settings');
DB::table('settings')->insert([['name' => 'name', 'value' => e($request->input('name'))], ['name' => 'cover', 'value' => 'images/cover.jpg'], ['name' => 'avatar', 'value' => 'images/avatar.png'], ['name' => 'bio', 'value' => e($request->input('bio'))], ['name' => 'email', 'value' => 'hsinlu@live.com'], ['name' => 'title', 'value' => e($request->input('title'))], ['name' => 'subtitle', 'value' => e($request->input('subtitle'))], ['name' => 'keywords', 'value' => e($request->input('keywords'))], ['name' => 'description', 'value' => e($request->input('description'))], ['name' => 'paginate_size', 'value' => 5]]);
event(new \App\Events\DoneSetupEvent());
return redirect('/');
}
示例4: urunSil
function urunSil($urunsil)
{
$urunsil = DB::delete("delete from urunler where id = ?", array($urunsil));
if ($urunsil > 0) {
return Redirect::to('admin/urun');
}
}
示例5: yorumSil
function yorumSil($sil)
{
$yorumSil = DB::delete("delete from yorumlar where id = ?", array($sil));
if ($yorumSil > 0) {
return Redirect::to('admin/urunYorum');
}
}
示例6: icerikSil
function icerikSil($iceriksil)
{
$iceriksil = DB::delete("delete from icerikler where id = ?", array($iceriksil));
if ($iceriksil > 0) {
return Redirect::to('admin/icerik');
}
}
示例7: videoSil
function videoSil($videoSil)
{
$videoSil = DB::delete("delete from videolar where id = ?", array($videoSil));
if ($videoSil > 0) {
return Redirect::to('admin/video');
}
}
示例8: sil
public function sil($sil)
{
$data = DB::delete("delete from linkler where id=?", array($sil));
if ($data > 0) {
return Redirect::to('admin/linkler');
}
}
示例9: haberSil
function haberSil($habersil)
{
$habersil = DB::delete("delete from haberler where id = ?", array($habersil));
if ($habersil > 0) {
return Redirect::to('admin/haberler');
}
}
示例10: sil
public function sil($id)
{
$silIslem = DB::delete("delete from kullanicilar where id = ?", array($id));
//echo "<script>alert('".$silIslem."');</script>";
if ($silIslem > 0) {
return Redirect::to('admin/kullanicilar');
}
}
示例11: silData
public function silData($sil)
{
// data silme işlemi
$silIslem = DB::delete("delete from kullanicilar where id = ?", array($sil));
//echo "<script>alert('".$silIslem."');</script>";
if ($silIslem > 0) {
return Redirect::to('veritabani');
}
}
示例12: delete
static function delete($id, $pass)
{
$entry = DB::select("SELECT password FROM Entries WHERE rowid=?", [$id]);
if (Hash::check($pass, $entry[0]->password)) {
DB::delete('DELETE FROM Entries WHERE rowid=?', [$id]);
DB::delete('DELETE FROM Entries WHERE id_team=?', [$id]);
return 1;
}
return 0;
}
示例13: sliderSil
function sliderSil($sil)
{
$silenecek = DB::select("select yol from slider where id = ?", array($sil));
$fileName = $silenecek[0]->yol;
File::delete("slider/" . $fileName);
$sliderSil = DB::delete("delete from slider where id = ?", array($sil));
if ($sliderSil > 0) {
return Redirect::to('admin/sliderYonetimi');
}
}
示例14: olay
public function olay()
{
$durum = Input::all();
if (isset($durum["sil"])) {
// silme işlemi
$sil_id = $durum["topCategory"];
$silIslem = DB::delete("delete from kategoriler where id = ?", array($sil_id));
}
return Redirect::to('admin/kategori');
}
示例15: silForm
/**
* Kullanıcı silme işlemi.
* @param $kul_id
* @return redirect
*/
public function silForm($kul_id)
{
// Kullanıcı silme işlemi.
$q = "DELETE FROM kullanicilar WHERE id = ?";
$islem = DB::delete($q, array($kul_id));
if ($islem) {
$mesaj = "basarili";
} else {
$mesaj = "basarisiz";
}
return redirect("kullanicilar/liste")->with("mesaj", $mesaj);
}