1
0
mirror of https://koodu.h-i.works/projects/thebadspace synced 2025-06-25 16:04:37 -05:00

Implemented internal blocklist sourcing

Switched from using external CSV exports to having the system talk to
instances directly to build and update the database.

NOTE: Added a new table called Source with the corresponding model to
access it
This commit is contained in:
Ro
2023-09-01 15:22:57 -07:00
parent 973b02af61
commit 565f099c90
5 changed files with 162 additions and 30 deletions

15
app/Models/Source.php Normal file
View File

@ -0,0 +1,15 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Source extends Model
{
use HasFactory;
protected $table = "source";
public $timestamps = false;
protected $fillable = ["url", "type", "active", "format", "token"];
}