Customers Add+Edit, API WP

This commit is contained in:
Kevin Adametz 2020-06-12 14:46:51 +02:00
parent dc63fa9fb2
commit 75a0f9a38a
120 changed files with 11894 additions and 6134 deletions

View file

@ -8,7 +8,6 @@ use Auth;
use Carbon\Carbon;
use Config;
use Request;
use Input;
use Util;
class HomeController extends Controller
@ -48,8 +47,8 @@ class HomeController extends Controller
public function loadingModal(){
$data = Input::get('data');
$target = Input::get('target');
$data = Request::get('data');
$target = Request::get('target');
$response = "";
if($data === "data_protection"){
@ -203,7 +202,7 @@ class HomeController extends Controller
*/
public function checkMail(){
$data = Input::all();
$data = Request::all();
if($data['user_id'] === "new"){
if(User::where('email', $data['email'])->count()){
return json_encode(false);