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 | |
namespace App; | |
use Illuminate\Support\Facades\DB; | |
trait Register | |
{ | |
/** | |
* DB登録処理 |
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
vagrant@vm:~/app$ php artisan make:migration rename_birth_to_birthdate_on_contacts_table --table=contacts |
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 | |
$code = ' ABC DEF G 1234 567 8 ABCD 12345 '; | |
$print = preg_replace('/( | )/', '', mb_convert_kana($code, 'a', 'UTF-8')); | |
var_dump($print); |
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 | |
/** | |
* 文字列内の旧漢字を新漢字へ変換する | |
* | |
* @param string $string | |
* @return string | |
*/ | |
function convertKanjiOldIntoNew($string) | |
{ |
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
>vagrant up |
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 artisan migrate | |
In Connection.php line 664: | |
(SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations) | |
In Connector.php line 67: |
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
date_default_timezone_set('Asia/Tokyo'); | |
$setYear = 2018; | |
$setMonth = 2; | |
$date = new DateTime(); | |
$month['first_day'] = $date->setDate($setYear, $setMonth, 1)->format('Y-m-d'); // 日を1で固定値を入れている | |
$month['last_day'] = $date->setDate($setYear, $setMonth, 1)->format('Y-m-t'); // 日を1で固定値を入れている | |
var_dump($month); |
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
composer require azuyalabs/yasumi |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>test</title> | |
<style> | |
input[type=date]::-webkit-calendar-picker-indicator { | |
/* 好きなだけpx調整 */ | |
padding: 20px; |
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
MAIL_HOST= | |
MAIL_PORT= | |
MAIL_USERNAME= | |
MAIL_PASSWORD= | |
MAIL_ENCRYPTION=tls | |
[email protected] | |
MAIL_FROM_NAME=System | |
MAIL_TO_ADDRESS= | |
MAIL_TO_NAME= | |
MAIL_CC_01_ADDRESS= |
OlderNewer