Skip to content

Instantly share code, notes, and snippets.

Peteng Dedet PetengDedet

Block or report user

Report or block PetengDedet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Multilevel Menu Codeigniter
//----MY Table--
MariaDB [sik]> select * from sik_institution;
+----+-------------------------------+-----------+--------+
| id | name | alias | parent |
+----+-------------------------------+-----------+--------+
| 1 | Kantor Bendahara Pesantren | bendahara | NULL |
| 2 | Bidang Pendidikan Tinggi | dikti | 1 |
| 3 | Institut Agama Islam Ibrahimy | iaii | 2 |
| 4 | Fakultas Syari'ah | fs | 3 |
+----+-------------------------------+-----------+--------+
View gist:51b75aa844b3e28149e5d21c289804e3
This file has been truncated, but you can view the full file.
.
├── 1.env
├── LICENSE.md
├── README.md
├── _ide_helper.php
├── anu.md
├── app
│   ├── ApiToken.php
│   ├── Console
View snip
public function surveyPlayStore($id, Request $request)
{
$userdata = Cektoken::cek($request->token);
$data = [];
$survey = \App\Models\Survey::find($id);
if (!$survey OR $survey->is_active == 'n') {
return response()->json(['status' => false, 'data' => $data, 'message' => 'Survey tidak valid'], 404);
}
View checkquestion
public function quizCheckAnswer($quiz_id, Request $request) {
$userdata = Cektoken::cek($request->token);
$data = [];
//Cek Quiz
$quiz = \App\Models\Quiz::find($quiz_id);
//Quiz tidak ditemukan
if (! $quiz) {
return response()->json(['status' => false, 'data' => $data, 'message' => 'Ups, Quiz tidak valid',404]);
}
View gist:738f8b0b970eb974c7c7c41ce84cc355
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Validator;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Auth;
View api
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Validator;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Auth;
View [ASK] ELK Security.md
+--------------------------------------------------------------------------+
|                                                                          |
|                           Phisical Server                                |
|                           Host: 192.168.100.1                            |
|                                                                          |
|                                                                          |
|                                                                          |
|                                                                          |
|                                                                          |
You can’t perform that action at this time.