title: Kyslik/column sortable package, sort is not working but pagination is okay
body: <p>Model:</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  use Kyslik\ColumnSortable\Sortable;
  
  class Exam_sched extends Model
  {
      use Sortable;
  
      protected $fillable = ['date', 'startTime', 'endTime', 'roomNo', 'batch_id', 'subject_id'];
  
      public $sortable = [
          'id', 'date', 'startTime', 'endTime', 'roomNo', 'batch_id', 'subject_id', 'created_at'
      ];
  
       public function subject(){
        return $this-&gt;belongsTo('\App\Subject','subject_id');
      }
      public function batch(){
        return $this-&gt;belongsTo('\App\Batch','batch_id');
      }
  }
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public function index()
      {
          $exam_scheds= Exam_sched::sortable()-&gt;paginate(3);
          return view('examschedule',compact('exam_scheds'));
      }
  
      /**
       * Show the form for creating a new resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function create()
      {
          $exam_scheds=Exam_sched::sortable()-&gt;paginate(3);
          $subjects=Subject::all();
          $batches=Batch::all();
          return view('examschedule', compact('exam_scheds','subjects','batches'));
      }
  </code></pre>
  
  <p>view Blade:</p>
  
  <pre><code>&lt;div class="row schedule-form"&gt;
          &lt;div class="col-lg-10 offset-lg-1"&gt;
              &lt;table class="table table-striped "&gt;
                  &lt;thead&gt;
                      &lt;tr class="thead"&gt;
                          &lt;th style="width: 150px"&gt;@sortablelink('Exam Date')&lt;/th&gt;
                          &lt;th style="width: 100px"&gt;@sortablelink('Batch')&lt;/th&gt;
                          &lt;th style="width: 100px"&gt;@sortablelink('Subject')&lt;/th&gt;
                          &lt;th style="width: 110px"&gt;@sortablelink('Room No')&lt;/th&gt;
                          &lt;th&gt;@sortablelink('Start Time')&lt;/th&gt;
                          &lt;th&gt;@sortablelink('End Time')&lt;/th&gt;
                          &lt;th&gt;@sortablelink('Created At')&lt;/th&gt;
                              @auth
                              @if(Auth::user()-&gt;role_id == 1)
                          &lt;th&gt;Action&lt;/th&gt;                     
                              @endif
                              @endauth
  
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody&gt;
                      @if($exam_scheds-&gt;count())
                      @foreach($exam_scheds as $exam_sched)
                      &lt;tr class="tbody"&gt;
                          &lt;td&gt;{{$exam_sched-&gt;date}}&lt;/td&gt;
                          &lt;td&gt;{{$exam_sched-&gt;batch-&gt;name}}&lt;/td&gt;
                          &lt;td&gt;{{$exam_sched-&gt;subject-&gt;name}}&lt;/td&gt;
                          &lt;td&gt;{{$exam_sched-&gt;roomNo}}&lt;/td&gt;                        
                          &lt;td&gt;{{$exam_sched-&gt;startTime}}&lt;/td&gt;
                          &lt;td&gt;{{$exam_sched-&gt;endTime}}&lt;/td&gt;   
                          &lt;td&gt;{{$exam_sched-&gt;created_at-&gt;diffForHumans()}}&lt;/td&gt;                   
  
                      &lt;/tr&gt;
                      @endforeach
                      @endif
                  &lt;/tbody&gt;
              &lt;/table&gt;
                   {!! $exam_scheds-&gt;appends(\Request::except('page'))-&gt;render() !!}
          &lt;/div&gt;      
  </code></pre>
  
  <p>App.Php:</p>
  
  <pre><code>'providers' =&gt; [
  
          /*
           * Laravel Framework Service Providers...
           */
          Illuminate\Auth\AuthServiceProvider::class,
          Illuminate\Broadcasting\BroadcastServiceProvider::class,
          Illuminate\Bus\BusServiceProvider::class,
          Illuminate\Cache\CacheServiceProvider::class,
          Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
          Illuminate\Cookie\CookieServiceProvider::class,
          Illuminate\Database\DatabaseServiceProvider::class,
          Illuminate\Encryption\EncryptionServiceProvider::class,
          Illuminate\Filesystem\FilesystemServiceProvider::class,
          Illuminate\Foundation\Providers\FoundationServiceProvider::class,
          Illuminate\Hashing\HashServiceProvider::class,
          Illuminate\Mail\MailServiceProvider::class,
          Illuminate\Notifications\NotificationServiceProvider::class,
          Illuminate\Pagination\PaginationServiceProvider::class,
          Illuminate\Pipeline\PipelineServiceProvider::class,
          Illuminate\Queue\QueueServiceProvider::class,
          Illuminate\Redis\RedisServiceProvider::class,
          Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
          Illuminate\Session\SessionServiceProvider::class,
          Illuminate\Translation\TranslationServiceProvider::class,
          Illuminate\Validation\ValidationServiceProvider::class,
          Illuminate\View\ViewServiceProvider::class,
  
          /*
           * Package Service Providers...
           */
          Kyslik\ColumnSortable\ColumnSortableServiceProvider::class,
  
          /*
           * Application Service Providers...
           */
          App\Providers\AppServiceProvider::class,
          App\Providers\AuthServiceProvider::class,
          // App\Providers\BroadcastServiceProvider::class,
          App\Providers\EventServiceProvider::class,
          App\Providers\RouteServiceProvider::class,
  
  
      ],
  </code></pre>
  
  <p>Kyslik/column sortable package, sort is not working but pagination is okay. 
  Anyone here Please help me ...thank you!</p>
  
  <p>Kyslik/column sortable package, sort is not working but pagination is okay. 
  Anyone here Please help me ...thank you!
  Kyslik/column sortable package, sort is not working but pagination is okay. 
  Anyone here Please help me ...thank you!</p>