orientierung
This commit is contained in:
1 parent
326d827543
commit
0b1a1493b2
15 files changed
+363
-6
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Orientierung extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
public static function map()
|
||||
{
|
||||
$res = static::getModel()::where('selectable', 1)->get();
|
||||
$arr = [];
|
||||
foreach ($res as $value) {
|
||||
$arr[$value['id']] = $value['name'];
|
||||
}
|
||||
|
||||
return $arr;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user