Adding lazy-load version of feed component to load data using AJAX after page content has been rendered.

This commit is contained in:
Jason Williams
2020-10-23 22:54:30 +00:00
parent 2a8454d197
commit af4f1366a0
71 changed files with 1753 additions and 88 deletions

View File

@@ -0,0 +1,35 @@
<?php namespace jasonwilliams\feed\Models;
use Model;
/**
* Model
*/
class Links extends Model
{
use \October\Rain\Database\Traits\Validation;
/*
* Disable timestamps by default.
* Remove this line if timestamps are defined in the database table.
*/
public $timestamps = false;
/**
* @var string The database table used by the model.
*/
public $table = 'jasonwilliams_feed_links';
protected $fillable = ['addr', 'display'];
/**
* @var array Validation rules
*/
public $rules = [
];
public $belongsTo = [
'links' => 'jasonwilliams\feed\Models\FeedItem'
];
}