Skip to content

Instantly share code, notes, and snippets.

@yano
yano / matome2.md
Last active January 21, 2018 07:35
PHPはじめてのフレームワーク Laravel 5.5対応 ステップ2 の私的まとめ

Bookにユーザ情報をつける

  • ユーザごとにBookを表示することができる
  • 登録したユーザを参照することができる

Book にユーザIDの項目を付加する

migrationファイルで、追加。

@yano
yano / matome1.md
Last active January 21, 2018 05:45
PHPはじめてのフレームワーク Laravel 5.5対応 ステップ1 の私的まとめ

asset()

<script srt="{{asset('/js/***.js')}}"></script> -> public/js/***.js

migrationファイルの$tableカラムタイプ一覧

タイプ一覧

@yano
yano / laravel_install.md
Last active January 20, 2018 03:11
laravelの開発の準備

composerのインストール

https://getcomposer.org/download/

現状こんなコマンドをうつ

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
@yano
yano / vuelaravel.md
Last active January 19, 2018 06:22
Vue + Laravelまとめ

vue-resource

vue-devtool (chrome extension)

browerfy

bulma

// vue attributes

@yano
yano / laravel_socialite.md
Last active January 17, 2018 00:49
Laravel socialiteまとめ
@yano
yano / test.sh
Created January 15, 2018 10:12
submodule (laradock)のclone方法
# https://tech.eshima.info/?p=156
git submodule init
git submodule update
@yano
yano / conda_create.sh
Created January 15, 2018 09:06
conda createのテンプレート
# for pytyon 2.7
conda create -n cnd27a python=2.7 numpy scipy matplotlib pandas pil ipython scikit-learn jupyter
# for python 3.5
conda create -n cnd35b python=3.5 numpy scipy matplotlib pandas pil ipython scikit-learn jupyter
対象os ubuntu 16.04
# php7.0-cliインストール
sudo apt install php7.0-cli
# requires ext-mbstring への対応
# https://stackoverflow.com/questions/39200967/laravel-installation-error-in-ubuntu-16-04
@yano
yano / laradock_matome.md
Last active September 10, 2019 06:31
laradockまとめ

apache2は邪魔なのでアンインストールしておく。postgresもlaradockないで動作するのでインストールの必要なし

sudo service apache2 stop
sudo apt-get remove apache2
sudo apt-get autoremove

laravel project作る

// postgres install
sudo apt-get install postgresql
// change password
sudo passwd postgres
// postgresユーザでログイン
su - postgres