예제 #1
0
 /**
  * Process datatables ajax request.
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function anyData()
 {
     return Datatables::of(Employee::select('*'))->make(true);
 }
예제 #2
0
 public function __construct()
 {
     $this->branchid = Auth::user()->branchid;
     $this->employees = Employee::select('id')->where('branchid', $this->branchid)->where('empstatus', '>', '0')->get();
 }