Updated/removed facades

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-05-29 12:53:51 +01:00
parent f17162c2e2
commit 92ba889cae
7 changed files with 5 additions and 12 deletions

View file

@ -31,7 +31,6 @@ use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
use App\Http\Requests\ImageUploadRequest;
use Illuminate\Support\Facades\Log;
use Input;
use Paginator;
use Slack;
use Str;

View file

@ -11,12 +11,10 @@ use App\Models\CustomField;
use App\Models\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Facades\Validator;
use Redirect;
use Illuminate\Http\Request;
use Storage;
use Illuminate\Support\Facades\Storage;
use Symfony\Component\HttpFoundation\JsonResponse;
use Illuminate\Support\Facades\Log;

View file

@ -19,7 +19,6 @@ use Illuminate\Http\Request;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\Facades\Response;
use Illuminate\Support\Facades\View;
use Input;
use League\Csv\Reader;
use Symfony\Component\HttpFoundation\StreamedResponse;
use League\Csv\EscapeFormula;

View file

@ -4,7 +4,6 @@ namespace App\Http\Controllers\Users;
use App\Helpers\Helper;
use App\Http\Controllers\Controller;
use App\Http\Controllers\UserNotFoundException;
use App\Http\Requests\ImageUploadRequest;
use App\Http\Requests\SaveUserRequest;
use App\Models\Actionlog;
@ -18,11 +17,9 @@ use Illuminate\Support\Facades\Auth;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Password;
use Input;
use Redirect;
use Str;
use Symfony\Component\HttpFoundation\StreamedResponse;
use View;
use App\Notifications\CurrentInventory;
/**
@ -152,7 +149,7 @@ class UsersController extends Controller
$user->notify(new WelcomeNotification($data));
}
return redirect::route('users.index')->with('success', trans('admin/users/message.success.create'));
return redirect()->route('users.index')->with('success', trans('admin/users/message.success.create'));
}
return redirect()->back()->withInput()->withErrors($user->getErrors());

View file

@ -6,7 +6,7 @@ use App\Models\CustomField;
use Livewire\Component;
use App\Models\Import;
use Storage;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Log;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;

View file

@ -2,7 +2,7 @@
namespace App\Http\Requests;
use Session;
use Illuminate\Support\Facades\Session;
class SettingsLdapRequest extends Request
{

View file

@ -6,8 +6,8 @@ use App\Models\Setting;
use App\Models\User;
use Exception;
use Illuminate\Database\Eloquent\Model;
use Input;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Crypt;
/***********************************************
* TODOS: