1
1

More than 5 years have passed since last update.

Laravel4 クイックスタートのルーティング

Posted at

やっと解決orz
まずはインストール成功の画面が見えている事が前提。

http://localhost/作業ディレクトリ/public/
or
http://localhost/作業ディレクトリ/public/index.php

まず、手順通りにやると

app/routes.phpに最後に下記を追加

Route::get('users', function()
{
    return 'Users!';
});

んでアクセスすれば、「Users!」と表示されるはず。。。

されない。。。

http://localhost/作業ディレクトリ/public/users
NotFound?
http://localhost/作業ディレクトリ/users
NotFound??

この記事を見つける。。。
http://qiita.com/tooooooooomy/items/41867fab58d6b757ca7f

試す。。。

http://localhost/作業ディレクトリ/public/index.php/users

「Users!」が表示された!!!

初めはローカルでvagrant+enginxで試し、次にvagrant+apacheで試し、バーチャルボックスがいけないのかと、AWSで試し、結果こんなことってorz

何十時間を費やした事やら。。。。。

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