Answers for "contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Maatwebsite\Excel\Concerns\FromQuery::query)"

PHP
0

contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Maatwebsite\Excel\Concerns\FromQuery::query)

namespace App\Exports;

use App\Models\User;
use Maatwebsite\Excel\Concerns\FromQuery;

class UsersExport implements FromQuery
{
    use Exportable;

    public function query()
    {
        return User::query();
    }
}
Posted by: Guest on October-05-2021

Code answers related to "contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Maatwebsite\Excel\Concerns\FromQuery::query)"

Browse Popular Code Answers by Language