mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
mini changes
This commit is contained in:
parent
9f9ac22539
commit
23ff5f1441
@ -214,17 +214,12 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getAdvDetailLinkByModel($object, $type = null)
|
public function getAdvDetailLinkByModel($object, $type = null)
|
||||||
{
|
{
|
||||||
if ($type != null) {
|
$id = $object->id;
|
||||||
$id = $object->id;
|
$seo = str_slug($object->slug, '-');
|
||||||
$seo = str_slug($object->slug, '-');
|
return \route('adv_detail_seo', [$seo, $id]);
|
||||||
return \route('adv_detail_seo', [$seo, $id]);
|
}
|
||||||
}
|
|
||||||
$id = $object->getObject()->id;
|
|
||||||
$seo = str_slug($object->getObject()->name, '-');
|
|
||||||
return \route('adv_detail_seo', [$seo, $id]);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getAdvDetailLinkByAdId($id)
|
public function getAdvDetailLinkByAdId($id)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,23 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Anomaly\Streams\Platform\Database\Migration\Migration;
|
|
||||||
|
|
||||||
class VisiosoftModuleLocationAddAbvToCountries extends Migration
|
|
||||||
{
|
|
||||||
|
|
||||||
protected $delete = false;
|
|
||||||
|
|
||||||
protected $stream = [
|
|
||||||
'slug' => 'countries',
|
|
||||||
];
|
|
||||||
|
|
||||||
protected $fields = [
|
|
||||||
'abv' => 'anomaly.field_type.text',
|
|
||||||
];
|
|
||||||
|
|
||||||
protected $assignments = [
|
|
||||||
'abv',
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user