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
156 changes: 0 additions & 156 deletions app/Console/Commands/CrudAll.php

This file was deleted.

57 changes: 0 additions & 57 deletions app/Console/Commands/TransformerGenerator.php

This file was deleted.

42 changes: 0 additions & 42 deletions app/Console/Commands/TransformerMakeCommand.php

This file was deleted.

28 changes: 0 additions & 28 deletions app/Http/Controllers/Api/ArtikelController.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/Http/Controllers/CMS/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function update($id, UpdateCategoryRequest $request)

$category = $this->categoryRepository->update($request->all(), $id);

Session::flash('success', 'Kategori updated successfully.');
Session::flash('success', 'Kategori berhasil diperbarui.');

return redirect(route('categories.index'));
}
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/CMS/DownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function destroy($id)

$this->downloadRepository->delete($id);
if (request()->ajax()) {
return $this->sendSuccess('Role deleted successfully.');
return $this->sendSuccess('File download berhasil dihapus.');
}
Session::flash('success', 'File download berhasil dihapus.');

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/CMS/SlideController.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function destroy($id)

$this->slideRepository->delete($id);
if (request()->ajax()) {
return $this->sendSuccess('Role deleted successfully.');
return $this->sendSuccess('Slide berhasil dihapus.');
}
Session::flash('success', 'Slide berhasil dihapus.');

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/DepartmentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function edit($id)
$department = $this->departmentRepository->find($id);

if (empty($department)) {
Session::flash('error', 'Departemen not found');
Session::flash('error', 'Departemen tidak ditemukan');

return redirect(route('departments.index'));
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/PositionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function update($id, UpdatePositionRequest $request)

$position = $this->positionRepository->update($request->all(), $id);

Session::flash('success', 'Jabatan updated successfully.');
Session::flash('success', 'Jabatan berhasil diperbarui.');

return redirect(route('positions.index'));
}
Expand All @@ -126,7 +126,7 @@ public function destroy($id)

$this->positionRepository->delete($id);
if (request()->ajax()) {
return $this->sendSuccess('Role berhasil dihapus.');
return $this->sendSuccess('Jabatan berhasil dihapus.');
}
Session::flash('success', 'Jabatan berhasil dihapus.');

Expand Down
6 changes: 3 additions & 3 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class Kernel extends HttpKernel
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
'abilities' => \Laravel\Sanctum\Http\Middleware\CheckAbilities::class,
'ability' => \Laravel\Sanctum\Http\Middleware\CheckForAnyAbility::class,
'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class,
'role_or_permission' => \Spatie\Permission\Middlewares\RoleOrPermissionMiddleware::class,
'role' => \Spatie\Permission\Middleware\RoleMiddleware::class,
'permission' => \Spatie\Permission\Middleware\PermissionMiddleware::class,
'role_or_permission' => \Spatie\Permission\Middleware\RoleOrPermissionMiddleware::class,
'teams_permission' => Middleware\TeamsPermission::class,
'password.weak' => Middleware\WeakPassword::class,
'website.enable' => Middleware\WebsiteEnable::class,
Expand Down
3 changes: 2 additions & 1 deletion app/Http/Transformers/DownloadTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Models\Enums\StatusEnum;
use Illuminate\Support\Facades\Storage;
use League\Fractal\TransformerAbstract;
use Spatie\Html\Facades\Html;

class DownloadTransformer extends TransformerAbstract
{
Expand All @@ -14,7 +15,7 @@ public function transform(Download $download)
return [
'id' => $download->id,
'title' => $download->title,
'url' => $download->url ? link_to(Storage::url($download->url), 'berkas', ['class' => 'text-primary'])->toHtml() : '',
'url' => $download->url ? Html::a(Storage::url($download->url), 'berkas')->class('text-primary')->toHtml() : '',
'description' => $download->description,
'state' => $download->state == StatusEnum::aktif ? 'Tampilkan' : 'Tidak',
'created_at' => $download->created_at,
Expand Down
3 changes: 2 additions & 1 deletion app/Http/Transformers/SlideTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Models\Enums\StatusEnum;
use Illuminate\Support\Facades\Storage;
use League\Fractal\TransformerAbstract;
use Spatie\Html\Facades\Html;

class SlideTransformer extends TransformerAbstract
{
Expand All @@ -14,7 +15,7 @@ public function transform(Slide $slide)
return [
'id' => $slide->id,
'title' => $slide->title,
'url' => $slide->url ? link_to($slide->url, 'tautan', ['class' => 'text-primary'])->toHtml() : '',
'url' => $slide->url ? Html::a($slide->url, 'tautan')->class('text-primary')->toHtml() : '',
'thumbnail' => $slide->thumbnail ? Storage::url($slide->thumbnail) : '',
'description' => $slide->description,
'state' => $slide->state == StatusEnum::aktif ? 'Aktif' : 'Non Aktif',
Expand Down
2 changes: 0 additions & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ public function boot()
{
$this->bootHttps();
$this->addValidation();
// daftarkan manual karena gagal install infyomlabs/adminlte-templates terkendala depedency
View::addNamespace('adminlte-templates', resource_path('views/vendor/adminlte-templates'));
$this->addLogQuery();

if (App::runningInConsole()) {
Expand Down
Loading