Files
snipe-it/app/models/Category.php
T
2013-11-13 16:23:18 -05:00

31 lines
413 B
PHP

<?php
class Category extends Eloquent {
/**
* Deletes a blog post and all the associated comments.
*
* @return bool
*/
public function delete()
{
// Delete the blog post
//return parent::delete();
}
/**
* Returns a formatted post content entry, this ensures that
* line breaks are returned.
*
* @return string
*/
public function name()
{
return nl2br($this->content);
}
}