title: Ambiguous class resolution in laravel phpexcel update
body: <p>I try to update the laravel with php excel while installing i found the below warning in the composer.</p>
  
  <p><strong>Error:</strong> </p>
  
  <pre><code>Warning: Ambiguous class resolution, "SettingsController" was found in both 
  
  "C:\xampp\htdocs\mti\app\controllers\SettingsController.php" and 
  
  "C:\xampp\htdocs\mti\app\controllers\SettingsControllerBackup.php", the first 
  
  will be used.Warning: Ambiguous class resolution, "ClassModel" was found in both
  
  "C:\xampp\htdocs\mti\app\models\ClassModel.php" and "C:\xampp\htdocs\mti\
  
  app\models\LoginModel.php", the first will be used.
  </code></pre>
  
  <p><strong>SettingsController:</strong></p>
  
  <pre><code>&lt;?php
  
  class SettingsController extends BaseController
  {
  
      public function ChangePasswordLayout()
      {
          return View::make('settings/changepassword/changepassword');
      }
  
      public function ChangePasswordProcess()
      {
          $PasswordData = Input::all();
  
          Validator::extend('pwdvalidation', function($field, $value, $parameters)
          {
              return Hash::check($value, Auth::user()-&gt;password);
          });
  
          $messages = array('pwdvalidation' =&gt; 'The Old Password is Incorrect');
  
          $validator = Validator::make($PasswordData, User::$rulespwd, $messages);
          if ($validator-&gt;passes()) 
          {
              $user = User::find(Auth::user()-&gt;id);
              $user-&gt;password = Hash::make(Input::get('NewPassword'));
              $user-&gt;save();
              return Redirect::to('changepassword')-&gt;withInput()-&gt;with('Messages', 'The Password Information was Updated');
          } else 
          {
              return Redirect::to('changepassword')-&gt;withInput()-&gt;withErrors($validator);
          }
  
      }
  
      public function ProfileLayout()
      {
          $user = Auth::user()-&gt;id;
          $ProfileDetailsbyid = ProfileModel::where('id', $user)-&gt;get()-&gt;toArray();   
          return View::make('settings/profile/profile')-&gt;with('ProfileDetailsbyid', $ProfileDetailsbyid);
      }
  
      public function ProfileUpdateProcess($data=NULL)
      {
  
      $user = Auth::user()-&gt;id;
      $ProfileDetailsbyid = ProfileModel::where('id', $user)-&gt;get()-&gt;toArray();
  
          $ProfileData = array_filter(Input::except(array('_token')));
  
        $validation  = Validator::make($ProfileData, ProfileModel::$rules);        
          if ($validation-&gt;passes()) 
          {
  
          if(!empty($ProfileData['Photo']))
      {
      Input::file('Photo')-&gt;move('assets/uploads/profilephoto/', $user . '-Photo.' . Input::file('Photo')-&gt;getClientOriginalName());
      $Photo=$user.'-Photo.' . Input::file('Photo')-&gt;getClientOriginalName();
      unset($ProfileData['Photo']);
      $ProfileData['Photo']=$Photo;
      }
  
             $affectedRows = ProfileModel::where('id', $user)-&gt;update($ProfileData);
              //VehicleModel::create($VehicleData);
              return Redirect::to('profile')-&gt;with('Message', 'Profile Details Update Succesfully')-&gt;with('ProfileDetailsbyid', $ProfileDetailsbyid);
          } else 
          {
  
              return Redirect::to('profile')-&gt;withInput()-&gt;withErrors($validation-&gt;messages())-&gt;with('ProfileDetailsbyid', $ProfileDetailsbyid);
          }
      }
  
  
  }
  </code></pre>
  
  <p><strong>ClassModel:</strong></p>
  
  <pre><code>&lt;?php
  class ClassModel extends Eloquent
  {
  
      protected $primaryKey = 'AutoID';
      protected $created_at = 'CreatedAt';
      protected $updated_at = 'UpdatedAt';
      protected $table = 'class';
      protected $guarded = array('GradeName');
      protected $fillable = array('GradeName');
  
      public function batch(){
          return $this-&gt;hasMany('BatchModel', 'Class');
      }
  
      public function studentadmissionresult(){
          return $this-&gt;hasMany('StudentAdmissionModel', 'StudentCourse');
      }
  
      public $timestamps = true;
  
  
  
      public static $rules = array(
          'GradeName' =&gt;  array('required', 'unique:class','regex:/^./'),
          'GradeSection' =&gt; 'required',
          'GradeCode' =&gt; array('required', 'unique:class')
                               );
       public static $updaterules = array(
          'GradeName' =&gt;  array('required','regex:/^./'),
          'GradeSection' =&gt; 'required',
          'GradeCode' =&gt; array('required')
                               );                      
  
  }
  </code></pre>
  
  <p><strong>I following this  tutorial:</strong></p>
  
  <p><a href="https://github.com/Maatwebsite/Laravel-Excel" rel="noreferrer">https://github.com/Maatwebsite/Laravel-Excel</a></p>
  
  <p><strong>I have try following command :</strong></p>
  
  <pre><code>composer require maatwebsite/excel": "~1.2.1
  </code></pre>