Beispiel #1
0
    // 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'));
});
Beispiel #2
0
    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']);
});
|--------------------------------------------------------------------------
| 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']);
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');
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]*'));
Beispiel #6
0
| 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');
Beispiel #7
0
    // 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 */
Beispiel #8
0
});
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 () {
Beispiel #9
0
<?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');
<?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();
});
Beispiel #11
0
 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');
/*
|--------------------------------------------------------------------------
| 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;
Beispiel #13
0
|
| 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']);
Beispiel #14
0
<?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']);
Beispiel #15
0
    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();
});
Beispiel #16
0
Route::get('/benzaiten', function () {
    return view('pages.words');
});
Route::get('/translate/', function () {
    return view('index');
});
Route::get('api', function () {
    $routeCollection = Route::getRoutes();
    echo "<table style='width:100%'>";
    echo "<tr>";
    echo "<td width='10%'><h4>HTTP Method</h4></td>";
    echo "<td width='10%'><h4>Route</h4></td>";
    echo "<td width='80%'><h4>Corresponding Action</h4></td>";
    echo "</tr>";
    foreach ($routeCollection as $value) {
        echo "<tr>";
        echo "<td>" . $value->getMethods()[0] . "</td>";
        echo "<td>" . $value->getPath() . "</td>";
        echo "<td>" . $value->getActionName() . "</td>";
        echo "</tr>";
    }
    echo "</table>";
});
//Route::get('/api/v1/words/', 'Words@index');
Route::get('/api/v1/words/show/{limit}', 'Words@index');
Route::get('/api/v1/words/{lang}/translations/{platform}/{product}/{format}', 'apiservice@index');
Route::get('/api/v1/words/lang/{lang}', 'Words@language');
Route::POST('/api/v1/words/save/', 'Words@edit');
Route::POST('/api/v1/words/add/', 'Words@add');
Route::POST('/api/v1/bulk/word/upload/', 'Words@UploadAndInsert');
Beispiel #17
0
<?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.
|
*/
//print App::environment();
//	$todo = Todo::create(array(
//		'todoText' => '16th Complete Database Test',
//		'done' => 0
//	));
//	$todo->save();
Route::POST('add', 'TodoController@add');
Route::POST('search', 'TodoController@search');
Route::POST('done', 'TodoController@done');
Route::POST('delete', 'TodoController@delete');
Route::controller('/', 'TodoController');
Beispiel #18
0
        Route::get('createuser', 'UserController@create');
        Route::get('edituser/{id}', 'UserController@edit');
        Route::get('user/{id}', 'UserController@show');
        Route::post('storeuser', 'UserController@save');
        Route::post('updateuser', 'UserController@update');
        Route::get('deleteuser/{id}', 'UserController@delete');
    });
    Route::get('createorders', 'OrderController@index_cus');
    //list of order that customer can be made
    Route::get('account', 'OrderController@viewordercus');
    // for user view
    // for admin view the order
    //view order one by one by ID order
    Route::get('createorder/{book_id}', 'OrderController@create');
    // create form for customer to purchase
    Route::POST('store', 'OrderController@store');
    //store order that customer made
    Route::get('editordercustomer/{id}', 'OrderController@editcus')->name('editorder');
    // should be only one person can see
    Route::post('updateorder', 'OrderController@update');
    // should be only one person can see
    Route::get('deleteorder/{id}', 'OrderController@delete');
    // should be only one person can see
    Route::auth();
    Route::get('/home', 'HomeController@index');
    Route::get('accountuser', 'OrderController@showforuser');
    // show user's order
    Route::get('/', function () {
        return view('welcome');
    });
});
Beispiel #19
0
// แสดง ทุก board
Route::get('/deleteBoard/{id}', 'BoardController@deleteBoard');
// board To Bin
Route::get('/hardDeleteBoard/{id}', 'BoardController@hardDeleteBoard');
// ลบ board
Route::get('/restoreBoard/{id}', 'BoardController@restoreBoard');
// กู้คืน board
Route::post('/getDataMember', 'BoardController@getDataMember');
Route::post('/boardComplete', 'BoardController@boardComplete');
// เปลี่ยนสถานะ เสร็จ
Route::post('/boardInComplete', 'BoardController@boardPostInComplete');
// เปลี่ยนสถานะ ไม่เสร็จ
//---------------------------------------------------------------------------------------- Card
Route::get('/cards', 'CardController@getCard');
// get card data main
Route::POST('/getCardEditData', 'CardController@getCardEditData');
Route::get('/createCard/{id}', 'CardController@formNewCard');
//สร้าง form card
Route::post('/createCard', 'CardController@createCard');
// สร้าง card
Route::get('/editCard/{idBoard}/{id}', 'CardController@editFormCard');
// แก้ไขform card อาจไม่จำเป็น
Route::post('/editCard/{id}', 'CardController@editCard');
// แก้ไข card
Route::post('/moveCard', 'CardController@moveCard');
// ย้าย card
Route::post('/removeCard', 'CardController@removeCard');
// ลบ card
Route::post('/getOneCard', 'CardController@getOneCard');
//get One Card
//------------------------------------------------------------------- Checklist
Beispiel #20
0
});
Route::get('admin/tour-list', 'Admin\\AdminTourController@getTourList')->middleware('auth', 'admin');
//Insert Tour
Route::get('admin/tour-edit', 'Admin\\AdminTourController@createTour')->middleware('auth', 'admin');
//Update tour
Route::get('admin/tour-edit/{id}', 'Admin\\AdminTourController@getTourDetail')->middleware('auth', 'admin');
//Edit tour
Route::POST('admin/tourEditor', 'Admin\\AdminTourController@tourEditor')->middleware('auth', 'admin');
//Update tour
Route::POST('admin/tourUpdate', 'Admin\\AdminTourController@tourUpdate')->middleware('auth', 'admin');
//News List
Route::get('admin/news-list', 'Admin\\AdminNewsController@getNewsList')->middleware('auth', 'admin');
//News -- Add new
Route::get('admin/news-edit', 'Admin\\AdminNewsController@createNews')->middleware('auth', 'admin');
//News -- Edit
Route::get('admin/news-edit/{id}', 'Admin\\AdminNewsController@newsDetail')->middleware('auth', 'admin');
//News Editor
Route::POST('admin/newsEditor', 'Admin\\AdminNewsController@newsEditor')->middleware('auth', 'admin');
//News Update
Route::POST('admin/newsUpdate', 'Admin\\AdminNewsController@newsUpdate')->middleware('auth', 'admin');
//Slide List
Route::get('admin/slide-list', 'Admin\\SlideController@getSlideList')->middleware('auth', 'admin');
//Slide -- Add new
Route::get('admin/slide-edit', 'Admin\\SlideController@createSlide')->middleware('auth', 'admin');
//Slide -- Edit
Route::get('admin/slide-edit/{id}', 'Admin\\SlideController@slideDetail')->middleware('auth', 'admin');
//Slide Editor
Route::POST('admin/slideEditor', 'Admin\\SlideController@slideEditor')->middleware('auth', 'admin');
//Slide Update
Route::POST('admin/slideUpdate', 'Admin\\SlideController@slideUpdate')->middleware('auth', 'admin');
Auth::routes();
Beispiel #21
0
        return View::make('pages.Admin.ManageKonten')->with('categori_id', $sub);
    }
})->before('auth');
Route::get('Admin/User/{sub?}', function ($sub = null) {
    if ($sub != "") {
        return View::make('pages.Admin.Manage' . $sub);
    }
})->before('auth');
Route::get('Admin/Module/{sub?}', function ($sub = null) {
    if ($sub != "") {
        return View::make('pages.Admin.Module.' . $sub);
    }
})->before('auth');
Route::POST('Admin/Module/{sub?}', function ($sub = null) {
    if ($sub != "") {
        return View::make('pages.Admin.Module.' . $sub);
    }
})->before('auth');
Route::get('Admin', function () {
    return View::make('pages.Admin.Adminhome');
})->before('auth');
Route::get('Admin', function () {
    return View::make('pages.Admin.Adminhome');
})->before('auth');
// Authentication
// route to show the login form
Route::get('/login', array('uses' => 'AuthController@showLogin'));
// route to process the form
Route::post('/login', array('uses' => 'AuthController@postLogin'));
// route to process the form
Route::post('change-password', array('uses' => 'AuthController@postUserPasswordChange'));
Beispiel #22
0
//PROFILE ROUTES
Route::get('profile/{name}', 'ProfileController@show');
Route::get('profile/{name}/edit', 'ProfileController@edit');
Route::post('profile/{name}/edit_callback', 'ProfileController@edit_callback');
Route::get('profile/{name}/gallery', 'ProfileController@logout');
Route::get('profile/{name}/logout', 'ProfileController@logout');
Route::post('userPost_callback', 'ProfileController@userPost_callback');
Route::post('search', 'BeerController@search');
Route::get('auth/login', 'Auth\\AuthController@login');
/*AJAX*/
Route::post('ajax/drinking_this', 'ProfileController@drinking_this');
Route::get('ajax/searchBeer', 'BeerController@ajax_search');
Route::post('ajax/commendBeer', 'BeerController@commendBeer');
Route::post('ajax/submitReview', 'BeerController@submitReview');
Route::get('ajax/ajaxCheckin', 'BeerController@ajaxCheckin');
Route::POST('ajax/userRating', 'ProfileController@userRating');
//----------------------------------------------------------------
Route::get('login/fb', function () {
    return \Socialite::with('facebook')->scopes(['email', 'user_friends', 'user_location', 'user_birthday'])->redirect();
});
//http://beerhit.com/login/fb/callback
Route::get('login/fb/callback', function () {
    $socialize_user = \Socialite::with('facebook')->user();
    $facebook_user_id = $socialize_user->getId();
    // unique facebook user id
    $user = User::where('email', $socialize_user->email)->first();
    $location = Location::get();
    $city = $location->cityName;
    $country = $location->countryName;
    //    dd($socialize_user);
    if (!$user) {
Beispiel #23
0
    Route::get('peminjaman', ['uses' => 'PeminjamanController@index', 'as' => 'peminjaman.index']);
    Route::get('peminjaman/create', ['uses' => 'PeminjamanController@create', 'as' => 'peminjaman.create']);
    Route::POST('peminjaman/store', ['uses' => 'PeminjamanController@store', 'as' => 'peminjaman.store']);
    Route::get('peminjaman/getsubkelompok', ['uses' => 'PeminjamanController@getSubKelompok', 'as' => 'get.sub']);
    Route::get('peminjaman/view/{id}', ['uses' => 'PeminjamanController@show', 'as' => 'peminjaman.view']);
    Route::get('peminjaman/return/{id}', ['uses' => 'PeminjamanController@returnSub']);
    Route::POST('peminjaman/addcart', ['uses' => 'PeminjamanController@addCart', 'as' => 'cart.add']);
    Route::GET('peminjaman/approve/{id}', ['uses' => 'PeminjamanController@approve', 'as' => 'peminjaman.approve']);
    Route::get('get_id_sub_kelompok', ['uses' => 'SubKelompokController@getSubKelompok', 'as' => 'subkelompok.getid']);
    Route::get('get_data_sub_kelompok', ['uses' => 'SubKelompokController@getDataSubKelompok', 'as' => 'subkelompok.getdata']);
    Route::get('api/barang', array('uses' => 'BarangController@apiBarang'));
    Route::get('barang', ['uses' => 'BarangController@index']);
    Route::POST('barang/store', array('uses' => 'BarangController@store'));
    Route::get('api/getidBarang', array('uses' => 'BarangController@getKodeBarang'));
    Route::get('suplier/create', ['uses' => 'SuplierController@create']);
    Route::POST('suplier/store', ['uses' => 'SuplierController@store', 'as' => 'suplier.store']);
    Route::POST('penjualan/store', ['uses' => 'PenjualanController@store', 'as' => 'penjualan.store']);
    Route::get('penjualan/create', ['uses' => 'PenjualanController@create']);
    Route::get('penjualan/apibarang', ['uses' => 'PenjualanController@apiBarang', 'as' => 'penjualan.data']);
    Route::get('penjualan/getId', ['uses' => 'PenjualanController@getId']);
    ROute::get('penjualan/cart', ['uses' => 'PenjualanController@datacart', 'as' => 'cart.data']);
    Route::get('penjualan/deletecart', ['uses' => 'PenjualanController@deletecart']);
    Route::POST('penjualan/editcart', ['uses' => 'PenjualanController@editcart']);
    Route::get('penjualan/getplg', ['uses' => 'PenjualanController@getPelanggan']);
    Route::get('laporan', ['uses' => 'PenjualanController@laporan']);
    Route::get('getlaporan', ['uses' => 'PeminjamanController@getlaporan']);
    Route::get('exportpdf', ['uses' => 'PeminjamanController@exportpdf']);
    Route::get('chart', ['uses' => 'PenjualanController@chart']);
    Route::get('getdatachart', ['uses' => 'PeminjamanController@getdatachart']);
});
Route::get('logout', array('uses' => 'UserController@logout'));
Beispiel #24
0
| 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('auth/login', 'Auth\\AuthController@getLogin');
Route::post('auth/login', 'Auth\\AuthController@postLogin');
Route::get('auth/logout', 'Auth\\AuthController@getLogout');
Route::get('auth/register', 'Auth\\AuthController@getRegister');
Route::post('auth/register', 'Auth\\AuthController@postRegister');
Route::controllers(['password' => 'Auth\\PasswordController']);
Route::group(['middleware' => 'auth'], function () {
    Route::get('/', 'QuizController@index');
    Route::get('/home', 'QuizController@index');
    Route::resource('Quiz', 'QuizController');
    Route::resource('Question', 'QuestionController');
    Route::GET('listQuiz', 'QuizController@listQuiz');
    Route::POST('Quiz/start', 'QuizController@start');
    Route::POST('Quiz/submit', 'QuizController@submit');
    Route::POST('Quiz/{id}/update', 'QuizController@QuizUpdate');
    Route::GET('ShowQuizResults', 'QuizController@showResults');
    Route::resource('Users', 'UsersController');
    Route::POST('Users/{id}', 'UsersController@updateUser');
    Route::POST('Users/{id}/restore', 'UsersController@restore');
    Route::resource('Class', 'ClassController');
    Route::GET('JoinClass', 'ClassController@joinClass');
    Route::POST('JoinClass', 'ClassController@joined');
    Route::GET('ShowClass', 'ClassController@showClass');
    Route::GET('ShowClassQuiz/{$id}', 'ClassController@showClassQuiz');
    Route::GET('ShowQC/{$id}', 'ClassController@showClassQuiz');
});
Beispiel #25
0
    Route::group(['before' => 'is_vendedor'], function () {
        //VIEW layout ENTREGA ENTRADA (VENTAS ONLINE)
        Route::get('administrador/preventascanje', ['as' => 'canjeEntradas', 'uses' => 'AdministradorController@canjeEntradas']);
        //VERIFICAR CODIGO->ENTREGA DE ENTRADAS (VENTAS ONLINE)
        Route::post('administrador/preventascanje', ['as' => 'canjeVerificar', 'uses' => 'AdministradorController@canjeVerificar']);
        //ENTREGAR ENTRADA FISICA (VENTAS ONLINE)
        Route::post('administrador/preventaentregar', ['as' => 'canjear', 'uses' => 'AdministradorController@canjear']);
        //VIEW LAYOUT VENTA ENTRADA FISICA
        Route::get('administrador/ventaEntradaFisica', ['as' => 'ventaEntradaFisica', 'uses' => 'AdministradorController@ventaEntradaFisica']);
        //VERIFICAR CODIGO->VENTA ENTRADAS FISICAS
        Route::post('administrador/ventaEntradaFisica', ['as' => 'entradaFisicaVerificar', 'uses' => 'AdministradorController@entradaFisicaVerificar']);
        //ENTREGAR ENTRADA FISICA / VENTA FISICA
        Route::post('administrador/ventaEntregar', ['as' => 'venderEntradaFisica', 'uses' => 'AdministradorController@venderEntradaFisica']);
        Route::post('administrador/preventabusquedaentrega', ['as' => 'canjearBusqueda', 'uses' => 'AdministradorController@canjearBusqueda']);
        Route::get('administrador/buscarusuario', ['as' => 'showbuscar', 'uses' => 'AdministradorController@showbuscar']);
        Route::POST('administrador/buscarusuario', ['as' => 'usuariobuscar', 'uses' => 'AdministradorController@usuariobuscar']);
    });
});
Route::get('eventos/peliculas', ['as' => 'eventopelicula', 'uses' => 'PeliculasController@tipoPelicula']);
Route::get('eventos/conciertos', ['as' => 'eventoconcierto', 'uses' => 'PeliculasController@tipoConcierto']);
Route::get('eventos/partidos', ['as' => 'eventopartido', 'uses' => 'PeliculasController@tipoPartido']);
Route::get('{slug}/{id}', ['as' => 'pelicula', 'uses' => 'PeliculasController@show']);
Route::post('{slug}/{id}', ['as' => 'continuetobuy', 'uses' => 'PeliculasController@continueToBuy']);
Route::get('evento/comprar/{sale_id}', ['as' => 'buy', 'uses' => 'PeliculasController@showToBuy']);
Route::post('evento/comprar/{sale_id}', ['as' => 'buyByTigoMoney', 'uses' => 'PeliculasController@buyByTigoMoney']);
Route::get('walkwaytigo/successful', ['as' => 'tigosuccessful', 'uses' => 'PeliculasController@getSuccessful']);
Route::get('walkwaytigo/failed', ['as' => 'tigofailed', 'uses' => 'PeliculasController@getFailed']);
Route::post('login', ['as' => 'login', 'uses' => 'AuthController@login']);
Route::post('login', ['as' => 'loginToBuy', 'uses' => 'AuthController@loginToBuy']);
Route::get('logout', ['as' => 'logout', 'uses' => 'AuthController@logout']);
Route::get('sign-up', ['as' => 'sign_up', 'uses' => 'UsersController@signUp']);
Beispiel #26
0
 Route::get('employee.show', ['as' => 'showemployee', 'uses' => 'EmployeeController@api_showemployee']);
 Route::get('employee.listposition', ['as' => 'listposition', 'uses' => 'EmployeeController@api_listposition']);
 Route::post('employee.update', ['as' => 'updateemployee', 'uses' => 'EmployeeController@api_updateemployee']);
 Route::post('employee.delete', ['as' => 'deleteemployee', 'uses' => 'EmployeeController@api_deleteemployee']);
 Route::post('employee.add', ['as' => 'addemployee', 'uses' => 'EmployeeController@api_addemployee']);
 Route::get('items.index', ['as' => 'itemindex', 'uses' => 'ProjectController@view']);
 Route::post('items.update', ['as' => 'itemupdate', 'uses' => 'ProjectController@update']);
 Route::post('items.delete', ['as' => 'itemdelete', 'uses' => 'ProjectController@destroy']);
 Route::post('adduser', ['as' => 'adduser', 'uses' => 'userController@add']);
 /*--------- Project --------------*/
 //route::get('projects', 'ProjectController@index');
 Route::get('projects/getteam/{id}', ['as' => 'projects.getteam', 'uses' => 'ProjectController@getTeam']);
 Route::get('projects/getusers/{id}', ['as' => 'projects.getusers', 'uses' => 'ProjectController@getUsers']);
 Route::get('projects/getstatus', ['as' => 'projects.getstatus', 'uses' => 'ProjectController@getStatus']);
 Route::get('projects/getgroups', ['as' => 'projects.getgroups', 'uses' => 'ProjectController@getGroups']);
 Route::POST('projects/team', ['as' => 'projects.team', 'uses' => 'ProjectController@storeTeam']);
 Route::PUT('projects/team/{id}', ['as' => 'projects.team', 'uses' => 'ProjectController@updateTeam']);
 Route::DELETE('projects/team/{id}', ['as' => 'projects.team', 'uses' => 'ProjectController@destroyTeam']);
 Route::resource('projects', 'ProjectController');
 /*--------- End Project --------------*/
 Route::get('/', ['as' => 'index', 'uses' => 'PageController@index']);
 Route::get('configures', ['as' => 'configures.index', 'uses' => 'ConfigureController@index']);
 Route::post('configures/update', ['as' => 'configures.update', 'uses' => 'ConfigureController@update']);
 Route::resource('users', 'UserController');
 Route::resource('groups', 'GroupController');
 Route::get('groups/{id}/permission', array('as' => 'groups.permission', 'uses' => 'GroupController@getPermission'));
 Route::post('groups/{id}/permission', array('as' => 'groups.permission', 'uses' => 'GroupController@postPermission'));
 Route::resource('features', 'FeatureController');
 Route::resource('modules', 'ModuleController');
 Route::get('showtree/{id}', 'ModuleController@showtree');
 Route::get('parent', ['as' => 'post-parent', 'uses' => 'FeatureController@postFeature']);
