This file contains hidden or 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
$('input[name="daterange"]').daterangepicker({ | |
locale: { | |
format: 'YYYY-MM-DD', | |
"separator": " ~ ", | |
"daysOfWeek": ["일","월","화","수","목","금","토"], | |
"monthNames": ["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"] | |
}, | |
startDate: '{{ \Carbon\Carbon::now()->subMonths(1)->toDateString() }}', | |
endDate: '{{ \Carbon\Carbon::now()->toDateString() }}' | |
}); |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
$query = Plan::with('movie') | |
->select( | |
'ML_ID', | |
DB::raw('count(ML_ID) as cnt'), | |
DB::raw("count(if(PLAN_STAT = 'Y',PLAN_STAT, null)) as Y"), | |
DB::raw("count(if(PLAN_STAT = 'N',PLAN_STAT, null)) as N"), | |
DB::raw("count(if(PLAN_STAT = 'P',PLAN_STAT, null)) as P") | |
) | |
->groupby('ML_ID') | |
->havingRaw('count(ML_ID)>0 AND ML_ID != ""') |
This file contains hidden or 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
<script> | |
$.ajaxSetup({ | |
headers: { | |
'X-CSRF-TOKEN': '{{csrf_token()}}' | |
} | |
}); | |
$('.btn__delete').on('click', function (e) { | |
var boardID = '{{ $board->id }}'; | |
var boardUri = '{{ $board->board_uri }}'; |
This file contains hidden or 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
@if ($errors->any()) | |
<div class="alert alert-danger"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" >× </button> | |
@foreach($errors->all() as $error) | |
<p>{{ $error }}</p> | |
@endforeach | |
</div> | |
@endif |
This file contains hidden or 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
try { | |
// | |
} catch (\Exception $e) { | |
return $e->getMessage(); | |
} |
This file contains hidden or 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 | |
/** @var \Illuminate\Support\ViewErrorBag $errors */ | |
@endphp |
This file contains hidden or 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
$history[Carbon::now()->toDateTimeString()] = [ | |
"title" => "무통장입금 저장", | |
"application_no" => $application_no, | |
"discount_id" => $discount_id, | |
"discount_code" => $discount_code, | |
"premium_expect" => $premium_expect, | |
"account_id" => $account_id, | |
"account_name" => $account_name, | |
]; |
This file contains hidden or 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
robocopy h: f: /mir /w:1 r:1 & shurdown -s -f -t 0 |
This file contains hidden or 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
//controller에서 패스워드를 인코딩할 필요없이 모델에서 적용 | |
public function setPasswordAttribute($password) | |
{ | |
$this->attributes['password'] = bcrypt($password); | |
} | |
public function getPasswordAttribute($password) | |
{ | |
return bcrypt($password); | |
} |
OlderNewer