- Penjelasan Tugas : https://www.youtube.com/watch?v=f3Pnj6vpNZg
- Pastikan table kamu terdapat field untuk Latitude dan Longitude, gunanya untuk menyimpan lokasi Maps dan akan ditampilkan di Maps Activity.
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\Models; | |
use Illuminate\Database\Eloquent\Model; | |
class Admin extends User | |
{ | |
protected $table = 'admin'; | |
public $primaryKey = 'id_admin'; |
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
public function bulkinsert(Request $request) | |
{ | |
$request->validate([ | |
'file' => 'required', | |
]); | |
if ($request->hasFile('file')) { | |
$file = $request->file->getClientOriginalName(); | |
$filename = Str::slug(pathinfo($file, PATHINFO_FILENAME)); |
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
public function export_excel() | |
{ | |
$data = Toko::join('perusahaan','perusahaan.id_perusahaan','toko.perusahaan_id') | |
->join('daerah','daerah.id_daerah','toko.daerah_id') | |
->orderBy('toko.id_toko', 'desc') | |
->get(); | |
return Excel::download(new TokoExport($data), 'Toko_' . Carbon::now()->format('d-m-Y_H-i-s') . '.xlsx'); | |
} |
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
<VirtualHost 149.28.164.16:80> | |
ServerName 321.adhitamamitranusantara.com | |
ServerAlias www.321.adhitamamitranusantara.com | |
ServerAdmin webmaster@321.adhitamamitranusantara.com | |
DocumentRoot /home/321adhi/public_html | |
UseCanonicalName Off | |
CustomLog /usr/local/apache/domlogs/321.adhitamamitranusantara.com.bytes bytes | |
CustomLog /usr/local/apache/domlogs/321.adhitamamitranusantara.com.log combined | |
ErrorLog /usr/local/apache/domlogs/321.adhitamamitranusantara.com.error.log |
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\Http\Middleware\Auth; | |
use Closure; | |
use Illuminate\Support\Facades\Auth; | |
class CekLoginAdmin | |
{ | |
public function handle($request, Closure $next) |
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
function modalSAProses() { | |
Swal.fire({ | |
title: "Sedang Memproses", | |
text: "Mohon tunggu sebentar", | |
showConfirmButton: false, | |
showCancelButton: false, | |
allowOutsideClick: false, | |
allowEscapeKey: false, | |
showCloseButton: false, | |
focusConfirm: false, |
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 | |
header('Location: https://domain.com/'); | |
exit; | |
?> |
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
import 'package:flutter/material.dart'; | |
import 'package:flutter_task/mainmenu.dart'; | |
class Login extends StatefulWidget { | |
@override | |
_LoginPageState createState() => _LoginPageState(); | |
} | |
class _LoginPageState extends State<Login> { | |
String username, password; |
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
package com.example.tugasandroid1; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.text.method.HideReturnsTransformationMethod; | |
import android.text.method.PasswordTransformationMethod; | |
import android.view.View; | |
import android.widget.Button; |