Beispiel #27
0
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in 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::POST('login', 'WelcomeController@login');
Route::get('email', 'EmailController@testemail');
Route::get('amazon', 'EmailController@testamazon');
Route::get('/register/verify/{confirmationcode}', 'HomeController@confirm');
/* 
|--------------------------------------------------------------------------
| 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::auth();
    Route::get('/', 'WelcomeController@index');
    Route::POST('home', 'WelcomeController@home');
    Route::get('test', 'TestController@test');
    Route::get('/home', 'HomeController@index');
    Route::get('/verify', 'HomeController@verify');
});
Route::put('catalogo/update/{id}', 'CatalogoController@update');
//Ruta para consultar todos los paises
Route::get('paises', function () {
    return Pais::all()->toJson();
});
//Ruta en la cual retornamos los estados relaccionados con el id del pais
Route::POST('estados', function () {
    return Estado::where('pais_id', '=', Input::get('pais'))->get();
});
Route::POST('municipios', function () {
    return Municipio::where('estado_id', '=', Input::get('estado'))->get();
});
Route::get('productos/estado/{id}', 'ProductoController@estado');
//Ruta para registrar pedido
Route::POST('productos/nuevopedido/{id}', 'ProductoController@nuevopedido');
Route::POST('productos/pedidoexistente/{id}', 'ProductoController@pedidoexistente');
//Editar domicilio
Route::get('productos/editar/{uddom}', 'ProductoController@editar');
//Actualizar domiclio
Route::post('productos/actualizar', 'ProductoController@actualizar');
//Verificar teléfonos
Route::post('productos/getVerificarTel', 'ProductoController@getVerificarTel');
//Detalle del pedido
Route::get('productos/datosdelpedido/{iddom}', 'ProductoController@datosdelpedido');
//	Listar pedidos del cliente
Route::POST('productos/listarpedidos', 'ProductoController@listarpedidos');
Route::POST('productos/detalledelpedido', 'ProductoController@detalledelpedido');
//Imprimir pdf
Route::get('productos/imprimirpedido/{iddom}', 'ProductoController@imprimirpedido');
Route::get('salidas/listar', 'AdminController@listp');
Route::get('salidas/listarp', 'AdminController@listarp');
Beispiel #29
0
Route::GET('github/login', function () {
    SocialAuth::login('github', function ($user, $userdetails) {
        var_dump($userdetails);
        $user->email = $userdetails->email;
        $user->id = $userdetails->id;
        $user->save();
    });
    return "DONE ";
});
Route::GET('google/authorize', function () {
    return SocialAuth::authorize('google');
});
Route::GET('google/login', function () {
    SocialAuth::login('google', function ($user, $userdetails) {
        dd($userdetails);
    });
    return "DONE ";
});
// API Version 1.0
Route::group(['prefix' => 'api/v1', 'namespace' => 'Api\\V1'], function () {
    /*Getting json bookings data*/
    Route::GET('/bookings', 'ApiController@bookingsApi');
    /*Getting json cars listing */
    Route::GET('/cars', 'ApiController@carsApi');
    /*Getting the json price listing*/
    Route::GET('/price', 'ApiController@priceApi');
    /*Getting Extra Data listing*/
    Route::GET('/extra', 'ApiController@extraApi');
    /*Posting the Data taken from the bookings form*/
    Route::POST('/bookings_submit', 'ApiController@bookingSubmitApi');
});
Beispiel #30
0
Route::group(['middleware' => ['web']], function () {
    Route::get('/', ['as' => 'FrontController', 'uses' => 'FrontController@index']);
    Route::get('/Prod/{id}/{slug?}', ['as' => 'Product', 'uses' => 'FrontController@showProduct']);
    Route::get('/Tag/{id}', ['as' => 'Tag', 'uses' => 'FrontController@showProductByTag']);
    Route::get('/cat/{id}/{slug?}', ['as' => 'category', 'uses' => 'FrontController@showProductByCategory']);
    Route::get('/contact', ['as' => 'contact_home', 'uses' => 'FrontController@showContact']);
    Route::post('storeContact', ['as' => 'contact', 'uses' => 'FrontController@storeContact']);
    Route::get('/logout', ['as' => 'logout', 'uses' => 'LoginController@logout']);
    Route::get('/registerUser', ['as' => 'registerUser', 'uses' => 'LoginController@registerUser']);
    Route::post('/saveuser', ['as' => 'saveuser', 'uses' => 'LoginController@saveUser']);
    Route::get('/mentions', ['as' => 'mentions', 'uses' => 'FrontController@mentions']);
    Route::group(['middleware' => ['throttle:20,1']], function () {
        Route::any('/login', ['as' => 'login', 'uses' => 'LoginController@login']);
    });
    Route::post('/cde/{id}', ['as' => 'cdeproduct', 'uses' => 'CommandeController@cdeproduct']);
    Route::get('/panier', ['as' => 'showpanier', 'uses' => 'CommandeController@showpanier']);
    Route::get('/panier/{id}', ['as' => 'deleteproduct', 'uses' => 'CommandeController@deleteproduct']);
    Route::POST('/majqte', ['as' => 'majqte', 'uses' => 'CommandeController@majqte']);
    Route::group(['middleware' => ['auth', 'admin']], function () {
        Route::resource('product', 'ProductController');
        Route::get('product/status/{id}', ['as' => 'changestatus', 'uses' => 'ProductController@changestatus']);
        Route::get('product/destroy/{id}', ['as' => 'destroy', 'uses' => 'ProductController@destroy']);
        Route::get('/history', ['as' => 'history', 'uses' => 'DashboardController@showHistory']);
    });
    Route::group(['middleware' => 'auth'], function () {
        Route::any('/registerCustomer', ['as' => 'registerCustomer', 'uses' => 'LoginController@registerCustomer']);
        Route::post('/saveCustomer', ['as' => 'saveCustomer', 'uses' => 'LoginController@saveCustomer']);
        Route::get('/commande', ['as' => 'commande', 'uses' => 'CommandeController@cde']);
        Route::get('/savecde', ['as' => 'savecde', 'uses' => 'CommandeController@savecde']);
    });
});