-
app/Models/Link.php
Open in GitHubuse Illuminate\Database\Eloquent\Model; class Link extends Model { // public const STATUS_OK = 1; public const STATUS_MOVED = 2; public const STATUS_BROKEN = 3; public const DISPLAY_CARDS = 1; public const DISPLAY_LIST_SIMPLE = 2; public const DISPLAY_LIST_DETAILED = 0; public const REV_TAGS_NAME = 'revtags'; public const REV_LISTS_NAME = 'revlists'; // }
-
app/Http/Controllers/Models/LinkController.php
Open in GitHubuse App\Http\Controllers\Controller; use App\Models\Link; class LinkController extends Controller { // public function markWorking(Link $link): RedirectResponse { $link->status = Link::STATUS_OK; $link->save(); return redirect()->route('links.show', [$link->id]); } }