Merge pull request 'SPK' (#27) from sholah into staging

Reviewed-on: #27
This commit is contained in:
putrakuningan
2024-10-24 12:37:54 +00:00
5 changed files with 432 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Modules\Lpj\Http\Controllers;
use App\Http\Controllers\Controller;
use Exception;
use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;
// use Modules\Lpj\Exports\TujuanPenilaianExport;
// use Modules\Lpj\Http\Requests\TujuanPenilaianRequest;
// use Modules\Lpj\Models\TujuanPenilaian;
class SpkController extends Controller
{
public $user;
public function index()
{
return view('lpj::spk.index');
}
public function viewSpk()
{
// return Excel::download(new TujuanPenilaianExport, 'tujuan_penilaian.xlsx');
return view('lpj::spk.view');
}
}

9
app/Models/Spk.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
namespace Modules\Lpj\Models;
class Spk extends Base
{
protected $table = 'arah_mata_angin';
protected $fillable = ['name','authorized_at','authorized_status','authorized_by'];
}