Convert Input
to Request
facade
Laravel 5.2 no longer registers the `Input` facade by default. While still available in Laravel 5, the `Input` facade is removed in Laravel 6.
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Api\v1;
|
namespace App\Api\v1;
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use App\Http\Controllers\Agent\helpdesk\TicketController as CoreTicketController;
|
use App\Http\Controllers\Agent\helpdesk\TicketController as CoreTicketController;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\helpdesk\TicketRequest;
|
use App\Http\Requests\helpdesk\TicketRequest;
|
||||||
@@ -1418,7 +1419,7 @@ class ApiController extends Controller
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$v = \Validator::make(
|
$v = \Validator::make(
|
||||||
\Input::get(),
|
Input::all(),
|
||||||
[
|
[
|
||||||
'email' => 'required|email|unique:users',
|
'email' => 'required|email|unique:users',
|
||||||
'ticket_id' => 'required',
|
'ticket_id' => 'required',
|
||||||
@@ -1451,7 +1452,7 @@ class ApiController extends Controller
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$v = \Validator::make(
|
$v = \Validator::make(
|
||||||
\Input::get(),
|
Input::all(),
|
||||||
[
|
[
|
||||||
'ticket_id' => 'required',
|
'ticket_id' => 'required',
|
||||||
]
|
]
|
||||||
@@ -1483,7 +1484,7 @@ class ApiController extends Controller
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$v = \Validator::make(
|
$v = \Validator::make(
|
||||||
\Input::get(),
|
Input::all(),
|
||||||
[
|
[
|
||||||
'ticketid' => 'required',
|
'ticketid' => 'required',
|
||||||
'email' => 'required',
|
'email' => 'required',
|
||||||
|
@@ -15,7 +15,7 @@ use App\Model\helpdesk\Ticket\Tickets;
|
|||||||
use App\User;
|
use App\User;
|
||||||
use Auth;
|
use Auth;
|
||||||
use Hash;
|
use Hash;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Mail;
|
use Mail;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -407,15 +407,15 @@ class TicketController extends Controller
|
|||||||
try {
|
try {
|
||||||
$ticket = $ticket->where('id', '=', $ticket_id)->first();
|
$ticket = $ticket->where('id', '=', $ticket_id)->first();
|
||||||
|
|
||||||
$ticket->sla = Input::get('sla_plan');
|
$ticket->sla = Request::get('sla_plan');
|
||||||
$ticket->help_topic_id = Input::get('help_topic');
|
$ticket->help_topic_id = Request::get('help_topic');
|
||||||
$ticket->source = Input::get('ticket_source');
|
$ticket->source = Request::get('ticket_source');
|
||||||
$ticket->priority_id = Input::get('ticket_priority');
|
$ticket->priority_id = Request::get('ticket_priority');
|
||||||
$ticket->status = Input::get('status');
|
$ticket->status = Request::get('status');
|
||||||
$ticket->save();
|
$ticket->save();
|
||||||
|
|
||||||
$threads = $thread->where('ticket_id', '=', $ticket_id)->first();
|
$threads = $thread->where('ticket_id', '=', $ticket_id)->first();
|
||||||
$threads->title = Input::get('subject');
|
$threads->title = Request::get('subject');
|
||||||
$threads->save();
|
$threads->save();
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
$result = $ex->getMessage();
|
$result = $ex->getMessage();
|
||||||
@@ -436,7 +436,7 @@ class TicketController extends Controller
|
|||||||
public function assign($id)
|
public function assign($id)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$UserEmail = Input::get('user');
|
$UserEmail = Request::get('user');
|
||||||
//dd($UserEmail);
|
//dd($UserEmail);
|
||||||
// $UserEmail = 'sujitprasad12@yahoo.in';
|
// $UserEmail = 'sujitprasad12@yahoo.in';
|
||||||
$user = User::where('email', '=', $UserEmail)->first();
|
$user = User::where('email', '=', $UserEmail)->first();
|
||||||
@@ -613,7 +613,7 @@ class TicketController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function autosearch()
|
public function autosearch()
|
||||||
{
|
{
|
||||||
$term = \Input::get('term');
|
$term = Request::get('term');
|
||||||
$user = \App\User::where('email', 'LIKE', '%'.$term.'%')->orWhere('first_name', 'LIKE', '%'.$term.'%')->orWhere('last_name', 'LIKE', '%'.$term.'%')->orWhere('user_name', 'LIKE', '%'.$term.'%')->pluck('email');
|
$user = \App\User::where('email', 'LIKE', '%'.$term.'%')->orWhere('first_name', 'LIKE', '%'.$term.'%')->orWhere('last_name', 'LIKE', '%'.$term.'%')->orWhere('user_name', 'LIKE', '%'.$term.'%')->pluck('email');
|
||||||
|
|
||||||
return $user;
|
return $user;
|
||||||
@@ -627,8 +627,8 @@ class TicketController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function useradd()
|
public function useradd()
|
||||||
{
|
{
|
||||||
$email = Input::get('email');
|
$email = Request::get('email');
|
||||||
$ticket_id = Input::get('ticket_id');
|
$ticket_id = Request::get('ticket_id');
|
||||||
$company = $this->company();
|
$company = $this->company();
|
||||||
$user = new User();
|
$user = new User();
|
||||||
$user->user_name = $email;
|
$user->user_name = $email;
|
||||||
@@ -661,8 +661,8 @@ class TicketController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function userremove()
|
public function userremove()
|
||||||
{
|
{
|
||||||
$email = Input::get('email');
|
$email = Request::get('email');
|
||||||
$ticketid = Input::get('ticketid');
|
$ticketid = Request::get('ticketid');
|
||||||
$user = new User();
|
$user = new User();
|
||||||
$user = $user->where('email', $email)->first();
|
$user = $user->where('email', $email)->first();
|
||||||
$ticket_collaborator = Ticket_Collaborator::where('ticket_id', '=', $ticketid)
|
$ticket_collaborator = Ticket_Collaborator::where('ticket_id', '=', $ticketid)
|
||||||
@@ -680,7 +680,7 @@ class TicketController extends Controller
|
|||||||
public function getCollaboratorForTicket()
|
public function getCollaboratorForTicket()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$ticketid = Input::get('ticket_id');
|
$ticketid = Request::get('ticket_id');
|
||||||
|
|
||||||
$ticket_collaborator = \DB::table('users')
|
$ticket_collaborator = \DB::table('users')
|
||||||
->join('ticket_collaborator', function ($join) use ($ticketid) {
|
->join('ticket_collaborator', function ($join) use ($ticketid) {
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
namespace App\Http\Controllers\Admin\helpdesk;
|
namespace App\Http\Controllers\Admin\helpdesk;
|
||||||
|
|
||||||
// controller
|
// controller
|
||||||
|
use Illuminate\Support\Facades\Request;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
// request
|
// request
|
||||||
|
|
||||||
@@ -56,13 +57,13 @@ class ErrorAndDebuggingController extends Controller
|
|||||||
$debug = ($debug) ? 'true' : 'false';
|
$debug = ($debug) ? 'true' : 'false';
|
||||||
$bugsnag_debug = \Config::get('app.bugsnag_reporting');
|
$bugsnag_debug = \Config::get('app.bugsnag_reporting');
|
||||||
$bugsnag_debug = ($bugsnag_debug) ? 'true' : 'false';
|
$bugsnag_debug = ($bugsnag_debug) ? 'true' : 'false';
|
||||||
if ($debug != \Input::get('debug') || $bugsnag_debug != \Input::get('bugsnag')) {
|
if ($debug != Request::get('debug') || $bugsnag_debug != Request::get('bugsnag')) {
|
||||||
// dd($request->input());
|
// dd($request->input());
|
||||||
$debug_new = base_path().DIRECTORY_SEPARATOR.'.env';
|
$debug_new = base_path().DIRECTORY_SEPARATOR.'.env';
|
||||||
$datacontent = File::get($debug_new);
|
$datacontent = File::get($debug_new);
|
||||||
$datacontent = str_replace(
|
$datacontent = str_replace(
|
||||||
'APP_DEBUG='.$debug,
|
'APP_DEBUG='.$debug,
|
||||||
'APP_DEBUG='.\Input::get('debug'),
|
'APP_DEBUG='.Request::get('debug'),
|
||||||
$datacontent
|
$datacontent
|
||||||
);
|
);
|
||||||
File::put($debug_new, $datacontent);
|
File::put($debug_new, $datacontent);
|
||||||
@@ -72,7 +73,7 @@ class ErrorAndDebuggingController extends Controller
|
|||||||
$datacontent2 = File::get($bugsnag_debug_new);
|
$datacontent2 = File::get($bugsnag_debug_new);
|
||||||
$datacontent2 = str_replace(
|
$datacontent2 = str_replace(
|
||||||
'APP_BUGSNAG='.$bugsnag_debug,
|
'APP_BUGSNAG='.$bugsnag_debug,
|
||||||
'APP_BUGSNAG='.\Input::get('bugsnag'),
|
'APP_BUGSNAG='.Request::get('bugsnag'),
|
||||||
$datacontent2
|
$datacontent2
|
||||||
);
|
);
|
||||||
File::put($bugsnag_debug_new, $datacontent2);
|
File::put($bugsnag_debug_new, $datacontent2);
|
||||||
|
@@ -14,7 +14,7 @@ use Form;
|
|||||||
// Class
|
// Class
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use Lang;
|
use Lang;
|
||||||
use Redirect;
|
use Redirect;
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@ use File;
|
|||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Illuminate\Support\Facades\Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
use Illuminate\Support\Facades\Session;
|
use Illuminate\Support\Facades\Session;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Lang;
|
use Lang;
|
||||||
use UnAuth;
|
use UnAuth;
|
||||||
use Validator;
|
use Validator;
|
||||||
@@ -134,9 +134,9 @@ class LanguageController extends Controller
|
|||||||
try {
|
try {
|
||||||
// getting all of the post data
|
// getting all of the post data
|
||||||
$file = [
|
$file = [
|
||||||
'File' => Input::file('File'),
|
'File' => Request::file('File'),
|
||||||
'language-name' => Input::input('language-name'),
|
'language-name' => Request::input('language-name'),
|
||||||
'iso-code' => Input::input('iso-code'),
|
'iso-code' => Request::input('iso-code'),
|
||||||
];
|
];
|
||||||
|
|
||||||
// setting up rules
|
// setting up rules
|
||||||
@@ -155,14 +155,14 @@ class LanguageController extends Controller
|
|||||||
|
|
||||||
//Checking if package already exists or not in lang folder
|
//Checking if package already exists or not in lang folder
|
||||||
$path = base_path('resources/lang');
|
$path = base_path('resources/lang');
|
||||||
if (in_array(strtolower(Input::get('iso-code')), scandir($path))) {
|
if (in_array(strtolower(Request::get('iso-code')), scandir($path))) {
|
||||||
|
|
||||||
//sending back with error message
|
//sending back with error message
|
||||||
Session::flash('fails', Lang::get('lang.package_exist'));
|
Session::flash('fails', Lang::get('lang.package_exist'));
|
||||||
Session::flash('link', 'change-language/'.strtolower(Input::get('iso-code')));
|
Session::flash('link', 'change-language/'.strtolower(Request::get('iso-code')));
|
||||||
|
|
||||||
return Redirect::back()->withInput();
|
return Redirect::back()->withInput();
|
||||||
} elseif (! array_key_exists(strtolower(Input::get('iso-code')), Config::get('languages'))) {//Checking Valid ISO code form Languages.php
|
} elseif (! array_key_exists(strtolower(Request::get('iso-code')), Config::get('languages'))) {//Checking Valid ISO code form Languages.php
|
||||||
//sending back with error message
|
//sending back with error message
|
||||||
Session::flash('fails', Lang::get('lang.iso-code-error'));
|
Session::flash('fails', Lang::get('lang.iso-code-error'));
|
||||||
|
|
||||||
@@ -170,13 +170,13 @@ class LanguageController extends Controller
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
// checking file is valid.
|
// checking file is valid.
|
||||||
if (Input::file('File')->isValid()) {
|
if (Request::file('File')->isValid()) {
|
||||||
$name = Input::file('File')->getClientOriginalName(); //uploaded file's original name
|
$name = Request::file('File')->getClientOriginalName(); //uploaded file's original name
|
||||||
$destinationPath = base_path('public/uploads/'); // defining uploading path
|
$destinationPath = base_path('public/uploads/'); // defining uploading path
|
||||||
$extractpath = base_path('resources/lang').'/'.strtolower(Input::get('iso-code')); //defining extracting path
|
$extractpath = base_path('resources/lang').'/'.strtolower(Request::get('iso-code')); //defining extracting path
|
||||||
mkdir($extractpath); //creating directroy for extracting uploadd file
|
mkdir($extractpath); //creating directroy for extracting uploadd file
|
||||||
//mkdir($destinationPath);
|
//mkdir($destinationPath);
|
||||||
Input::file('File')->move($destinationPath, $name); // uploading file to given path
|
Request::file('File')->move($destinationPath, $name); // uploading file to given path
|
||||||
\Zipper::make($destinationPath.'/'.$name)->extractTo($extractpath); //extracting file to give path
|
\Zipper::make($destinationPath.'/'.$name)->extractTo($extractpath); //extracting file to give path
|
||||||
//check if Zip extract foldercontains any subfolder
|
//check if Zip extract foldercontains any subfolder
|
||||||
$directories = File::directories($extractpath);
|
$directories = File::directories($extractpath);
|
||||||
@@ -194,7 +194,7 @@ class LanguageController extends Controller
|
|||||||
} else {
|
} else {
|
||||||
// sending back with success message
|
// sending back with success message
|
||||||
Session::flash('success', Lang::get('lang.upload-success'));
|
Session::flash('success', Lang::get('lang.upload-success'));
|
||||||
Session::flash('link', 'change-language/'.strtolower(Input::get('iso-code')));
|
Session::flash('link', 'change-language/'.strtolower(Request::get('iso-code')));
|
||||||
|
|
||||||
return Redirect::route('LanguageController');
|
return Redirect::route('LanguageController');
|
||||||
}
|
}
|
||||||
|
@@ -13,7 +13,7 @@ use App\User;
|
|||||||
use Auth;
|
use Auth;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Hash;
|
use Hash;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProfileController.
|
* ProfileController.
|
||||||
@@ -94,13 +94,13 @@ class ProfileController extends Controller
|
|||||||
$user->profile_pic = $name;
|
$user->profile_pic = $name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Input::file('profile_pic')) {
|
if (Request::file('profile_pic')) {
|
||||||
//$extension = Input::file('profile_pic')->getClientOriginalExtension();
|
//$extension = Request::file('profile_pic')->getClientOriginalExtension();
|
||||||
$name = Input::file('profile_pic')->getClientOriginalName();
|
$name = Request::file('profile_pic')->getClientOriginalName();
|
||||||
$destinationPath = 'lb-faveo/profilepic';
|
$destinationPath = 'lb-faveo/profilepic';
|
||||||
$fileName = rand(0000, 9999).'.'.$name;
|
$fileName = rand(0000, 9999).'.'.$name;
|
||||||
//echo $fileName;
|
//echo $fileName;
|
||||||
Input::file('profile_pic')->move($destinationPath, $fileName);
|
Request::file('profile_pic')->move($destinationPath, $fileName);
|
||||||
$user->profile_pic = $fileName;
|
$user->profile_pic = $fileName;
|
||||||
} else {
|
} else {
|
||||||
$user->fill($request->except('profile_pic', 'gender', 'active', 'role', 'is_delete', 'ban'))->save();
|
$user->fill($request->except('profile_pic', 'gender', 'active', 'role', 'is_delete', 'ban'))->save();
|
||||||
|
@@ -39,7 +39,7 @@ use Exception;
|
|||||||
use File;
|
use File;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use Lang;
|
use Lang;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -866,13 +866,13 @@ class SettingsController extends Controller
|
|||||||
|
|
||||||
public function saveConditions()
|
public function saveConditions()
|
||||||
{
|
{
|
||||||
if (\Input::get('fetching-commands') && \Input::get('notification-commands')) {
|
if (Input::get('fetching-commands') && Input::get('notification-commands')) {
|
||||||
$fetching_commands = \Input::get('fetching-commands');
|
$fetching_commands = Input::get('fetching-commands');
|
||||||
$fetching_dailyAt = \Input::get('fetching-dailyAt');
|
$fetching_dailyAt = Input::get('fetching-dailyAt');
|
||||||
$notification_commands = \Input::get('notification-commands');
|
$notification_commands = Input::get('notification-commands');
|
||||||
$notification_dailyAt = \Input::get('notification-dailyAt');
|
$notification_dailyAt = Input::get('notification-dailyAt');
|
||||||
$work_commands = \Input::get('work-commands');
|
$work_commands = Input::get('work-commands');
|
||||||
$workflow_dailyAt = \Input::get('workflow-dailyAt');
|
$workflow_dailyAt = Input::get('workflow-dailyAt');
|
||||||
$fetching_command = $this->getCommand($fetching_commands, $fetching_dailyAt);
|
$fetching_command = $this->getCommand($fetching_commands, $fetching_dailyAt);
|
||||||
$notification_command = $this->getCommand($notification_commands, $notification_dailyAt);
|
$notification_command = $this->getCommand($notification_commands, $notification_dailyAt);
|
||||||
$work_command = $this->getCommand($work_commands, $workflow_dailyAt);
|
$work_command = $this->getCommand($work_commands, $workflow_dailyAt);
|
||||||
|
@@ -33,7 +33,7 @@ use DB;
|
|||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use Lang;
|
use Lang;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -16,7 +16,7 @@ use App\Model\helpdesk\Utility\Languages;
|
|||||||
// classes
|
// classes
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TemplateController.
|
* TemplateController.
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
namespace App\Http\Controllers\Agent\helpdesk;
|
namespace App\Http\Controllers\Agent\helpdesk;
|
||||||
|
|
||||||
// controllers
|
// controllers
|
||||||
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
// requests
|
// requests
|
||||||
use App\Http\Requests\helpdesk\OrganizationRequest;
|
use App\Http\Requests\helpdesk\OrganizationRequest;
|
||||||
@@ -264,7 +265,7 @@ class OrganizationController extends Controller
|
|||||||
public function Head_Org($id)
|
public function Head_Org($id)
|
||||||
{
|
{
|
||||||
// get the user to make organization head
|
// get the user to make organization head
|
||||||
$head_user = \Input::get('user');
|
$head_user = Input::get('user');
|
||||||
// get an instance of the selected organization
|
// get an instance of the selected organization
|
||||||
$org_head = Organization::where('id', '=', $id)->first();
|
$org_head = Organization::where('id', '=', $id)->first();
|
||||||
$org_head->head = $head_user;
|
$org_head->head = $head_user;
|
||||||
|
@@ -45,7 +45,7 @@ use Hash;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\support\Collection;
|
use Illuminate\support\Collection;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use Lang;
|
use Lang;
|
||||||
use Mail;
|
use Mail;
|
||||||
use PDF;
|
use PDF;
|
||||||
@@ -1588,7 +1588,7 @@ class TicketController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function autosearch($id)
|
public function autosearch($id)
|
||||||
{
|
{
|
||||||
$term = \Input::get('term');
|
$term = Input::get('term');
|
||||||
$user = \App\User::where('email', 'LIKE', '%'.$term.'%')->pluck('email');
|
$user = \App\User::where('email', 'LIKE', '%'.$term.'%')->pluck('email');
|
||||||
echo json_encode($user);
|
echo json_encode($user);
|
||||||
}
|
}
|
||||||
|
@@ -39,7 +39,7 @@ use Exception;
|
|||||||
use GeoIP;
|
use GeoIP;
|
||||||
use Hash;
|
use Hash;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use Lang;
|
use Lang;
|
||||||
use Redirect;
|
use Redirect;
|
||||||
|
|
||||||
@@ -897,7 +897,7 @@ class UserController extends Controller
|
|||||||
// checking if the name is unique
|
// checking if the name is unique
|
||||||
$check2 = Organization::where('name', '=', Input::get('name'))->first();
|
$check2 = Organization::where('name', '=', Input::get('name'))->first();
|
||||||
// if any of the fields is not available then return false
|
// if any of the fields is not available then return false
|
||||||
if (\Input::get('name') == null) {
|
if (Input::get('name') == null) {
|
||||||
return 'Name is required';
|
return 'Name is required';
|
||||||
} elseif ($check2 != null) {
|
} elseif ($check2 != null) {
|
||||||
return 'Name should be Unique';
|
return 'Name should be Unique';
|
||||||
|
@@ -17,7 +17,7 @@ use Config;
|
|||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Image;
|
use Image;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use Lang;
|
use Lang;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -24,7 +24,7 @@ use App\User;
|
|||||||
/* include tickets model */
|
/* include tickets model */
|
||||||
/* TicketRequest to validate the ticket response */
|
/* TicketRequest to validate the ticket response */
|
||||||
/* Validate post check ticket */
|
/* Validate post check ticket */
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Redirect;
|
use Redirect;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -285,7 +285,7 @@ class UserController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function UserAssignOrg($id)
|
public function UserAssignOrg($id)
|
||||||
{
|
{
|
||||||
$org = Input::get('org');
|
$org = Request::get('org');
|
||||||
$user_org = new User_org();
|
$user_org = new User_org();
|
||||||
$user_org->org_id = $org;
|
$user_org->org_id = $org;
|
||||||
$user_org->user_id = $id;
|
$user_org->user_id = $id;
|
||||||
@@ -301,17 +301,17 @@ class UserController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function User_Create_Org($id)
|
public function User_Create_Org($id)
|
||||||
{
|
{
|
||||||
if (Input::get('website') != null) {
|
if (Request::get('website') != null) {
|
||||||
// checking website
|
// checking website
|
||||||
$check = Organization::where('website', '=', Input::get('website'))->first();
|
$check = Organization::where('website', '=', Request::get('website'))->first();
|
||||||
} else {
|
} else {
|
||||||
$check = null;
|
$check = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// checking name
|
// checking name
|
||||||
$check2 = Organization::where('name', '=', Input::get('name'))->first();
|
$check2 = Organization::where('name', '=', Request::get('name'))->first();
|
||||||
|
|
||||||
if (\Input::get('name') == null) {
|
if (Request::get('name') == null) {
|
||||||
return 'Name is required';
|
return 'Name is required';
|
||||||
} elseif ($check2 != null) {
|
} elseif ($check2 != null) {
|
||||||
return 'Name should be Unique';
|
return 'Name should be Unique';
|
||||||
@@ -319,11 +319,11 @@ class UserController extends Controller
|
|||||||
return 'Website should be Unique';
|
return 'Website should be Unique';
|
||||||
} else {
|
} else {
|
||||||
$org = new Organization();
|
$org = new Organization();
|
||||||
$org->name = Input::get('name');
|
$org->name = Request::get('name');
|
||||||
$org->phone = Input::get('phone');
|
$org->phone = Request::get('phone');
|
||||||
$org->website = Input::get('website');
|
$org->website = Request::get('website');
|
||||||
$org->address = Input::get('address');
|
$org->address = Request::get('address');
|
||||||
$org->internal_notes = Input::get('internal');
|
$org->internal_notes = Request::get('internal');
|
||||||
$org->save();
|
$org->save();
|
||||||
|
|
||||||
$user_org = new User_org();
|
$user_org = new User_org();
|
||||||
|
@@ -28,7 +28,7 @@ use Exception;
|
|||||||
use GeoIP;
|
use GeoIP;
|
||||||
use Hash;
|
use Hash;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use Lang;
|
use Lang;
|
||||||
use Socialite;
|
use Socialite;
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@ use App\Model\helpdesk\Ticket\Tickets;
|
|||||||
use DB;
|
use DB;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use Lang;
|
use Lang;
|
||||||
use Log;
|
use Log;
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ use Exception;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use Lang;
|
use Lang;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -19,7 +19,7 @@ use Exception;
|
|||||||
use File;
|
use File;
|
||||||
use Hash;
|
use Hash;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use Redirect;
|
use Redirect;
|
||||||
use Session;
|
use Session;
|
||||||
use UnAuth;
|
use UnAuth;
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers\Job;
|
namespace App\Http\Controllers\Job;
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Request as Input;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Form;
|
use Form;
|
||||||
@@ -31,7 +32,7 @@ class MailController extends Controller
|
|||||||
|
|
||||||
public function form($label, $name, $class)
|
public function form($label, $name, $class)
|
||||||
{
|
{
|
||||||
$mailid = \Input::get('emailid');
|
$mailid = Input::get('emailid');
|
||||||
if ($mailid) {
|
if ($mailid) {
|
||||||
$emails = new \App\Model\helpdesk\Email\Emails();
|
$emails = new \App\Model\helpdesk\Email\Emails();
|
||||||
$email = $emails->find($mailid);
|
$email = $emails->find($mailid);
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
namespace App\Http\Middleware;
|
namespace App\Http\Middleware;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
use Input;
|
use Illuminate\Support\Facades\Request;
|
||||||
|
|
||||||
//use Redirect;
|
//use Redirect;
|
||||||
|
|
||||||
@@ -18,20 +18,20 @@ class TicketViewURL
|
|||||||
*/
|
*/
|
||||||
public function handle($request, Closure $next)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
// dd(\Input::all(), $request->fullUrl());
|
// dd(Request::all(), $request->fullUrl());
|
||||||
$request_str = $request->fullUrl();
|
$request_str = $request->fullUrl();
|
||||||
if (preg_match('([^D]=)', $request_str) == 1) {
|
if (preg_match('([^D]=)', $request_str) == 1) {
|
||||||
$request_str = str_replace('=', '%5B%5D=', $request_str);
|
$request_str = str_replace('=', '%5B%5D=', $request_str);
|
||||||
$request_str = str_replace('%5B%5D%5B%5D=', '%5B%5D=', $request_str);
|
$request_str = str_replace('%5B%5D%5B%5D=', '%5B%5D=', $request_str);
|
||||||
}
|
}
|
||||||
if (count(Input::all()) == 0) {
|
if (count(Request::all()) == 0) {
|
||||||
return \Redirect::to('tickets?show%5B%5D=inbox&departments%5B%5D=All');
|
return \Redirect::to('tickets?show%5B%5D=inbox&departments%5B%5D=All');
|
||||||
} else {
|
} else {
|
||||||
if (! array_key_exists('show', Input::all()) && ! array_key_exists('departments', Input::all())) {
|
if (! array_key_exists('show', Request::all()) && ! array_key_exists('departments', Request::all())) {
|
||||||
return \Redirect::to($request_str.'&show%5B%5D=inbox&departments%5B%5D=All');
|
return \Redirect::to($request_str.'&show%5B%5D=inbox&departments%5B%5D=All');
|
||||||
} elseif (! array_key_exists('show', Input::all()) && array_key_exists('departments', Input::all())) {
|
} elseif (! array_key_exists('show', Request::all()) && array_key_exists('departments', Request::all())) {
|
||||||
return \Redirect::to($request_str.'&show%5B%5D=inbox');
|
return \Redirect::to($request_str.'&show%5B%5D=inbox');
|
||||||
} elseif (array_key_exists('show', Input::all()) && ! array_key_exists('departments', Input::all())) {
|
} elseif (array_key_exists('show', Request::all()) && ! array_key_exists('departments', Request::all())) {
|
||||||
return \Redirect::to($request_str.'&departments%5B%5D=All');
|
return \Redirect::to($request_str.'&departments%5B%5D=All');
|
||||||
} else {
|
} else {
|
||||||
// do nothing
|
// do nothing
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Request;
|
||||||
|
|
||||||
Breadcrumbs::register('dashboard', function ($breadcrumbs) {
|
Breadcrumbs::register('dashboard', function ($breadcrumbs) {
|
||||||
//$breadcrumbs->parent('/');
|
//$breadcrumbs->parent('/');
|
||||||
$breadcrumbs->push(Lang::get('lang.dashboard'), route('dashboard'));
|
$breadcrumbs->push(Lang::get('lang.dashboard'), route('dashboard'));
|
||||||
@@ -561,7 +563,7 @@ Breadcrumbs::register('queue', function ($breadcrumbs) {
|
|||||||
$breadcrumbs->push(Lang::get('lang.queues'), route('queue'));
|
$breadcrumbs->push(Lang::get('lang.queues'), route('queue'));
|
||||||
});
|
});
|
||||||
Breadcrumbs::register('queue.edit', function ($breadcrumbs) {
|
Breadcrumbs::register('queue.edit', function ($breadcrumbs) {
|
||||||
$id = \Input::segment(2);
|
$id = Request::segment(2);
|
||||||
$breadcrumbs->parent('queue');
|
$breadcrumbs->parent('queue');
|
||||||
$breadcrumbs->push(Lang::get('lang.edit'), route('queue.edit', $id));
|
$breadcrumbs->push(Lang::get('lang.edit'), route('queue.edit', $id));
|
||||||
});
|
});
|
||||||
@@ -576,7 +578,7 @@ Breadcrumbs::register('social', function ($breadcrumbs) {
|
|||||||
$breadcrumbs->push(Lang::get('lang.social-media'), route('social'));
|
$breadcrumbs->push(Lang::get('lang.social-media'), route('social'));
|
||||||
});
|
});
|
||||||
Breadcrumbs::register('social.media', function ($breadcrumbs) {
|
Breadcrumbs::register('social.media', function ($breadcrumbs) {
|
||||||
$id = \Input::segment(2);
|
$id = Request::segment(2);
|
||||||
$breadcrumbs->parent('social');
|
$breadcrumbs->parent('social');
|
||||||
$breadcrumbs->push(Lang::get('lang.settings'), route('social.media', $id));
|
$breadcrumbs->push(Lang::get('lang.settings'), route('social.media', $id));
|
||||||
});
|
});
|
||||||
|
@@ -214,7 +214,6 @@ return [
|
|||||||
'Event' => 'Illuminate\Support\Facades\Event',
|
'Event' => 'Illuminate\Support\Facades\Event',
|
||||||
'File' => 'Illuminate\Support\Facades\File',
|
'File' => 'Illuminate\Support\Facades\File',
|
||||||
'Hash' => 'Illuminate\Support\Facades\Hash',
|
'Hash' => 'Illuminate\Support\Facades\Hash',
|
||||||
'Input' => 'Illuminate\Support\Facades\Input',
|
|
||||||
'Inspiring' => 'Illuminate\Foundation\Inspiring',
|
'Inspiring' => 'Illuminate\Foundation\Inspiring',
|
||||||
'Lang' => 'Illuminate\Support\Facades\Lang',
|
'Lang' => 'Illuminate\Support\Facades\Lang',
|
||||||
'Log' => 'Illuminate\Support\Facades\Log',
|
'Log' => 'Illuminate\Support\Facades\Log',
|
||||||
|
@@ -17,13 +17,13 @@ class="active"
|
|||||||
@stop
|
@stop
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$inputs = \Input::get('show');
|
$inputs = Request::get('show');
|
||||||
$activepage = $inputs[0];
|
$activepage = $inputs[0];
|
||||||
if (\Input::has('assigned'))
|
if (Request::has('assigned'))
|
||||||
{
|
{
|
||||||
$activepage = \Input::get('assigned')[0];
|
$activepage = Request::get('assigned')[0];
|
||||||
} elseif (\Input::has('last-response-by')){
|
} elseif (Request::has('last-response-by')){
|
||||||
$activepage = \Input::get('last-response-by')[0];
|
$activepage = Request::get('last-response-by')[0];
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -125,12 +125,12 @@ if (\Input::has('assigned'))
|
|||||||
@else
|
@else
|
||||||
{{Lang::get('lang.inbox')}}
|
{{Lang::get('lang.inbox')}}
|
||||||
@endif
|
@endif
|
||||||
@if(count(Input::all()) > 2 && $activepage != '0')
|
@if(count(Request::all()) > 2 && $activepage != '0')
|
||||||
/ {{Lang::get('lang.filtered-results')}}
|
/ {{Lang::get('lang.filtered-results')}}
|
||||||
@else()
|
@else()
|
||||||
@if(count(Input::get('departments')) == 1 && Input::get('departments')[0] != 'All')
|
@if(count(Request::get('departments')) == 1 && Request::get('departments')[0] != 'All')
|
||||||
/ {{Lang::get('lang.filtered-results')}}
|
/ {{Lang::get('lang.filtered-results')}}
|
||||||
@elseif (count(Input::get('departments')) > 1)
|
@elseif (count(Request::get('departments')) > 1)
|
||||||
/ {{Lang::get('lang.filtered-results')}}
|
/ {{Lang::get('lang.filtered-results')}}
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@@ -171,7 +171,7 @@ if (\Input::has('assigned'))
|
|||||||
<i class="fas fa-cogs"> </i> {!! Lang::get('lang.merge') !!}
|
<i class="fas fa-cogs"> </i> {!! Lang::get('lang.merge') !!}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<?php $inputs = Input::all(); ?>
|
<?php $inputs = Request::all(); ?>
|
||||||
|
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<?php $statuses = Finder::getCustomedStatus(); ?>
|
<?php $statuses = Finder::getCustomedStatus(); ?>
|
||||||
|
@@ -15,7 +15,7 @@ $segment = "";
|
|||||||
foreach ($segments as $seg) {
|
foreach ($segments as $seg) {
|
||||||
$segment.="/".$seg;
|
$segment.="/".$seg;
|
||||||
}
|
}
|
||||||
$inputs = json_encode(\Input::all());
|
$inputs = json_encode(Request::all());
|
||||||
$path = public_path();
|
$path = public_path();
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Request;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application Routes
|
| Application Routes
|
||||||
@@ -487,13 +489,13 @@ Route::group(['middleware' => ['web']], function () {
|
|||||||
*/
|
*/
|
||||||
// seasrch
|
// seasrch
|
||||||
// Route::POST('tickets/search/', function () {
|
// Route::POST('tickets/search/', function () {
|
||||||
// $keyword = Illuminate\Support\Str::lower(Input::get('auto'));
|
// $keyword = Illuminate\Support\Str::lower(Request::get('auto'));
|
||||||
// $models = App\Model\Ticket\Tickets::where('ticket_number', '=', $keyword)->orderby('ticket_number')->take(10)->skip(0)->get();
|
// $models = App\Model\Ticket\Tickets::where('ticket_number', '=', $keyword)->orderby('ticket_number')->take(10)->skip(0)->get();
|
||||||
// $count = count($models);
|
// $count = count($models);
|
||||||
// return Illuminate\Support\Facades\Redirect::back()->with('contents', $models)->with('counts', $count);
|
// return Illuminate\Support\Facades\Redirect::back()->with('contents', $models)->with('counts', $count);
|
||||||
// });
|
// });
|
||||||
Route::any('getdata', function () {
|
Route::any('getdata', function () {
|
||||||
$term = Illuminate\Support\Str::lower(Input::get('term'));
|
$term = Illuminate\Support\Str::lower(Request::get('term'));
|
||||||
$data = Illuminate\Support\Facades\DB::table('tickets')->distinct()->select('ticket_number')->where('ticket_number', 'LIKE', $term.'%')->groupBy('ticket_number')->take(10)->get();
|
$data = Illuminate\Support\Facades\DB::table('tickets')->distinct()->select('ticket_number')->where('ticket_number', 'LIKE', $term.'%')->groupBy('ticket_number')->take(10)->get();
|
||||||
foreach ($data as $v) {
|
foreach ($data as $v) {
|
||||||
return [
|
return [
|
||||||
|
Reference in New Issue
Block a user