1
0

More than 5 years have passed since last update.

Windows10でLaravelを始めるために役立つURL、メモ、知識など

Last updated at Posted at 2018-09-24

初投稿です。
laravelでアプリケーションを作ってみようと思い、その過程で学んだことをevernoteに書き溜めているのですが、どこかの誰かの役に立つかもしれないと思って公開することにしました。
現在進行形でLaravel学習中なので、この内容もどんどん修正していきます。

PHPやGitHub自体のメモもごちゃまぜになっちゃっているので、
そのうち整理します。

laravelのインストールなど(Windows10前提)

https://satouyousuke.hatenablog.com/entry/2017/08/17/161224
https://qiita.com/maruyama42/items/43d7029d7e00e587bf0b
https://sekaiokaeru.com/tips/install-composer

XAMPPとSkypeが競合して起動できない

Skypeで使用するポート番号を変更して解決する。
XAMPPで使用するポート番号を変更しても解決するみたいだが、慣れないうちはXAMPP側はあまりいじらないほうがいいと思う。
https://web-generalist.com/skype-port-off/

Laravelアプリケーションガイド

ここに記載されているアプリケーションをまず作っています。
https://qiita.com/Fendo181/items/dece727ea402552fee19

Laravel artisan

【知識:PHP】

リファレンス(仕様書)
http://php.net/manual/ja/langref.php
PHPは型を省略できる。もしくは、型定義自体ができない?
http://php.net/manual/ja/language.types.type-juggling.php
PHP7からは、boolean/string/integer/float型の指定が可能になっているらしく、
戻り値や、引数に型を指定できるようになっている。
https://qiita.com/bokotomo/items/1ead446ef689dc45b487

【知識:GitHub】

git push origin masterの意味
https://qiita.com/hshimo/items/99811144bf4a081319e5

コミットの流れ

$ git add .
$ git status
$ git comiit
$ git push

https://qiita.com/konweb/items/621722f67fdd8f86a017
https://techacademy.jp/magazine/10172

【知識:データベース】

Schema::create(
    'users',
    function($table) {
    $table->increments('id')
    });

Schema::create:テーブル作成に使用するメソッド
'users':テーブル名
fucntion($table)・・・:無名関数。引数はblueprint型。
$table->increments:自動増分を付与した主キーの作成。「id」に指定するのは慣例?
http://php.net/manual/ja/functions.anonymous.php
incrementesを含むSchemaで使用できる型は下記に記載
https://www.ritolab.com/entry/25

無名関数の中身は、作成・変更したいカラムのデータ型によって変わる?
http://laraweb.net/practice/1301/
マイグレーション:その他
https://readouble.com/laravel/5.5/ja/migrations.html

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0