forratino

Member Since 6 Months Ago

Experience Points
200
Total
Experience

4,800 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 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.

  • Community Pillar

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

Level 1
200 XP
Jun
10
2 days ago
Activity icon

Replied to Trying To Get Property 'txtemail' Of Non-object

I want the mail to be sent right after the doctor is added

Jun
08
4 days ago
Activity icon

Replied to Trying To Get Property 'txtemail' Of Non-object

Thanks, I don't receive any errors and the data is added successfully but the email is not be been sent the email.

Activity icon

Started a new Conversation Trying To Get Property 'txtemail' Of Non-object

i am trying to send a welcome mail to the user when the data is added, when I submit the form, the data is added but I get the above error and the email is not sent. please help.

`` function add_docttor_form(Request $req){ $data=array(); $uuid = DB::select("SELECT uuid() as uuid"); $data['uuid']=$uuid[0]->uuid;

		$data['name'] = $req->txtname;
		$data['specialization'] = $req->txtspecialization;
		$data['gender'] = $req->rdgen;
		$data['phone'] = $req->txtcontact;
		$data['email'] = $req->txtemail;
		$data['hospital_associated'] = $req->txthospital;
		$data['bref_background'] = $req->txtdescri;
		$data['username'] = $req->txtusername;
		$data['password'] =  $req->txtpassword;

		$data['user_type'] = 3;

   		  if ($files = $req->file('filephoto')) {
            $file = $req->file('filephoto');
            $filename = $file->getClientOriginalName();
            $extension = $file->getClientOriginalExtension();
            $folderName = '/upload/banner/image/';
            $picture = str_random(10).time() . '.' . $extension;
            $destinationPath = public_path() . $folderName;
            $req->file('filephoto')->move($destinationPath, $picture);
            $data['profile_pic'] =$picture;
         }
	
		$doctor_data = DB::table('users')->insert($data);
	 Mail::to($doctor_data->txtemail)->send(new WelcomeMail());
		 Session::flash('message',__('Data added Successfully')); 
   Session::flash('alert-class', 'alert-success');
	return redirect('admin/doctor-list');



}  ``
Jan
15
4 months ago
Activity icon

Replied to Undefined Variable Problem

I am not able to get the current value of the database in my form options, like if I select single while adding the data and now I want to edit that data but the current value is not coming from the database.

please help me.

Activity icon

Replied to Undefined Variable Problem

Thanks for the help.

Activity icon

Replied to Undefined Variable Problem

Route::get('/', function () {
    return view('index');
});

Auth::routes();

Route::get('/home', '[email protected]')->name('home');

Route::middleware(['auth'])->group(function (){
    Route::resource('aboutmes', 'AboutMesController');


});
Activity icon

Replied to Undefined Variable Problem

I remove that but still the same problem :

Undefined variable: aboutme (View: C:\xampp\htdocs\AboutCourage\AboutCourage\resources\views\aboutmes\edit.blade.php)

Activity icon

Replied to Undefined Variable Problem

Undefined variable: aboutme (View: C:\xampp\htdocs\AboutCourage\AboutCourage\resources\views\aboutmes\edit.blade.php)

Activity icon

Replied to Undefined Variable Problem

thanks

@extends('layouts.courageadmin')

@section('content')
<section class="hk-sec-wrapper">
    <h5 class="hk-sec-title">Add Infomation</h5>
        <div class="row">
        <div class="col-sm"> 
            <form class="needs-validation" novalidate role="form"  method="post" action="{{ route('aboutmes.update' , [$aboutme->about_mes_id]) }}">
            {{ csrf_field() }}
            <input type="hidden" name="_method" value="put">
                <div class="form-row">
                    <div class="col-md-4 mb-10">
                        <label for="validationCustom01">First ame</label>
                        <input type="text" class="form-control" id="validationCustom01" placeholder="First name"   
                        name="about_mes_first_name" required>
                        <div class="valid-feedback">
                            Looks good!
                        </div>
                    </div>
                    <div class="col-md-4 mb-10">
                        <label for="validationCustom02">Middle name</label>
                        <input type="text"  name="about_mes_middle_name" class="form-control" id="validationCustom02" 
                        placeholder="Middle name"  required>
                        <div class="valid-feedback">
                            Looks good!
                        </div>
                    </div>
                    <div class="col-md-4 mb-10">
                        <label for="validationCustom02">Last name</label>
                        <input type="text"  name="about_mes_last_name" class="form-control" id="validationCustom02" 
                        placeholder="Last name"  required value ="">
                        <div class="valid-feedback">
                            Looks good!
                        </div>
                    </div>
                    <div class="col-md-4 mb-10">
                        <label for="validationCustom02">Contact</label>
                        <input type="text"  name="about_mes_contact" class="form-control" id="validationCustom02" 
                        placeholder="contact"  required>
                        <div class="valid-feedback">
                            Looks good!
                        </div>
                    </div>
                    <div class="col-md-4 mb-10">
                    <label for="validationCustom02">Status</label>
                        <select name="about_mes_status" class="form-control custom-select">
                        <option selected="">Select</option>
                        <option value="">Single</option>
                        <option value="">In Relationship</option>
                        <option value="">Merrade</option>
                    </select>
                        <div class="valid-feedback">
                            Looks good!
                        </div>
                    </div>
                    <div class="col-md-4 mb-10">
                        <label for="validationCustom02">Address</label>
                        <input type="text"  name="about_mes_address" class="form-control" id="validationCustom02"
                            placeholder="Last Address"  required>
                        <div class="valid-feedback">
                            Looks good!
                        </div>
                    </div>
                    <div class="col-md-4 mb-10">
                        <label for="validationCustom02">Proferssion</label>
                        <input type="text"  name="about_mes_proferssion" class="form-control" id="validationCustom02" 
                        placeholder="Last Proferssion"  required>
                        <div class="valid-feedback">
                            Looks good!
                        </div>
                    </div>
                </div>
                <button class="btn btn-gradient-primary" type="submit">Submit form</button>
            </form>
        </div>
    </div>
</section>
@endsection

Activity icon

Replied to Undefined Variable Problem

I am new here, so I don't how to format the code the way you guys do it.

I uploaded the code to Pastebin and the link is below.

https://pastebin.com/GmW2nWzg

Activity icon

Replied to Undefined Variable Problem

this is my blade file but i don't know what it not here. @extends('layouts.courageadmin')

@section('content')

Add Infomation
{{ csrf_field() }} First ame Looks good! Middle name Looks good! Last name Looks good! Contact Looks good! Status Select Single In Relationship Merrade Looks good! Address Looks good! Proferssion Looks good! Submit form @endsection
Activity icon

Started a new Conversation Undefined Variable Problem

my controller code: /** * Show the form for editing the specified resource. * * @param \App\AboutMes $aboutme * @return \Illuminate\Http\Response */ public function edit(AboutMes $aboutme) {

    $aboutme = AboutMes::find($aboutme->about_mes_id);
    return view('aboutmes.edit', ['aboutmes'=>$aboutme]);
}

my Edit view code:

{{ csrf_field() }} First ame Looks good!