In laravel I want protect cell, but a get error Class 'App\Http\Controllers\PHPExcel_Style_Protection' not found, I use MaatWebsite class. this my code
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Maatwebsite\Excel\Facades\Excel;
class ExportExcellDaftarhadirController extends Controller
{
Excel::create('exsport', function($excel) {
$excel->sheet('Daftar', function($sheet){
$sheet->getProtection()->setPassword('password');
$sheet->getProtection()->setSheet(true);
$sheet->getStyle('A12:B20')->getProtection()->setLocked(PHPExcel_Style_Protection::PROTECTION_UNPROTECTED);
$sheet->loadView('export_excell.daftarhadirujian')
});
})->export('xls');
}
via edel