LoginSignup
2
1

More than 5 years have passed since last update.

Laravelを始めよう

Posted at

Laravelを始めよう

とりあえずLaravelをインストールしよう

なんかcomposerとかいうのが必要らしい

curl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composer

そしたら初めてLaravel公式にある以下のコマンドが使えるぞ(https://readouble.com/laravel/4.2/ja/quick.html)

composer global require "laravel/installer=~1.1"

laravelコマンドを使うには、それに加えてPATHを通す必要があるぞ。

  1. ~/.bash_profileを開く

  2. 以下の一文を追加

   export PATH="PATH"
  1. source ~/.bash_profileでファイルを読み込む

プロジェクトの作成じゃ〜!!!

laravel new project_name


このコマンドを叩くと作成されるぞ!

いざ実行

php artisan serve

このコマンドで実行される。
http://127.0.0.1:8000/
ここにアクセスしてみよう!

2
1
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
2
1