首页 > php教程 > PHP源码 > php cms门户网站模版

php cms门户网站模版

PHP中文网
发布: 2016-05-23 16:38:53
原创
1730 人浏览过

1. [PHP]代码 

<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It&#39;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(&#39;/&#39;, &#39;WelcomeController@index&#39;);

Route::get(&#39;home&#39;, &#39;HomeController@index&#39;);

Route::post(&#39;/appconf&#39;, &#39;WelcomeController@appconf&#39;);
Route::get(&#39;/appconf&#39;, &#39;WelcomeController@appconf&#39;);

Route::get(&#39;law&#39;, &#39;WelcomeController@law&#39;);

Route::get(&#39;lawframe&#39;, &#39;WelcomeController@lawframe&#39;);

Route::controllers([
        &#39;auth&#39; => &#39;Auth\AuthController&#39;,
        &#39;password&#39; => &#39;Auth\PasswordController&#39;,
]);

Route::group([&#39;prefix&#39; => &#39;user&#39;, &#39;namespace&#39; => &#39;User&#39;,&#39;middleware&#39;=>&#39;user&#39;], function()
{
  Route::get(&#39;/&#39;, &#39;UserController@index&#39;);
  Route::post(&#39;/&#39;, &#39;UserController@index&#39;);
  Route::get(&#39;/edit/{id}&#39;, &#39;UserController@edit&#39;);
  Route::post(&#39;/edit/{id}&#39;, &#39;UserController@edit&#39;);
  Route::get(&#39;/update/{id}&#39;, &#39;UserController@update&#39;);
  Route::post(&#39;/update/{id}&#39;, &#39;UserController@update&#39;);
  Route::get(&#39;/history/{id}&#39;, &#39;UserController@history&#39;);
  Route::post(&#39;/history/{id}&#39;, &#39;UserController@history&#39;);

  Route::get(&#39;/wealthadd/{id}&#39;, &#39;UserController@wealthadd&#39;);
  Route::post(&#39;/wealthadd/{id}&#39;, &#39;UserController@wealthadd&#39;);

  Route::get(&#39;/dowealthadd/{id}&#39;, &#39;UserController@dowealthadd&#39;);
"app/Http/routes.php" 154L, 5664C                                      1,1          顶端
登录后复制

                   

                   

相关标签:
php
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
作者最新文章
热门推荐
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板