Our Black Friday sale is now live! All individual subscriptions are 50% OFF. This week only!

bernardkortor

bernardkortor

Member Since 1 Year Ago

Experience Points
880
Total
Experience

4,120 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
2
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 1
880 XP
Oct
07
1 month ago
Activity icon

Replied to Access Denied To User When Trying To Login

I have uploaded the project on cpanel before editting the .env file. i dont know whether i did the right thing

Activity icon

Replied to Access Denied To User When Trying To Login

i have not. where do i suppose to do it? on cpanel or on my local system?

Activity icon

Replied to Access Denied To User When Trying To Login

good day sir. i can login locally using root as username. but i created new database user in my cpanel called "blutechd_hospitaladmin".

Oct
05
1 month ago
Activity icon

Started a new Conversation Access Denied To User When Trying To Login

Good day guys. i'm trying to login my newly hosted laravel App but but i'm getting this error

SQLSTATE[28000] [1045] Access denied for user 'blutechd_hospitaladmin'@'localhost' (using password: YES) (SQL: select * from users where email = [email protected] limit 1)

I editted my .env file with mysql database details on my cpanel. where could the problem be coming from?

Activity icon

Replied to Project Hosting Challenge

thank you i have hosted successfully. another problem is i can't login to mysql database hosted but this error is coming up "SQLSTATE[28000] [1045] Access denied for user 'blutechd_hospitaladmin'@'localhost' (using password: YES) (SQL: select * from users where email = [email protected] limit 1)

Activity icon

Started a new Conversation Project Hosting Challenge

good morning guys. I'm seeing this error after hosting my Laravel project on Cpanel using my subdomain , demo.hs.blutechds.com.ng. below is the error: Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Class 'Illuminate\Support\facades\Schema' not found

I'm trying to host laravel project for the first time. please i need your help

Jun
20
5 months ago
Activity icon

Replied to Ajax Request

$(function () { $("#hospitalno").change(function (event) { event.preventDefault(); var hosp_no = '1'; $.ajax({ url: 'findNames', type: 'GET', data: 'hosp_no=' + hosp_no, dataType: 'json', success: function (data) { if (data.error) { //handle the error here } else { alert(data.first_name); $('#fname').val(data.first_name); $('#lname').val(data.last_name); } } }); }); });
Activity icon

Replied to Ajax Request

ajax

$(function () { $("#hospitalno").change(function (event) { event.preventDefault(); var hosp_no = '1'; $.ajax({ url: 'findNames', type: 'GET', data: 'hosp_no=' + hosp_no, dataType: 'json', success: function (data) { if (data.error) { //handle the error here } else { alert(data.first_name); $('#fname').val(data.first_name); $('#lname').val(data.last_name); } } }); }); });

Activity icon

Replied to Ajax Request

ok sir . this one I edited

ajax

$(function () { $("#hospitalno").change(function (event) { event.preventDefault(); var hosp_no = '1'; $.ajax({ url: 'findNames', type: 'GET', data: 'hosp_no=' + hosp_no, dataType: 'json', success: function (data) { if (data.error) { //handle the error here } else { alert(data.first_name); $('#fname').val(data.first_name); $('#lname').val(data.last_name); } } }); }); });

controller

public function findNames(){

    $hospital_no = $request::input(' hosp_no');
    $patient = DB::table('patients')->where('hospital_no', '=', '$hospital_no')->first();

    $data = [
        'first_name' => $patient->first_name,
        'last_name' => $patient->last_name
    ];
    return response::json($data);
}
Jun
19
5 months ago
Activity icon

Replied to Jquery Get Response

thank you for your effort, sir. the event I'm using select not click event don't know whether this one correct $("#hospitalno").change(function (event) I want to select from the dropdown and auto-fill two text fields eg first_name, last_name

Activity icon

Replied to Ajax Request

$('#your_field').val(data.name); the bove needed in ajax request or controller?

Activity icon

Replied to Ajax Request

Ajax request;

$(document).ready(function(){ $(document).on('change', '.hospitalNumber', function(){ // console.log('it works'); var hosp_id = $(this).val(); // console.log(hosp_id); var div = $(this).parent(); var input = ""; $.ajax({ type:'get', url:"{!!URL::to('findName')!!}", data:{'id': hosp_id}, dataType:'json', success:function(data){ div.find('.Name').val(data.first_name, data.last_name) }, error:function(){ } }); }); });

what is wrong with this one

Jun
17
5 months ago
Activity icon

Started a new Conversation Ajax Request

Good day. I want to auto-populate two text fields e.g first_name and last_name whenever I select hospital_no from the table patient. the code I have below is not working and i don't know what to do. Can someone help me out?

My view;

Select Hospital No... @foreach ($patientData as $number) {{$number->hospital_no}}
                        @endforeach
                        {{-- @foreach($inpatientData as $hospital_no => $number)
                            <option value="{{$number}}">{{$hospital_no}}</option>
                            @endforeach --}}
                        </select>

                            @error('hospital_no')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                            @enderror
                        </div>
                    </div>

                    <div class="form-group row">
                        <div class="col-md-8">
                            <input id="fname" type="text" style="margin-left:90px;" class="form-control Name @error('name') is-invalid @enderror" name="first_name" placeholder="Enter FirstName" value="{{ old('first_name') }}" readonly required autocomplete="first_name" autofocus>

                            @error('first_name')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                            @enderror
                        </div>
                    </div>
                    <div class="form-group row">
                        <div class="col-md-8">
                            <input id="lname" type="text" style="margin-left:90px;" class="form-control Name @error('organization') is-invalid @enderror" name="last_name" placeholder="Enter LastName" value="{{ old('last_name') }}" readonly required autocomplete="last_name" autofocus>

                            @error('last_name')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                            @enderror
                        </div>
                    </div>

Ajax request;

$(document).ready(function(){ $(document).on('change', '.hospitalNumber', function(){ // console.log('it works'); var hosp_id = $(this).val(); // console.log(hosp_id); var div = $(this).parent(); var input = ""; $.ajax({ type:'get', url:"{!!URL::to('findName')!!}", data:{'id': hosp_id}, dataType:'json', success:function(data){ div.find('.Name').val(data.first_name, data.last_name) }, error:function(){ } }); }); });

controller;

public function create() { $patientData = Patient::all(); return view('inpatient.create', compact('patientData'));

}

public function findName(){

    $name = Patient::select('first_name', 'last_name')->where('hospital_no', $request->id);
    return response()->json($name);
}

please someone should help me out with the correct thing