title: AttributeRepository::create($x) must be compatible with
body: <p>Hello I'm working on a small project using Laravel and for the first time i'm using Repositories pattern, but i got an error,</p>
  <p>my interface:</p>
  <pre><code>&lt;?php
  
  namespace App\Repositories\Attribute;
  
  interface AttributeRepositoryInterface
  {
      public function create();
      public function update();
  }
  </code></pre>
  <p>This is my Repository class:</p>
  <pre><code>&lt;?php
  
  namespace App\Repositories\Attribute;
  
  use App\Repositories\Core\DataStructure;
  
  class AttributeRepository extends DataStructure implements AttributeRepositoryInterface
  {
      
  
      public function create($x){
          return $x-&gt;paginate();
      }
  
      public function update(){
          
      }
  }
  </code></pre>
  <p>This is my Controller :</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Models\Attribute\Attribute;
  use App\Models\Contact\Person;
  
  use App\Repositories\Attribute\AttributeRepositoryInterface;
  
  class LabController extends Controller
  {
  
      protected $attributeRepository;
  
      public function __construct(AttributeRepositoryInterface $attributeRepository){
          $this-&gt;attributeRepository = $attributeRepository;
          $q =  Attribute::all();
          $this-&gt;attributeRepository-&gt;create($q);
      }
  </code></pre>
  <p>Error i'm getting :</p>
  <pre><code>Declaration of App\Repositories\Attribute\AttributeRepository::create($x) must be compatible with App\Repositories\Attribute\AttributeRepositoryInterface::create() 
  </code></pre>