Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions app/Helpers/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@ class Helper

public static $template = [
'kontrak' => 'Kontrak',
'import' => 'Import',
'kak' => 'Kerangka Acuan',
'spj' => 'SPJ',
'sk' => 'Surat Keputusan',
'st' => 'Surat Tugas',
'import' => 'Import',
'kak' => 'Kerangka Acuan',
'spj' => 'SPJ',
'sk' => 'Surat Keputusan',
'st' => 'Surat Tugas',
];


/**
* @var array An array containing account information for travel.
*/
Expand Down Expand Up @@ -839,7 +838,7 @@ public static function formatSpj($spesifikasi)
*/
public static function getTemplatePath($column, $value)
{
$file = Template::cache()->get('all')->where($column,'=', $value)->first()->file ?? '';
$file = Template::cache()->get('all')->where($column, '=', $value)->first()->file ?? '';

return [
'filename' => $file,
Expand All @@ -854,7 +853,7 @@ public static function getTemplatePathByName($name)

public static function getTemplatePathById($id)
{
return self::getTemplatePath('id', $id);
return self::getTemplatePath('id', $id);
}

/**
Expand Down
1 change: 0 additions & 1 deletion app/Models/ArsipDokumen.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class ArsipDokumen extends Model
{
Expand Down
2 changes: 2 additions & 0 deletions app/Models/KepkaMitra.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
class KepkaMitra extends Model
{
use HasFactory, LaraCache;

public static function cacheEntities(): array
{
return [
Expand All @@ -20,6 +21,7 @@ public static function cacheEntities(): array
}),
];
}

public function mitra(): HasMany
{
return $this->hasMany(Mitra::class);
Expand Down
1 change: 0 additions & 1 deletion app/Nova/ArsipDokumen.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Nova\Actions\AddHasManyModel;
use Illuminate\Http\Request;
use Laravel\Nova\Fields\BelongsTo;
use Laravel\Nova\Fields\File;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Http\Requests\NovaRequest;
Expand Down