我试图从laracast community得到答案,但最终没有得到答复。我在每个页面或CLI命令的顶部得到以下文本输出:
跳至内容个人开源商务浏览定价博客支持此存储库
3,019 22,483
7,384
laravel / laravel代码拉取请求0脉冲图 laravel / config / database.php eb7743f 11天前@dakira dakira允许 通过env @taylorotwell @TGM @vlakoff设置sqlite数据库 @dakira @marcanuy @ pedes42 @jimmypuckett @GrahamCampbell @ david-ridgeonnet @ SyntaxC4 @overtrue 121行(101 sloc)3.84 KB 我发布的laracast讨论中提供了可能怀疑的所有文件。 C4 @overtrue 121行(101 sloc)3.84 KB
BTW我用composer来安装laravel。 编辑routes.php文件
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', 'PagesController@index');
Route::get('item', 'ItemController@index');
Route::get('item/create', 'ItemController@create');
Route::get('item/{id}', 'ItemController@show');
Route::get('welcome', function() {
return view('welcome');
});
Route::group(['middleware' => 'web'], function () {
Route::auth();
Route::get('/home', 'HomeController@index');
});
Route::post('item', 'ItemsController@Store');