本文整理汇总了PHP中Storage::append方法的典型用法代码示例。如果您正苦于以下问题:PHP Storage::append方法的具体用法?PHP Storage::append怎么用?PHP Storage::append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Storage
的用法示例。
在下文中一共展示了Storage::append方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: log
/**
* 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: log
/**
* 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: function
<?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');
}]);