corcel / corcel

Use WordPress backend with Laravel or any PHP application
MIT License
4.64k stars 601 forks source link

Add support for (blogroll) links? #489

Open janboddez opened 5 years ago

janboddez commented 5 years ago

Description:

Support for WP bookmarks is (seems) missing. (The original Links Manager is still part of WP core, just hidden. Some bloggers rely on it, still.)

Was able to add some support to my app like so, but it's lacking the more fancy bits:

<?php

namespace App\Models;

use Corcel\Model;

/**
 * Class Bookmark
 */
class Bookmark extends Model
{
    /**
     * @var string
     */
    protected $table = 'links';

    /**
     * @var string
     */
    protected $primaryKey = 'link_id';
}
jgrossi commented 4 years ago

@janboddez hey thank you. feel free to open a PR for that. thank you