destroy
is correct method for removing an entity directly (via object or model).
Example:
$teetime = Teetime::where('date', '=', $formattedDate)->firstOrFail();
$teetime->destroy();
delete
can only be called in query builder
Example:
$teetime = Teetime::where('date', '=', $formattedDate)->delete();
From documentation:
Deleting An Existing Model By Key
User::destroy(1);
User::destroy(array(1, 2, 3));
User::destroy(1, 2, 3);
Of course, you may also run a delete query on a set of models:
$affectedRows = User::where('votes', '>', 100)->delete();
More info: http://laravel.com/docs/eloquent
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…