本文整理汇总了PHP中Route::POST方法的典型用法代码示例。如果您正苦于以下问题:PHP Route::POST方法的具体用法?PHP Route::POST怎么用?PHP Route::POST使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Route
的用法示例。
在下文中一共展示了Route::POST方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
// check if the user approved or denied the authorization request
if (!empty($input['approve'])) {
$code = AuthorizationServer::newAuthorizeRequest('user', $params['user_id'], $params);
Session::forget('authorize-params');
return Redirect::to(AuthorizationServer::makeRedirectWithCode($code, $params));
} else {
if (!empty($input['deny'])) {
Session::forget('authorize-params');
return Redirect::to(AuthorizationServer::makeRedirectWithError($params));
} else {
return "Error processing form";
}
}
}));
/**
* Route url with any v# to the resource controller, let IoC Dependency injection determine proper version of API to inject
*/
Route::group(array('prefix' => 'api/{v1}'), function () {
// Manually define resource routes to catch all resource end points
// Retrieve data
Route::GET('{route}', array('as' => 'api.{v1}.{route}.index', 'uses' => 'ResourceController@index'));
Route::GET('{route}/{id}', array('as' => 'api.{v1}.{route}.show', 'uses' => 'ResourceController@show'));
// Retrive Forms for Create/Update
Route::GET('{route}/create', array('as' => 'api.{v1}.{route}.create', 'uses' => 'ResourceController@create'));
Route::GET('{route}/{id}/edit', array('as' => 'api.{v1}.{route}.edit', 'uses' => 'ResourceController@edit'));
// Modify Existing Data Create/Update/Edit/Delete
Route::POST('{route}', array('as' => 'api.{v1}.{route}.store', 'uses' => 'ResourceController@store'));
Route::PUT('{route}/{id}', array('as' => 'api.{v1}.{route}.update', 'uses' => 'ResourceController@update'));
Route::PATCH('{route}/{id}', 'ResourceController@update');
Route::DELETE('{route}/{id}', array('as' => 'api.{v1}.{route}.destroy', 'uses' => 'ResourceController@destroy'));
});
示例2: array
Route::POST('cart/jual', array('uses' => 'PenjualanController@addCart', 'as' => 'add.cart'));
Route::post('laporan/penjualan', ['uses' => 'PenjualanController@getData']);
Route::get('penjualan/laporan', ['uses' => 'PenjualanController@laporan']);
Route::get('api/penjualan', ['uses' => 'PenjualanController@apiJual']);
Route::get('penjualan', array('uses' => 'PenjualanController@index'));
Route::get('penjualan/cart/delete/{id}', array('uses' => 'PenjualanController@deletecart'));
Route::get('penjualan/cart', array('uses' => 'PenjualanController@cart'));
Route::POST('penjualan/store', array('uses' => 'PenjualanController@store', 'as' => 'penjualan.store'));
Route::get('barang/api', array('uses' => 'PenjualanController@apiBarang'));
Route::get('pelanggan/api', array('uses' => 'PenjualanController@apiPelanggan'));
Route::get('penjualan/struk', array('uses' => 'PenjualanController@faktur'));
Route::DELETE('penjualan/delete/{id}', ['uses' => 'PenjualanController@destroy']);
Route::get('penjualan/resetCart', ['uses' => 'PenjualanController@resetCart']);
Route::get('penjualan/show/{id}', ['uses' => 'PenjualanController@show']);
Route::get('penjualan/delete/{id}', ['uses' => 'PenjualanController@hapus']);
Route::get('pelanggan', array('uses' => 'PelangganController@index'));
Route::get('api/pelanggan', array('uses' => 'PelangganController@apiPelanggan'));
Route::get('api/getId', ['uses' => 'PelangganController@idPelanggan']);
Route::DELETE('pelanggan/delete/{id}', ['uses' => 'PelangganController@destroy']);
Route::POST('pelanggan/store', ['uses' => 'PelangganController@store']);
Route::get('pelanggan/edit/{id}', array('uses' => 'PelangganController@edit'));
Route::PUT('pelanggan/update/{id}', ['uses' => 'PelangganController@update', 'as' => 'pelanggan.update']);
Route::get('suplier', array('uses' => 'SuplierController@index'));
Route::get('api/suplier', array('uses' => 'SuplierController@apiSuplier'));
Route::get('api/getIdSuplier', ['uses' => 'SuplierController@idSuplier']);
Route::DELETE('suplier/delete/{id}', ['uses' => 'SuplierController@destroy']);
Route::POST('suplier/store', ['uses' => 'SuplierController@store']);
Route::get('suplier/edit/{id}', array('uses' => 'SuplierController@edit'));
Route::PUT('suplier/update/{id}', ['uses' => 'SuplierController@update', 'as' => 'suplier.update']);
Route::get('logout', ['uses' => 'UserController@logout']);
});
示例3: function
|--------------------------------------------------------------------------
| 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.
|
*/
//// Authentication routes...
//Route::get('login', 'Auth\AuthController@getLogin');
//Route::post('login', 'Auth\AuthController@postLogin');
//Route::get('logout', 'Auth\AuthController@getLogout');
//
//// Registration routes...
//Route::get('register', 'Auth\AuthController@getRegister');
//Route::post('register', 'Auth\AuthController@postRegister');
Route::group(['prefix' => '/', 'namespace' => 'Admin', 'middleware' => 'auth'], function () {
Route::get('', ['as' => 'home', function () {
return redirect()->to('clientes');
}]);
Route::get('reporte', 'PdfController@transacciones');
Route::resource('clientes', 'ClientesController');
Route::resource('pagos', 'PagosController');
Route::resource('tipoMonedas', 'TipoMonedas');
Route::resource('sincronizar', 'SincronizarController');
Route::resource('bitacora', 'BitacorasController');
Route::POST('bitacoraPagos', 'BitacorasController@pagos');
Route::get('sendData/{id}', 'SincronizarController@enviarDatos');
});
Route::controllers(['auth' => 'Authentication\\AuthController']);
示例4:
Route::get('categorie/{id}', 'HomeController@showCategorieBooks');
//Authors
Route::get('authors', 'AuthorsController@index');
Route::get('authors/create', 'AuthorsController@create');
Route::get('authors/{id}', 'AuthorsController@show');
Route::post('authors/create', 'AuthorsController@store');
Route::get('authors/books/{id}', 'AuthorsController@showAuthorsBooks');
//Books
Route::get('books', ['middleware' => 'admin', 'uses' => 'BooksController@index']);
Route::get('books/create', 'BooksController@create');
Route::post('books/create', 'BooksController@store');
Route::get('books/{id}', 'BooksController@show');
Route::get('books/{id}/edit', 'BooksController@edit');
Route::patch('books/{id}', 'BooksController@update');
Route::delete('books/{id}', 'BooksController@destroy');
//messages
Route::post('messages', 'messagesController@setMessages');
//######## PayPal ###########
//Route::resource('payment', 'PaypalPaymentController');
Route::post('payment', 'PaypalPaymentController@store');
Route::get('payment/ExecutePayment', 'PaypalPaymentController@ExecutePayment');
//PayPal Logs
Route::get('admin/logs', ['middleware' => 'admin', 'uses' => 'LogsController@index']);
//Carts
Route::post('carts', 'CartController@store');
Route::get('carts', 'CartController@index');
Route::delete('carts/{id}', 'CartController@destroy');
//Rating
Route::get('rating/{id}', 'RatingController@show');
Route::POST('rating', 'RatingController@store');
示例5: array
Route::POST('processing-create-view', array('uses' => 'BooksController@createViewBook', 'as' => 'processing-create-viewBook'));
//processing view from /yourbook to /yourbook/view/{bookCode}
Route::POST('processing-cancel', array('uses' => 'BooksController@cancelBook', 'as' => 'processing-cancelBook'));
//processing cancel book
//processing book view from yourbook
Route::POST('processing-create-view', array('uses' => 'YourbooksController@checkBook', 'as' => 'processing-view-book'));
//send question (faq) email from faq
Route::POST('processing-faq', array('uses' => 'FaqsController@sendQuestion', 'as' => 'processing-question'));
//send question (cancel book) email from view book
Route::POST('processiong-question', array('uses' => 'YourbooksController@sendEmail', 'as' => 'processing-ask-question'));
//send question email from about us
Route::POST('processing-contactus', array('uses' => 'AboutusController@sendEmail', 'as' => 'processing-contact'));
//create testimonial
Route::POST('processing-feedback', array('uses' => 'TestimonialsController@createFeedback', 'as' => 'processing-testimonial'));
//register newslleter
Route::POST('processing-newsletter', array('uses' => 'NewslettersController@createNewsletter', 'as' => 'processing-newsletter-signup'));
//route to backend
Route::get('/backend', function () {
ob_start();
require path('admin/build') . "index.php";
return ob_get_clean();
});
Route::get("/backend", function () {
return Redirect::to("admin/build/index.php");
});
//Route::get('post/listing', array('uses' => 'PostController@listing', 'as' => 'post.listing'));
//Route::get('post/single', array('uses' => 'PostController@single', 'as' => 'post.single'));
//Route::group(array('before'=>'auth'), function(){
// Route::get('post/listing', array('uses' => 'PostController@listing', 'as' => 'get.post.listing'));
// Route::get('post/{id}', array('uses' => 'PostController@single', 'as' => 'get.post.single'))->where(array('id' => '[1-9][0-9]*', 'slug' => '[a-zA-Z0-9-_]+'));
// Route::post('post/{id}', array('uses' => 'PostController@update', 'as' => 'post.post.update'))->where(array('id' => '[1-9][0-9]*'));
示例6: function
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
Route::group(['middleware' => ['web']], function () {
Route::POST('login', ['middleware' => 'guest', 'uses' => 'Auth\\AuthController@login']);
Route::GET('login', ['middleware' => 'guest', 'uses' => 'Auth\\AuthController@showLoginForm']);
Route::GET('logout', 'Auth\\AuthController@logout');
Route::POST('password/email', 'Auth\\PasswordController@sendResetLinkEmail');
Route::POST('password/reset ', 'Auth\\PasswordController@reset');
Route::GET('password/reset/{token?}', 'Auth\\PasswordController@showResetForm');
Route::POST('register', 'Auth\\AuthController@register');
Route::GET('register', 'Auth\\AuthController@showRegistrationForm');
Route::get('/', 'PagesController@home');
Route::get('/home', 'PagesController@home');
Route::get('/about', 'PagesController@about');
Route::get('/contact', 'TicketsController@create');
Route::post('/contact', 'TicketsController@store');
Route::get('/tickets', ['middleware' => 'auth', 'uses' => 'TicketsController@index']);
Route::get('/ticket/{slug?}', 'TicketsController@show');
Route::get('/ticket/{slug?}/edit', 'TicketsController@edit');
Route::post('/ticket/{slug?}/edit', 'TicketsController@update');
Route::post('/ticket/{slug?}/delete', 'TicketsController@destroy');
Route::post('/comment', 'CommentsController@newComment');
Route::get('auth/{provider}', 'Auth\\AuthController@redirectToProvider');
Route::get('auth/{provider}/callback', 'Auth\\AuthController@handleProviderCallback');
Route::get('/profile', 'ProfileController@show');
示例7: function
// Inprogress
Route::get('/{dept}/closed', ['as' => 'dept.closed.ticket', 'uses' => 'Agent\\helpdesk\\TicketController@deptclose']);
// Closed
});
/*
|------------------------------------------------------------------
|Guest Routes
|--------------------------------------------------------------------
| Here defining Guest User's routes
|
|
*/
// seasrch
Route::POST('tickets/search/', function () {
$keyword = Illuminate\Support\Str::lower(Input::get('auto'));
$models = App\Model\Ticket\Tickets::where('ticket_number', '=', $keyword)->orderby('ticket_number')->take(10)->skip(0)->get();
$count = count($models);
return Illuminate\Support\Facades\Redirect::back()->with("contents", $models)->with("counts", $count);
});
Route::any('getdata', function () {
$term = Illuminate\Support\Str::lower(Input::get('term'));
$data = Illuminate\Support\Facades\DB::table("tickets")->distinct()->select('ticket_number')->where('ticket_number', 'LIKE', $term . '%')->groupBy('ticket_number')->take(10)->get();
foreach ($data as $v) {
return ['value' => $v->ticket_number];
}
});
Route::get('getform', ['as' => 'guest.getform', 'uses' => 'Client\\helpdesk\\FormController@getForm']);
/* get the form for create a ticket by guest user */
Route::post('postform/{id}', 'Client\\helpdesk\\FormController@postForm');
/* post the AJAX form for create a ticket by guest user */
Route::post('postedform', 'Client\\helpdesk\\FormController@postedForm');
/* post the form to store the value */
示例8: function
});
Route::any('/dictionary/index', function () {
$keyword = Input::get('auto');
$models = Word::where('word', '=', $keyword)->orderby('word')->take(10)->skip(0)->get();
$count = count($models);
return View::make('/Dictionary/index')->with("contents", $models)->with("counts", $count);
});
Route::any('index', function () {
$keyword = Input::get('auto');
$models = Word::where('word', '=', $keyword)->orderby('word')->take(10)->skip(0)->get();
$count = count($models);
return View::make('Dictionary.index')->with("contents", $models)->with("counts", $count);
});
Route::POST('words/means/', function () {
$keyword = Str::lower(Input::get('auto'));
$models = Word::where('word', '=', $keyword)->orderby('word')->take(10)->skip(0)->get();
$count = count($models);
return View::make('Dictionary.definition.means')->with("contents", $models)->with("counts", $count);
});
// 3: create this route to process the user input (Input::get('term')) in the database query.
Route::any('getdata', function () {
$term = Str::lower(Input::get('term'));
// 4: check if any matches found in the database table
$data = DB::table("words")->distinct()->select('word')->where('word', 'LIKE', $term . '%')->groupBy('word')->take(10)->get();
foreach ($data as $v) {
$return_array[] = array('value' => $v->word);
}
// if matches found it first create the array of the result and then convert it to json format so that
// it can be processed in the autocomplete script
return Response::json($return_array);
});
Route::any('/thesaurus', function () {
示例9: function
<?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('/', function () {
return view('crud/index');
});
//Route::get('/', 'crud@index');
Route::get('/home', 'crud@user_list');
Route::get('/view', 'crud@view');
Route::POST('/save_user', 'crud@save_user');
Route::get('/edit/{id}', 'crud@edit');
Route::get('/delete/{id}', 'crud@delete');
Route::POST('/update_user', 'crud@update_user');
Route::get('/login', 'crud@login');
Route::POST('/logon_user', 'crud@logon_user');
示例10: function
<?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 Closure to execute when that URI is requested.
|
*/
Route::get('/', function () {
return View::make('listas');
});
//Ruta para consultar todos los paises
Route::get('paises', function () {
return ListaPaises::all()->toJson();
});
//Ruta en la cual retornamos los estados relaccionados con el id del pais
Route::POST('estados', function () {
return ListaEstados::where('id_pais', '=', Input::get('pais'))->get();
});
示例11: function
Route::get('/pointConfiguration/delete/{A}', 'PointConfigController@destroy');
//Route::resource('/ais/tagofpoint/{A}', 'PointConfigController@searchTagOfPoint');
Route::resource('/ais/serverSetting', 'ServController');
Route::get('/ais/serverSetting/store', 'ServController@store');
/* End General Menu */
/*
Route::get('/ais/login', function(){
return view('ais.login');
});
*/
// Ajax
Route::get('/ajax/mmtrends/list', 'Ajax\\TrendDesignAjax@listMmTrend');
Route::get('/ajax/mmtrend/get', 'Ajax\\TrendDesignAjax@getMmTrend');
Route::get('/ajax/mmtrend/findById', 'Ajax\\TrendDesignAjax@getMmTrendById');
Route::POST('/ajax/mmtrend/move', 'Ajax\\TrendDesignAjax@moveTrend');
Route::POST('/ajax/mmtrend/copy', 'Ajax\\TrendDesignAjax@copyTrend');
Route::get('/ajax/mmname/get', 'Ajax\\TrendDesignAjax@getMmname');
Route::post('/ajax/mmtrend/post', 'Ajax\\TrendDesignAjax@postMmTrend');
Route::post('/ajax/mmname/post', 'Ajax\\TrendDesignAjax@postMmname');
Route::delete('/ajax/mmname/delete', 'Ajax\\TrendDesignAjax@deleteMmname');
Route::delete('/ajax/mmtrend/delete', 'Ajax\\TrendDesignAjax@deleteMmtrend');
Route::post('/ajax/mmname/search', 'Ajax\\TrendDesignAjax@postMmname');
Route::post('/ajax/mmpoint/search', 'Ajax\\TrendDesignAjax@searchMmpoint');
Route::get('/ajax/multipledb/get', 'Ajax\\TrendDesignAjax@mulipleDB');
Route::post('/ajax/mmpoint/get', 'Ajax\\PointDesignAjax@getMmPoint');
Route::post('/ajax/addmmpoint/search', 'Ajax\\TrendDesignAjax@searchAddPointMmpoint');
Route::post('/ajax/addmmpoint/doAdd', 'Ajax\\TrendDesignAjax@doAddPointMmpoint');
Route::post('/ajax/mmtag/get', 'Ajax\\TrendDesignAjax@getMmTag');
Route::post('/ajax/mmtag/validate', 'Ajax\\TagAjax@validateTag');
Route::post('/ajax/constant/search', 'Ajax\\ConstantAjax@search');
Route::post('/ajax/constant/post', 'Ajax\\ConstantAjax@post');
示例12: function
/*
|--------------------------------------------------------------------------
| 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('/', 'WelcomeController@index');
Route::get('home', 'HomeController@index');
Route::post('login', 'LoginController@login');
Route::post('remember', 'LoginController@remember');
Route::post('loginCheck', 'LoginController@check');
Route::POST('logout', 'LoginController@logOut');
Route::post('signup', 'SignupController@signup');
Route::post('changePassword', 'SignupController@changePassword');
Route::post('verify', 'VerifyController@verify');
Route::post('verifyUser', 'VerifyController@verifyUser');
Route::post('loadCandidates', 'StartController@loadCandidates');
Route::post('signUpCandidate', 'StartController@createCandidate');
Route::post('signUpCitizen', 'StartController@createCitizen');
Route::get('/map', function () {
/*if(Auth::attempt(Request::only('user','password'))){
return Auth::user();
}else{
return 'invalid username/pass combo';
}*/
$user = Request::header();
return $user;
示例13: function
|
| 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('/user', function () {
$user = \App\User::where("id", "<", "10")->get();
return Response::json(['user' => $user], 200);
});
//Route::get('/test', function(){
// $header = \Illuminate\Support\Facades\Request::header('token');
// return Response::json(['token' => $header], 200);
//});
Route::post('register', 'ShineController@register');
Route::post('login', 'ShineController@login');
Route::post('facebooklogin', 'ShineController@facebookLogin');
Route::post('update', 'ShineController@update')->middleware(['AccessTokenMiddleware']);
Route::get('schools', 'ShineController@getSchools');
Route::get('user', 'ShineController@getUser')->middleware(['AccessTokenMiddleware']);
Route::get('users', 'ShineController@getUsers')->middleware(['AccessTokenMiddleware']);
Route::get('photos', 'ShineController@getPhotos')->middleware(['AccessTokenMiddleware']);
Route::get('/test', 'ShineController@test');
Route::POST('CheckUser', 'ShineController@checkUser');
Route::get('fetchCurrentUser', 'ShineController@fetchCurrentUser')->middleware(['AccessTokenMiddleware']);
Route::get('getTopSchools', 'ShineController@getTopSchools');
Route::get('getTopStudents', 'ShineController@getTopStudents');
Route::post('vote', 'ShineController@vote')->middleware(['AccessTokenMiddleware']);
Route::get('notif', 'ShineController@notif');
Route::post('SavePhoto', 'ShineController@savePhoto')->middleware(['AccessTokenMiddleware']);
Route::post('DeletePhoto', 'ShineController@deletePhoto')->middleware(['AccessTokenMiddleware']);
示例14: function
<?php
Route::group(['prefix' => 'admin', 'where' => ['id' => '[0-9]+']], function () {
Route::group(['prefix' => 'categories', 'where' => ['id' => '[0-9]+']], function () {
Route::get('/', ['as' => 'categories', 'uses' => 'AdminCategoriesController@index']);
Route::get('/create', ['as' => 'categorias.create', 'uses' => 'AdminCategoriesController@create']);
Route::POST('/store', ['as' => 'categorias.store', 'uses' => 'AdminCategoriesController@store']);
Route::get('/{id}/destroy', ['as' => 'categorias.destroy', 'uses' => 'AdminCategoriesController@destroy']);
Route::get('/{id}/edit', ['as' => 'categorias.edit', 'uses' => 'AdminCategoriesController@edit']);
Route::post('/{id}/update', ['as' => 'categorias.update', 'uses' => 'AdminCategoriesController@update']);
Route::post('/', 'AdminCategoriesController@store');
});
Route::group(['prefix' => 'products'], function () {
Route::get('/', ['as' => 'products', 'uses' => 'AdminProductsController@index']);
Route::get('/create', ['as' => 'products.create', 'uses' => 'AdminProductsController@create']);
Route::post('/store', ['as' => 'products.store', 'uses' => 'AdminProductsController@store']);
Route::get('/{id}/edit', ['as' => 'products.edit', 'uses' => 'AdminProductsController@edit']);
Route::get('/{id}/destroy', ['as' => 'products.destroy', 'uses' => 'AdminProductsController@destroy']);
Route::post('/{id}/update', ['as' => 'products.update', 'uses' => 'AdminProductsController@update']);
Route::group(['prefix' => 'images'], function () {
Route::get('/{id}/product', ['as' => 'products.images', 'uses' => 'AdminProductsController@images']);
Route::get('create/{id}/product', ['as' => 'products.images.create', 'uses' => 'AdminProductsController@createImage']);
Route::post('create/{id}/product', ['as' => 'products.images.store', 'uses' => 'AdminProductsController@storeImage']);
});
});
});
Route::get('/', ['as' => 'home', 'uses' => 'AdminHomeController@index']);
示例15: function
Route::get('/', ['as' => 'prestamos', 'uses' => 'PrestamosController@Prestamos']);
Route::get('consumo', ['as' => 'consumo', 'uses' => 'PrestamosController@Consumo']);
Route::post('consumo/{id}', ['as' => 'SearchConsumo', 'uses' => 'PrestamosController@SearchConsumo'])->where('id', '[0-9]+');
Route::get('vehicular', ['as' => 'vehicular', 'uses' => 'PrestamosController@Vehicular']);
Route::post('vehicular/{id}', ['as' => 'SearchVehicular', 'uses' => 'PrestamosController@SearchVehicular'])->where('id', '[0-9]+');
Route::get('hipotecario', ['as' => 'hipotecario', 'uses' => 'PrestamosController@Hipotecario']);
Route::post('hipotecario/{id}', ['as' => 'SearchHipotecario', 'uses' => 'PrestamosController@SearchHipotecario'])->where('id', '[0-9]+');
});
//DEPOSITOS
Route::group(array('prefix' => 'depositos'), function () {
Route::get('/', ['as' => 'depositos', 'uses' => 'DepositosController@Depositos']);
Route::get('fondosmutuos', ['as' => 'fondosmutuos', 'uses' => 'DepositosController@FondosMutuos']);
Route::post('fondosmutuos', ['as' => 'SearchFondosmutuos', 'uses' => 'DepositosController@SearchFondosmutuos'])->where('id', '[0-9]+');
Route::get('ahorro', ['as' => 'ahorro', 'uses' => 'DepositosController@Ahorro']);
Route::post('ahorro/{id}', ['as' => 'SearchAhorro', 'uses' => 'DepositosController@SearchAhorro'])->where('id', '[0-9]+');
Route::get('cts', ['as' => 'cts', 'uses' => 'DepositosController@Cts']);
Route::post('cts/{id}', ['as' => 'SearchCts', 'uses' => 'DepositosController@SearchCts'])->where('id', '[0-9]+');
Route::get('depositosplazo', ['as' => 'depositosplazo', 'uses' => 'DepositosController@DepositosPlazo']);
Route::post('depositosplazo/{id}', ['as' => 'SearchDepositosplazo', 'uses' => 'DepositosController@SearchPlazo'])->where('id', '[0-9]+');
});
//ADMIN
Route::group(array('prefix' => 'admin'), function () {
Route::get('/', ['as' => 'inicioAdmin', 'uses' => 'PanelAdminController@getInicio']);
});
//COMPOS DEPENDIENTES - FONDOS MUTUOS
Route::get('Producto', function () {
return BechBank\Entities\Producto::where('Codigo_Producto', '>=', 7)->get();
});
Route::POST('SubProducto', function () {
return BechBank\Entities\SubProducto::where('Codigo_Producto', '=', Input::get('idproducto'))->get();
});