How to count total results with ajax? – Laravel
Have a problem with total count of ajax searche's results. There is a mistake "Method IlluminateDatabaseEloquentCollection::total does not exist." if I use directive for example <div class="searched-item"> <a href="#" class="searched-item-res1">{{ __('main.res_found') }} {{$sfilms->total()}} {{ __('main.res_results') }}</a> </div> How to fix…