Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a custom config class to be used via class_alias #112

Merged
merged 1 commit into from
Nov 7, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allow a custom config class to be used via class_alias
  • Loading branch information
ivelrrat authored and levitarr committed Nov 7, 2014
commit b1522cc81c53a33181b94c3ad9bcdd2e668edc57
3 changes: 1 addition & 2 deletions src/Venturecraft/Revisionable/Revision.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php namespace Venturecraft\Revisionable;

use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Config;
use Illuminate\Database\Eloquent\Model as Eloquent;

/**
Expand Down Expand Up @@ -182,7 +181,7 @@ public function userResponsible()
|| class_exists($class = '\Cartalyst\Sentinel\Laravel\Facades\Sentinel')) {
return $class::findUserById($this->user_id);
} else {
$user_model = Config::get('auth.model');
$user_model = \Config::get('auth.model');

return $user_model::find($this->user_id);
}
Expand Down