mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Initial commit
This commit is contained in:
13
app/Task.php
Normal file
13
app/Task.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Task extends Model
|
||||
{
|
||||
public function scopeIncomplete($query)
|
||||
{
|
||||
return $query->where('completed', 0)->orderBy('priority', 'desc');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user