user_hkcl

Experience

1,010

0 Best Reply Awards

  • Member Since 6 Months Ago
  • 0 Lessons Completed
  • 0 Favorites

19th September, 2018

user_hkcl started a new conversation Tracking Mouse Movement And Reset Sessions Laravel • 1 day ago

I Have a form where user can enter 100 of product with other details. But session timeout is 20 minutes. Form filling involve more than 20 minutes which is more than session timeout limit. how can i reset the session on mouse movement. ? Thanks is advance.

30th August, 2018

user_hkcl started a new conversation PHP Curl Issue • 3 weeks ago

I am getting this error while using guzzle client. Protocol https not supported or disabled in libcurl.. Please suggest how to resolve this. (I am using Centos)

10th August, 2018

user_hkcl started a new conversation Datatable Server Side Processing • 1 month ago

Can someone provide complete code of server side processing of datatable.

Actually I have to display millions of record using datatable which takes so much time.

9th August, 2018

user_hkcl started a new conversation Order By With Concat Column Not Working • 1 month ago

Hi everyone,

Order by with concat column not working.here is my code..

Please suggest Thanks :)

$sizes = DB::table('sizes')->join('units', 'units.idUnit', '=', 'sizes.idUnit') ->select(DB::raw('CONCAT(sizeName, " ",units.unitName,"") AS sizeName'), 'idSize')->orderBy('sizeName') ->get() ->pluck('sizeName', 'idSize')->toArray();

31st July, 2018

user_hkcl left a reply on Preview And Submit Form • 1 month ago

Thanks @Snapey but in both cases i have to save value in database.Is there a way that only preview without storing value in database.

user_hkcl started a new conversation Preview And Submit Form • 1 month ago

What is the best way to preview and print the filled form in laravel.

user_hkcl started a new conversation Laravel Unique Validation On Adding Multiple Row • 1 month ago

Hi all,

I have a form with add row functionality.User can add more than 100 rows,but the problem is user must have to select distinct entry to avoid duplicate entry .how to display error if user has selected same value from dropdown.please suggest unique validation rule not working here.

My code is..

foreach ($this->insecticides as $key => $value) {
        $rules['insecticides.' . $key . '.idInsecticide'] = 'required';
        $rules['insecticides.' . $key . '.regNo'] = 'required';
        $rules['insecticides.' . $key . '.regDate'] = 'required|date|before:' . today_date();
        
    }

2nd July, 2018

user_hkcl started a new conversation Checking Browser Compatibility • 2 months ago

Hi all,

I have developed an app using laravel. How can i check which browser version is compatible with my system, so that application itself ask user to update their browser if they are using older or non-compatible version.

Thanks :)

30th June, 2018

user_hkcl left a reply on Laravel Random 401 Error Unauthorized When Trying To Login After Logout • 2 months ago

Thanks @snapey But I have resolved this by disabling this web middleware from kernel.php

\Illuminate\Session\Middleware\AuthenticateSession::class,

29th June, 2018

user_hkcl started a new conversation Laravel Random 401 Error Unauthorized When Trying To Login After Logout • 2 months ago

Hi, all I have implemented two steps login in my app,in first step users fill their username and password and in second step they choose multiple option like designation and location.

This all works fine but after logout when user is trying to login again with other credentials there is 401 error unauthorized in second step.

27th June, 2018

user_hkcl left a reply on Laravel Sending Json Data Using Guzzle • 2 months ago

Thanks @Yorki but i have to send json encoded data .for me this works as expected

$data = json_encode($params);

$client = new Client([
    'headers' => ['Content-Type' => 'application/json']
]);
$response = $client->post('url', 
        ['body' => $data]
);
$response = json_decode($response->getBody(), true);

user_hkcl started a new conversation Laravel Sending Json Data Using Guzzle • 2 months ago

Hi everyone i want to send json format data usimg guzzle 6.3 but its not working..don't understand why? please suggest.

$reqParamArray = array();
    $reqParamArray['ApplicationCode'] = $ApplicationCode;
    $reqParamArray['ServiceCode'] = $ServiceCode;
    $reqParamArray['FileReferenceNo'] = $FileReferenceNo;
    $reqParamArray['ReceiptDate'] = $ReceiptDate;
    $reqParamArray['Name'] = $Name;
    $reqParamArray['MobileNo'] = $MobileNo;
    $reqParamArray['RTSDueDate'] = $RTSDueDate;
    $reqParamArray['DistrictCode'] = $DistrictCode;
    $reqParamArray['LocationType'] = $LocationType;
    $reqParamArray['LocationName'] = $LocationName;
    $reqParamArray['SourceCode'] = $SourceCode;
    $reqParamArray['LastStatusDescription'] = $LastStatusDescription;
    $reqParamArray['LastAction'] = $LastAction;
    $reqParamArray['LastActionBy'] = $LastActionBy;
    $reqParamArray['LastActionDate'] = $LastActionDate;
    $reqParamArray['Remarks_Eng'] = $Remarks_Eng;
    $reqParamArray['Level'] = $Level;
    $reqParamArray['FileWithUser'] = $FileWithUser;
    $reqParamArray['DeptCode'] = $DeptCode;

    $params[] = $reqParamArray;
    $data = json_encode($params);

    $client = new Client([
        'headers' => ['Content-Type' => 'application/json']
    ]);
    $response = $client->post('http://164.100.137.137/saralstatus/api/values/SaralBulkUpload', 
            ['body' => $data]
    );
    $response = json_decode($response->getBody(), true);

11th June, 2018

user_hkcl left a reply on Remove Url From Print Pages • 3 months ago

Thanks @click @tykus .I thought there may be any option on developer side.

8th June, 2018

user_hkcl started a new conversation Remove Url From Print Pages • 3 months ago

