user_hkcl

user_hkcl

Member Since 1 Year Ago

Experience Points 1,350
Experience Level 1

3,650 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

06 Apr
1 month ago

user_hkcl left a reply on Sort By On Merged Collection

@mungpara Still not sorting month . It is only sorting date.

user_hkcl started a new conversation Sort By On Merged Collection

Hi folks , I am trying to merge collection and after that sort those collection by date. But sorting only applicable to date field not month.

Here is my code . , $class_feeheads = \App\FeeHead::where('idClass', '=', $student->idClass) ->where('idSection', '=', $student->idSection) ->where('studentCategory', '=', $student->studentType) ->whereNull('idStudent') ->get(); $allcat_feeheads = \App\FeeHead::where('idClass', '=', $student->idClass) ->where('idSection', '=', $student->idSection) ->where('studentCategory', '=', 'All') ->whereNull('idStudent') ->get(); $std_feeheads = \App\FeeHead::where('idStudent', '=', $student->idStudent)->get();

    $feeheads1 = new \Illuminate\Database\Eloquent\Collection; //Create empty collection which we know has the merge() method
    $feeheads1 = $feeheads1->merge($class_feeheads);
    $feeheads1 = $feeheads1->merge($std_feeheads);
    $feeheads1 = $feeheads1->merge($allcat_feeheads);
    
 $feeheads = $feeheads1->sortBy('toDate'); 

,

18 Feb
3 months ago

user_hkcl left a reply on Undefined Index Password

@jlrdw

ErrorException (E_NOTICE) Undefined index: password

error on these lines of EloquentUserProvider.php

public function validateCredentials(UserContract $user, array $credentials) { $plain = $credentials['password'];

    return $this->hasher->check($plain, $user->getAuthPassword());
}

user_hkcl started a new conversation Undefined Index Password

Hi Folks

I am developing a schoolmis system in which parents can login with their credentials . password field having name as father_password and mother_password .BUt when ever i try to login it gives me error undefined index password. Tried multiple approach but failed. Using laravel 5.5 version.

09 Jan
4 months ago

user_hkcl started a new conversation Laravel Store Locator

Can any one provide me link of ecommerce store locator plugin for ecommerce web application written in laravel?

21 Nov
6 months ago

user_hkcl left a reply on First Eloquent Relationships

if you are using model in view then you can use model like this \App\Task

14 Nov
6 months ago

user_hkcl started a new conversation LARAVEL MODULAR DEVELOPMENT

What is the best package for modular development in laravel. Currently i am using https://github.com/nWidart/laravel-modules but this doesnot support authentication in each modules.

22 Oct
6 months ago

user_hkcl left a reply on Digitally Signing Pdf File

Thank u so much @lostdreamer_nl you saved me :)

20 Oct
7 months ago

user_hkcl started a new conversation Digitally Signing Pdf File

Hi folks,

I have developed a web application in laravel which gives licenses to uses.At the end license is generated in the form of pdf. Authority which is responsible for license giving, wants digitally signing pdf document. Please suggest the best possible way to do this..

Thanks in advance :)

03 Oct
7 months ago

user_hkcl started a new conversation Laravel PDF Fixed Header And Footer Issue

I need to add header and footer on every page in generated it should look like this

PAGE1

Some text .....

PAGE2

..... text continues here

It works fine for static html but not working correctly (header collapse with content on next page) for dynamic data . I am using dompdf for pdf generation.

19 Sep
8 months ago

user_hkcl started a new conversation Tracking Mouse Movement And Reset Sessions Laravel

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.

30 Aug
8 months ago

user_hkcl started a new conversation PHP Curl Issue

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)

10 Aug
9 months ago

user_hkcl started a new conversation Datatable Server Side Processing

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.

09 Aug
9 months ago

user_hkcl started a new conversation Order By With Concat Column Not Working

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();

31 Jul
9 months ago

user_hkcl left a reply on Preview And Submit Form

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

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

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();
        
    }
02 Jul
10 months ago

user_hkcl started a new conversation Checking Browser Compatibility

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 :)

30 Jun
10 months ago

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

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

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

29 Jun
10 months ago

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

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.

27 Jun
10 months ago

user_hkcl left a reply on Laravel Sending Json Data Using Guzzle

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

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);
11 Jun
11 months ago

user_hkcl left a reply on Remove Url From Print Pages

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

08 Jun
11 months ago

user_hkcl started a new conversation Remove Url From Print Pages

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

04 Jun
11 months ago

user_hkcl left a reply on Bootstrap Datepicker Issue

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

user_hkcl left a reply on Bootstrap Datepicker Issue

@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

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

30 May
11 months ago

user_hkcl left a reply on Translating Only A Portion Of Page

@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

@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

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 :)

15 May
1 year ago

user_hkcl started a new conversation Datatable Pdf Not Displaying Hindi Text

hello all.

Datatable pdf option not displaying hindi character in pdf.

02 May
1 year ago

user_hkcl started a new conversation Laravel DOMPDF UTF-8 Issue

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

30 Apr
1 year ago

user_hkcl left a reply on Validating Multiselect Array

@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.

26 Apr
1 year ago

user_hkcl left a reply on Validating Multiselect Array

@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.

24 Apr
1 year ago

user_hkcl started a new conversation Validating Multiselect Array

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 :)

05 Apr
1 year ago

user_hkcl left a reply on Redirect Back Not Working

@jcmargentina I have Updated my code please check. Thanks

user_hkcl started a new conversation Redirect Back Not Working

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(); }

04 Apr
1 year ago

user_hkcl started a new conversation Cron Job

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

16 Mar
1 year ago

user_hkcl started a new conversation External Api Integration With Laravel Application

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.:)