首頁 > 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
作者最新文章
熱門推薦
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板