title: Getting wrong data from database even if I am fetching something different in laravel api
body: <p>Hello guys I am working on a laravel project for making api for passing the database value in json format but the problem is I have a users table in this table 2 ids 1 is primary key and second is business _id I want to get data according to business_id but it's getting data by id please help me how to solve this issue.</p>
  
  <p>Here is my model code</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class user extends Model
  {
      protected $table = 'business';
  
  }
  </code></pre>
  
  <p>Here is my Controller Code</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use App\user;
  
  class GetController extends Controller
  {
      public function databybusinessid($business _id){
      $users = new user();
      $users = user::find($business _id);
      return response()-&gt;json($users);
  }
  }
  </code></pre>
  
  <p>Thank you so much</p>