質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Laravel

LaravelとはTaylor Otwellによって開発された、オープンソースなPHPフレームワークです。Laravelはシンプルで表現的なシンタックスを持ち合わせており、ウェブアプリケーション開発の手助けをしてくれます。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

コマンド

コマンドとは特定のタスクを行う為に、コンピュータープログラムへ提示する指示文です。多くの場合、コマンドはShellやcmdようなコマンドラインインターフェイスに対する指示文を指します。

Q&A

0回答

1269閲覧

artsianコマンドについて

mogimaho

総合スコア0

Laravel

LaravelとはTaylor Otwellによって開発された、オープンソースなPHPフレームワークです。Laravelはシンプルで表現的なシンタックスを持ち合わせており、ウェブアプリケーション開発の手助けをしてくれます。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

コマンド

コマンドとは特定のタスクを行う為に、コンピュータープログラムへ提示する指示文です。多くの場合、コマンドはShellやcmdようなコマンドラインインターフェイスに対する指示文を指します。

0グッド

0クリップ

投稿2022/02/23 09:32

初めまして。
現在初心者でプログラミングの勉強をしております。
laravelでWEBアプリを制作しようとしているのですが、
ターミナルにてphp artisan listと入力すると以下のようにエラーが出てしまいます。
使えるようになるにはどうしたらいいのでしょうか?

PHP Deprecated: Return type of Illuminate\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1231

PHP Deprecated: Return type of Illuminate\Container\Container::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1242

PHP Deprecated: Return type of Illuminate\Container\Container::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1254

PHP Deprecated: Return type of Illuminate\Container\Container::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1267

PHP Deprecated: Return type of Illuminate\Config\Repository::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 141

PHP Deprecated: Return type of Illuminate\Config\Repository::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 152

PHP Deprecated: Return type of Illuminate\Config\Repository::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 164

PHP Deprecated: Return type of Illuminate\Config\Repository::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 175

PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1277
Stack trace:
#0 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Support/Collection.php(11): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, 'Return type of ...', '/Applications/M...', 1277)
#1 /Applications/MAMP/htdocs/laravelproject/vendor/composer/ClassLoader.php(571): include('/Applications/M...')
#2 /Applications/MAMP/htdocs/laravelproject/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/Applications/M...')
#3 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Support/helpers.php(109): Composer\Autoload\ClassLoader->loadClass('Illuminate\Supp...')
#4 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(89): collect(Array)
#5 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config('aliases')
#6 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()
#7 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(219): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap(Object(Illuminate\Foundation\Application))
#8 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(320): Illuminate\Foundation\Application->bootstrapWith(Array)
#9 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\Foundation\Console\Kernel->bootstrap()
#10 /Applications/MAMP/htdocs/laravelproject/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 {main} in /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illuminate/Support/Collection.php on line 11

In Collection.php line 11:

During inheritance of ArrayAccess: Uncaught ErrorException: Return type of
Illuminate\Support\Collection::offsetExists($key) should either be compatib
le with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTyp
eWillChange] attribute should be used to temporarily suppress the notice in
/Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Illu
minate/Support/Collection.php:1277
Stack trace:
#0 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Support/Collection.php(11): Illuminate\Foundation\Bootstrap\Handle
Exceptions->handleError(8192, 'Return type of ...', '/Applications/M...', 1
277)
#1 /Applications/MAMP/htdocs/laravelproject/vendor/composer/ClassLoader.php
(571): include('/Applications/M...')
#2 /Applications/MAMP/htdocs/laravelproject/vendor/composer/ClassLoader.php
(428): Composer\Autoload\includeFile('/Applications/M...')
#3 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Support/helpers.php(109): Composer\Autoload\ClassLoader->loadClass
('Illuminate\Supp...')
#4 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/PackageManifest.php(89): collect(Array)
#5 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageM
anifest->config('aliases')
#6 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundatio
n\PackageManifest->aliases()
#7 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/Application.php(219): Illuminate\Foundation\Bootstrap\R
egisterFacades->bootstrap(Object(Illuminate\Foundation\Application))
#8 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/Console/Kernel.php(320): Illuminate\Foundation\Applicat
ion->bootstrapWith(Array)
#9 /Applications/MAMP/htdocs/laravelproject/vendor/laravel/framework/src/Il
luminate/Foundation/Console/Kernel.php(129): Illuminate\Foundation\Console\
Kernel->bootstrap()
#10 /Applications/MAMP/htdocs/laravelproject/artisan(37): Illuminate\Founda
tion\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInpu
t), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 {main}

使用環境
MacBook Air (Retina, 13-inch, 2020)
MAMP
※知識が少なく質問のし方など至らない点が多いですが、ご教授いただけますと幸いです。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

m.ts10806

2022/02/23 09:37

そもそも何がしたくてそのコマンドを打ったのでしょうか? そこに至るまでどのように環境構築したのでしょうか? バージョン情報含めて提示してください。MAMPも現在有効なのは1つだけではないはずです。
mogimaho

2022/02/23 09:55

ご回答ありがとうございます。 教材通りに、laravelにて「Controllerをつくる」ということでコマンドを打っておりました。 Artisan一覧が表示できるようになり、atisanを有効にできるようにしたいです。 環境構築 Homebrewをインストールし、 composerComposer version 2.2.5 Laravel Installer 4.2.10をインストール composer create-project laravel/laravelproject --prefer-distと入力し、 MAMPのhtdocsに作成をしていました。 PHPは8.0.8です。 わからないことが多く他にも質問に不備がございましたら、お手数ですがお教えいただけますと幸いです。 よろしくお願いいたします。
m.ts10806

2022/02/23 10:32

なんの教材ですか? いずれにしても質問本文に記載してください。 あと、「教材」として出ているようなものでPHP8やLaravel最新に対応してるのってまだあまりないと思うのですが
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問