示例#1
0
 /**
  * Log web services errors
  * @param string $message
  */
 public function log($message, $error = true)
 {
     $path = $error ? WebServiceCore::SERVICE_ERROR_LOG : WebServiceCore::SERVICE_LOG;
     \Storage::append($path, $message);
 }
示例#2
0
 /**
  * Log web services errors
  * @param string $message
  */
 public function log($message, $error = true)
 {
     $path = $error ? self::SERVICE_ERROR_LOG : self::SERVICE_LOG;
     \Storage::append($path, $message);
 }
示例#3
0
<?php

/*temporary login for writing login*/
use Illuminate\Support\Facades\Auth;
//Auth::loginUsingId(1);
//---------------------------------
Event::listen('illuminate.query', function ($query) {
    //echo "<pre>";
    //print_r($query); echo "</pre>";
    Storage::append('q.log', $query);
});
/*
|--------------------------------------------------------------------------
| 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('/', ['as' => 'home', 'uses' => 'Landing@index']);
Route::get('/buyerregistration', ['as' => 'buyerregistration', function () {
    return view('buyerregistration');
}]);
Route::get('/owarehouse', ['as' => 'owarehouse', function () {
    return view('owarehouse');
}]);
Route::get('/SMM', ['as' => 'SMM', function () {
    return view('SMM');
}]);