1
2

More than 3 years have passed since last update.

Laravelの開発環境構築

Posted at

環境

Mac Catalina10.15

Homebrewをインストールする

Homebrewはソフトウェアの導入を単純化するパッケージ管理システムのひとつです:blush:

以下コマンドを実行

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

インストールできたか確認

$ brew -v

PHPをインストールする

以下のコマンドでphp7.4をインストールする

$ brew install php@7.4

インストールできたか確認

$ php -v

Composerをインストールする

Composerとは、PHP向けのパッケージ管理システムです:blush:

Homebrewでインストールする

$ brew install composer

インストールできたか確認

$ composer -V

Laravelのインストール

Composerを用いてLaravelをインストールします:blush:
方法は2通りあります。

方法1

#Laravelインストール&プロジェクト作成
$ composer create-project laravel/laravel --prefer-dist プロジェクト名

方法2

#Laravelインストール
$ composer global require "laravel/installer"
#プロジェクト作成
$ laravel new プロジェクト名

laravelのバージョン確認

$ php artisan -V

デバッガーのインストール

$ composer require barryvdh/laravel-debugbar
1
2
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
2