Laragon / Laravel-对不起,找不到您要查找的页面

时间:2018-08-19 21:58:28

标签: php laravel routing composer-php

我开始使用在Laragon环境下运行的laravel 5.5在我的主要台式机上的Laravel中开发社交网络应用程序。当我将git信息库下载到便携式计算机上进行开发时,现在只有“ /”路由有效,我在台式机上可以使用完整的CRUD功能,但是在便携式计算机上只有一个路由可以使用,因此我尝试做作曲家更新和其他必要条件检查,但仍然无济于事,是否有明显的东西我可能会丢失?

-杰米

-代码-

web.php

<?php
Route::group(['middleware' => ['web']],function(){

   Route::get('/',function() {
       return view('welcome');
   })->name('login');

   Route::post('/signup',[
       'uses'=>'UserController@postSignUp',
       'as'=>'signup'
   ]);

      Route::post('/signin',[
       'uses'=>'UserController@postSignin',
       'as'=>'signin'
   ]);

      Route::get('/logout',[
       'uses'=>'UserController@getLogout',
       'as'=>'logout'
   ]);

    Route::get('/account',[
       'uses'=>'UserController@getAccount',
       'as'=>'account'
   ])->middleware('auth');

Route::post('/updateaccount', [
    'uses' => 'UserController@postSaveAccount',
    'as' => 'account.save'
]);

Route::get('uploads/{filename}', [
    'uses' => 'UserController@getUserImage',
    'as' => 'account.image'
]);


   Route::get('/dashboard', [
    'uses' => 'PostController@getDashboard',
    'as' => 'dashboard',
  ])->middleware('auth');

   Route::post('/createpost',[
       'uses'=>'PostController@postCreatePost',
       'as'=>'post.create'
   ])->middleware('auth');

   Route::get('/delete-post/{post_id}', [
    'uses' => 'PostController@getDeletePost',
    'as' => 'post.delete',
  ])->middleware('auth');

   Route::post('/edit', [
    'uses' => 'PostController@postEditPost',
    'as' => 'edit'
]);

   Route::post('/like', [
    'uses' => 'PostController@postLikePost',
    'as' => 'like'
]);

    Route::get('/online',[
    'uses'=>'PagesController@online',
    'as'=>'online']);  
});

Laragon apache conf

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "c:/Apache24/docs/dummy-host.example.com"
    ServerName dummy-host.example.com
    ServerAlias www.dummy-host.example.com
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "c:/Apache24/docs/dummy-host2.example.com"
    ServerName dummy-host2.example.com
    ErrorLog "logs/dummy-host2.example.com-error.log"
    CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

<VirtualHost *:80> 
    DocumentRoot "C:\laragon\www"
    ServerName localhost
</VirtualHost>



<VirtualHost *:80> 
    DocumentRoot "C:\laragon\www\Linguo\public"
    ServerName linguo.dev
</VirtualHost>

在存储库中可以找到任何其他相关代码

https://github.com/LawJay/Linguo

非常感谢您的帮助。

0 个答案:

没有答案