List existing organisations
This commit is contained in:
60
src/Database/Models/Organisation.php
Normal file
60
src/Database/Models/Organisation.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* AVSDev UF Organisations (https://avsdev.uk)
|
||||
*
|
||||
* @link https://git.avsdev.uk/avsdev/sprinkle-organisations
|
||||
* @license https://git.avsdev.uk/avsdev/sprinkle-organisations/blob/master/LICENSE.md (LGPL-3.0 License)
|
||||
*/
|
||||
|
||||
namespace UserFrosting\Sprinkle\Organisations\Database\Models;
|
||||
|
||||
use UserFrosting\Sprinkle\Core\Database\Models\Model;
|
||||
|
||||
/**
|
||||
* Organisation Class.
|
||||
*
|
||||
* Represents a organisation object as stored in the database.
|
||||
*
|
||||
* @author Craig Williams (https://avsdev.uk)
|
||||
*
|
||||
* @property string $slug
|
||||
* @property string $name
|
||||
* @property string $description
|
||||
* @property timestamp $created_at
|
||||
* @property timestamp $updated_at
|
||||
* @property timestamp $deleted_at
|
||||
*/
|
||||
class Organisation extends Model
|
||||
{
|
||||
/**
|
||||
* @var string The name of the table for the current model.
|
||||
*/
|
||||
protected $table = 'organisations';
|
||||
|
||||
/**
|
||||
* Fields that should be mass-assignable when creating a new Organisation.
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected $fillable = [
|
||||
'slug',
|
||||
'name',
|
||||
'description',
|
||||
'deleted_at',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be mutated to dates.
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected $dates = [
|
||||
'deleted_at',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var bool Enable timestamps for this class.
|
||||
*/
|
||||
public $timestamps = true;
|
||||
}
|
||||
Reference in New Issue
Block a user