Settle on Facades in service providers.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php namespace App\Providers;
|
||||
|
||||
use Illuminate\Contracts\Logging\Log;
|
||||
use Log;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class LogServiceProvider extends ServiceProvider {
|
||||
@@ -8,12 +8,11 @@ class LogServiceProvider extends ServiceProvider {
|
||||
/**
|
||||
* Configure the application's logging facilities.
|
||||
*
|
||||
* @param Log $log
|
||||
* @return void
|
||||
*/
|
||||
public function boot(Log $log)
|
||||
public function boot()
|
||||
{
|
||||
$log->useFiles(storage_path().'/logs/laravel.log');
|
||||
Log::useFiles(storage_path().'/logs/laravel.log');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user