How can i remove url titles and date from print pages. ?

4th June, 2018

user_hkcl left a reply on Bootstrap Datepicker Issue • 3 months ago

@topvillas You have solved my issue. Thank u so much.

user_hkcl left a reply on Bootstrap Datepicker Issue • 3 months ago

@topvillas Never used Monent js earlier. could you please tell how the same can be achieved using moment.

user_hkcl started a new conversation Bootstrap Datepicker Issue • 3 months ago

I have a start date input field which uses bootstrap datepicker ,I want to add one year to selected start field and display the the date in to end date input field.

{!! Form::text('season_fromDate', null, ['class' => 'form-control','id'=>'season_startdate']) !!}

{!! Form::text('season_toDate', null, ['class' => 'form-control','id'=>'season_to_date']) !!}

how this can be achieved.

$(function() { var nowDate = new Date(); var today = new Date(nowDate.getFullYear(), nowDate.getMonth(), nowDate.getDate(), 0, 0, 0, 0); $('#season_startdate').datepicker({ autoclose: true, format: 'dd-mm-yyyy', todayBtn:true, startDate: today, todayHighlight:true, orientation: 'auto' }); $('#season_to_date').datepicker({ autoclose: true, format: 'dd-mm-yyyy', todayBtn:true, startDate: today, todayHighlight:true, orientation: 'auto' }); });

Thanks

30th May, 2018

user_hkcl left a reply on Translating Only A Portion Of Page • 3 months ago

@resin01 But i don't want to use the class="notranslate" every where in the application .

user_hkcl left a reply on Translating Only A Portion Of Page • 3 months ago

@erezt Yes I am new to this. I have to display my html form label in english .Whenever user select other language only some of the element of this page need to be translated, not entire page please suggest how it can be achieved.Thanks.

user_hkcl started a new conversation Translating Only A Portion Of Page • 3 months ago

Hii all,

I have to translate only a portion of page,not whole website.i am using google translate plugin but it translate whole application.How can i do this? \

Thanks in Advance :)

15th May, 2018

user_hkcl started a new conversation Datatable Pdf Not Displaying Hindi Text • 4 months ago

hello all.

Datatable pdf option not displaying hindi character in pdf.

2nd May, 2018

user_hkcl started a new conversation Laravel DOMPDF UTF-8 Issue • 4 months ago

Laravel DOMPDF UTF-8 It is displaying character like ????? for Hindi Text. Here is My Code.

public function downloadPDF($id) {

$fscheme = \App\FarmerAppliedScheme::where('idAppliedScheme', '=', $id)->first();

    $pdf = PDF::loadView('farmer.schemes.pdf', compact('fscheme'));

    return $pdf->stream('invoice.pdf');

}

Thanks all

30th April, 2018

user_hkcl left a reply on Validating Multiselect Array • 4 months ago

@bobbybouwmann This is my form i Have to Assign a designation in multiple districts...( idDistricts[] is an array with multiple select)

{!! Form::label('District', null, ['class' => 'col-sm-2 control-label required']) !!} {!! Form::select('idDistricts[]',$districts, isset($user) ? $user_district: null, ['class' => 'form-control select2','multiple'=>'multiple','id'=>'idDistrict','data-width'=>'100%']) !!}
    </div>

    <div class="form-group">
        {!! Form::label('Designation', null, ['class' => 'col-sm-2 control-label required']) !!}
        <div class="col-sm-4">
            {!! Form::select('idDesignation',$designations, isset($user) ? $user_section : null, ['class' => 'form-control']) !!}
        </div>
        
    </div>

I am Trying to use unique validation rule, so that district with same designation cant be duplicated.But the problem is if already added district is selected in multi select array it does not give any error.

26th April, 2018

user_hkcl left a reply on Validating Multiselect Array • 4 months ago

@bobbybouwmann I have changed my code like this.

foreach ($this->idDistricts as $key => $value) {

                $rules['districts.' . $key . '.idDistrict'] = 'unique:user_designation_district_mapping,idDistrict,NULL,idDistrict,idDesignation,' . $this->idDesignation;

            }

but still not giving any error.

24th April, 2018

user_hkcl started a new conversation Validating Multiselect Array • 4 months ago

I am trying to validate multiple select array input for unique validation,but it only work on 1st record of array

foreach ($this->idDistricts as $var) {

$rules['idDesignation'] = 'unique:user_designation,idDesignation,NULL,iddesgignationmapping,idDistrict,' . $var;

            }

Please Suggest If There is another way of doing it.

Thanks :)

5th April, 2018

user_hkcl left a reply on Redirect Back Not Working • 5 months ago

@jcmargentina I have Updated my code please check. Thanks

user_hkcl started a new conversation Redirect Back Not Working • 5 months ago

I Have Implemented multi-authentication system, And on each login there is update password functionality.After updating password it redirects to previous page.Previously it is working,now it is redirecting to main login page .Can't find the issue.here is my code ...

public function updatePassword(Request $request) { $rules = []; $user = $request->user(); if (!auth()->attempt(['username' => $user->userName, 'password' => $request->old_password])) { flash()->error('Wrong old password. Authentication failed'); return redirect()->back(); } $this->validate($request, $rules + [ 'password' => 'required|min:6|confirmed', ]); $user->password = bcrypt($request['password']); $user->update(); flash()->success('Password updated successfully.'); return redirect()->back(); }

4th April, 2018

user_hkcl started a new conversation Cron Job • 5 months ago

How to update a record in table everytime when a codition is fullfilled using cron job in laravel.

16th March, 2018

user_hkcl started a new conversation External Api Integration With Laravel Application • 6 months ago

I have a laravel application.i want to integrate this with external api.how this can be done ?i am new to this please provide simple steps.:)

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.