This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function upload() { | |
if($this->session->logged_in){ | |
if(!isset($_FILES['file'])) redirect('home'); | |
$this->load->library('upload'); | |
$config['upload_path'] = FCPATH . 'uploads'; | |
$config['allowed_types'] = 'mp4|avi|3gp|mkv|webm|3gpp|flv'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function insert($data) { | |
$query = $this->db->insert('video', [ | |
'nama' => $data->nama, | |
'keterangan' => $data->keterangan, | |
'mapel' => $data->mapel, | |
'video_url' => $data->url, | |
'id_user' => $data->id_user | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"kodeobat" :"005", | |
"namaobat" :"test", | |
"dosisobat" :"2.00", | |
"satuanobat" :"Gram" | |
}, | |
{ | |
"kodeobat":"006", | |
"namaobat":"test1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Model; | |
use Illuminate\Database\Eloquent\Model; | |
class Pegawai extends Model | |
{ | |
protected $table = 'master_pegawai'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Model; | |
use Illuminate\Database\Eloquent\Model; | |
class Opd extends Model | |
{ | |
protected $table = 'master_kantor'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\GraphQL\Query; | |
use App\Model\Pegawai; | |
// use GraphQL\GraphQL; | |
use GraphQL\Type\Definition\ResolveInfo; | |
use GraphQL\Type\Definition\Type; | |
use Rebing\GraphQL\Support\Query; | |
use Rebing\GraphQL\Support\SelectFields; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\GraphQL\Query; | |
use App\Model\Opd; | |
use GraphQL\Type\Definition\ResolveInfo; | |
use GraphQL\Type\Definition\Type; | |
use Rebing\GraphQL\Support\Query; | |
use Rebing\GraphQL\Support\SelectFields; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\GraphQL\Type; | |
use GraphQL\Type\Definition\Type; | |
use Rebing\GraphQL\Support\Type as GraphQLType; | |
class OpdType extends GraphQLType | |
{ | |
protected $attributes = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\GraphQL\Type; | |
use GraphQL\Type\Definition\Type; | |
use Rebing\GraphQL\GraphQL; | |
use Rebing\GraphQL\Support\Type as GraphQLType; | |
class PegawaiType extends GraphQLType | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Model; | |
use Illuminate\Database\Eloquent\Model; | |
class Kantor extends Model | |
{ | |
protected $table = 'master_kantor'; | |
public $timestamps = false; |
OlderNewer