Izveidot aplikāciju, kura ik pēc noteikta intervāla (60 sekundes) veic ierakstu datubāzē izmantojot Laravel freimworka iebūvēto funkcionalitāti.
<?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Authors:
* - Josh Soref
* - tgfjt
* - JD Isaacks
*/
return [
'year' => '{1}setaun|]1,Inf[:count taun',
'month' => '{1}sewulan|]1,Inf[:count wulan',
'week' => '{1}sakminggu|]1,Inf[:count minggu',
'day' => '{1}sedinten|]1,Inf[:count dinten',
'hour' => '{1}setunggal jam|]1,Inf[:count jam',
'minute' => '{1}setunggal menit|]1,Inf[:count menit',
'second' => '{1}sawetawis detik|]1,Inf[:count detik',
'ago' => ':time ingkang kepengker',
'from_now' => 'wonten ing :time',
'formats' => [
'LT' => 'HH.mm',
'LTS' => 'HH.mm.ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY [pukul] HH.mm',
'LLLL' => 'dddd, D MMMM YYYY [pukul] HH.mm',
],
'calendar' => [
'sameDay' => '[Dinten puniko pukul] LT',
'nextDay' => '[Mbenjang pukul] LT',
'nextWeek' => 'dddd [pukul] LT',
'lastDay' => '[Kala wingi pukul] LT',
'lastWeek' => 'dddd [kepengker pukul] LT',
'sameElse' => 'L',
],
'meridiem' => function ($hour) {
if ($hour < 11) {
return 'enjing';
}
if ($hour < 15) {
return 'siyang';
}
if ($hour < 19) {
return 'sonten';
}
return 'ndalu';
},
'months' => ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'Nopember', 'Desember'],
'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Ags', 'Sep', 'Okt', 'Nop', 'Des'],
'weekdays' => ['Minggu', 'Senen', 'Seloso', 'Rebu', 'Kemis', 'Jemuwah', 'Septu'],
'weekdays_short' => ['Min', 'Sen', 'Sel', 'Reb', 'Kem', 'Jem', 'Sep'],
'weekdays_min' => ['Mg', 'Sn', 'Sl', 'Rb', 'Km', 'Jm', 'Sp'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' lan '],
];