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
error_log = C:\Server\nginx\logs\error.log | |
extension_dir = "ext" | |
extension=php_mbstring.dll | |
extension=php_mysql.dll | |
extension=php_mysqli.dll | |
extension=php_sqlite3.dll | |
sqlite3.extension_dir = ext | |
==================== SENDMAIL ==================== | |
[mail function] |
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 update(Request $request) { | |
$akunid = Auth::user()->id; | |
if ($request->hasFile('fotoprofil')) { | |
$fotoprofil = $request->file('fotoprofil'); | |
$namafoto = 'profil-'.$akunid.'.'.$fotoprofil->getClientOriginalExtension(); | |
$destinationPath = ('img/profil'); | |
$ubah_foto = Image::make($fotoprofil->getRealPath())->resize(150,150); | |
$ubah_foto->save($destinationPath.'/'.$namafoto,80); | |
}else { |
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
{!! Form::model($akun,['route' => ['Update Profil'], 'method' => 'PUT', 'files'=> true]) !!} | |
<div class="row"> | |
<div class="col-4"> | |
<img src="{{ url('/'.$fotoprofil) }}" alt="..." class="rounded-circle"> | |
</div> | |
<div class="col-8"> | |
{!! Form::label('fotoprofil', 'Foto Profil') !!} | |
<p>Catatan : Gunakan foto profil dengan ukuran gambar 150 x 150 pixel.</p> | |
{!! Form::file('fotoprofil', ['class' => 'form-control']) !!} | |
</div> |
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 CategoryArticle(){ | |
return $this->belongsTo('App\CategoryArticle','kategori_article','id_category'); | |
} |
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
uploadCover() { | |
this.progressDialog = true | |
let formData = new FormData() | |
formData.append('cover_article', this.imgCover) | |
upload.post('atk/posts/cover/'+this.params, formData).then((res) => { | |
this.form.coverArticle = res.data | |
this.imgCover = null | |
this.progressDialog = false | |
this.updateCover = false | |
}).catch(() => { |
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
updateArticle(){ | |
this.updateCover = false | |
let formData = new FormData() | |
formData.append('cover_article', fs.createReadStream(this.imgCover.path)) | |
axios.post('https://www.example.com/atk/posts/cover/'+this.params, formData, { | |
headers: { | |
'Access-Control-Allow-Origin': '*', | |
'Content-Type': 'multipart/form-data', | |
'Authorization' : 'Bearer ' + storageService.getToken() | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Document</title> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> |
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 React from 'react'; | |
import {NavigationContainer} from '@react-navigation/native'; | |
import {createMaterialBottomTabNavigator} from '@react-navigation/material-bottom-tabs'; | |
import FIcon from 'react-native-vector-icons/FontAwesome'; | |
import homeScreen from './screen/Home'; | |
import settingScreen from './screen/Settings'; | |
import absenScreen from './screen/Absen'; | |
import taskScreen from './screen/Task'; | |
import {Provider} from 'react-redux'; | |
import {createStore} from 'redux'; |
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 axios from 'axios'; | |
const config = { | |
baseUrl: 'MY_URL', | |
headers: { | |
'Access-Control-Allow-Origin': '*', | |
'Content-Type': 'application/json', | |
}, | |
}; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Print Dot Matrix Template 9.5 x 11</title> | |
</head> | |
<style> | |
@media print { | |
p, |
OlderNewer