Esempio n. 1
0
    print Hash::make($mypass);
});
Route::get('xtest', function () {
    Excel::load('WEBSITE_INVESTORS_ALLIANCE.xlsx')->calculate()->dump();
});
Route::get('xcat', function () {
    print_r(Prefs::getCategory());
});
Route::get('barcode/dl/{txt}', function ($txt) {
    $barcode = new Barcode();
    $barcode->make($txt, 'code128', 60, 'horizontal', true);
    return $barcode->render('jpg', $txt, true);
});
Route::get('barcode/{txt}', function ($txt) {
    $barcode = new Barcode();
    $barcode->make($txt, 'code128', 60, 'horizontal', true);
    return $barcode->render('jpg', $txt);
});
Route::get('media', function () {
    $media = Product::all();
    print $media->toJson();
});
Route::get('login', function () {
    return View::make('login');
});
Route::post('login', function () {
    // validate the info, create rules for the inputs
    $rules = array('email' => 'required|email', 'password' => 'required|alphaNum|min:3');
    // run the validation rules on the inputs from the form
    $validator = Validator::make(Input::all(), $rules);
    // if the validator fails, redirect back to the form