Example #1
0
 public function __construct(User $user)
 {
     $this->user = $user;
     Database::connect();
 }
Example #2
0
 public function __construct($uname)
 {
     DB::connect();
     $this->uname = $uname;
 }