Laravel Eloquent::Find() returning NULL with an existing ID

后端 未结 2 1595
故里飘歌
故里飘歌 2020-12-10 14:10

It\'s pretty straightforward as it\'s the most basic thing but I don\'t know what I\'m missing:

Having a model called Site

I\'m using Eloquent O

2条回答
  •  我在风中等你
    2020-12-10 14:25

    Check you are getting Input::get('siteId') correctly. if you are getting it then try to convert it into integer i.e

    $iSiteToDelete = intval(Input::get('siteId'));
    

提交回复
热议问题