Last active
December 29, 2015 22:49
-
-
Save waqasraza123/3e16e23904e31d419722 to your computer and use it in GitHub Desktop.
this is the error FatalErrorException in AppServiceProvider.php line 15: Class 'App\Providers\UserInfo' not found
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
include_once __DIR__."/../../../registration/php/user_info.php"; | |
use Illuminate\Support\ServiceProvider; | |
use Auth; | |
class AppServiceProvider extends ServiceProvider { | |
protected $currentUser, $allUsers; | |
protected $userInfo; | |
public function __construct() | |
{ | |
$this->userInfo = new UserInfo(); //here is error | |
$currentUser = $this->userInfo->module_user_id(Auth::user()->id, "./problem_sharing"); | |
$allUsers = $this->userInfo->module_users("delta", "./problem_sharing"); | |
} | |
/** | |
* Bootstrap any application services. | |
* | |
* @return void | |
*/ | |
public function boot() | |
{ | |
//return $userInfoFile; | |
//return __DIR__."/../../../registration/php/user_info.php"; | |
//pass the request id that is currently being viewed | |
$str = $_SERVER['PHP_SELF']; | |
$id = preg_replace('/\D/', '', $str); | |
view()->share(['id' => $id, 'currentUser' => $this->currentUser, 'allUsers' => $this->allUsers]); | |
} | |
/** | |
* Register any application services. | |
* | |
* This service provider is a great spot to register your various container | |
* bindings with the application. As you can see, we are registering our | |
* "Registrar" implementation here. You can add your own bindings too! | |
* | |
* @return void | |
*/ | |
public function register() | |
{ | |
$this->app->bind( | |
'Illuminate\Contracts\Auth\Registrar', | |
'App\Services\Registrar' | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment