Msoft

Msoft

Member Since 1 Year Ago

Experience Points
4,230
Total
Experience

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

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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
4,230 XP
Jul
18
4 months ago
Activity icon

Replied to How To Validate Phone Number With Country Code?

@cronix is it like required|regex:/(0)[0-9]{9}/ but how can I use + value

Activity icon

Started a new Conversation How To Validate Phone Number With Country Code?

I have validated in My Controller phone number as following,

$this->validate($request, [
    
    'phone'    => 'required'
]);

I need to validate this phone number with country code like +61 how can I do this?

Jul
13
4 months ago
Activity icon

Replied to How To Customized Email Name In The Laravel App?

@snapey OK using Gmail how could I print sender email id here?

Activity icon

Replied to How To Customized Email Name In The Laravel App?

@snapey yes sender email or customized name like PPS

Activity icon

Started a new Conversation How To Customized Email Name In The Laravel App?

I am using Laravel 5.7 and using Gmail to sending emails from My App. it is working fine. but currently receiving emails are showing like this.Example 36673283249829975 - Welcome to the site but I need change Example as PPS how can I do this? his is My VeryfyUser.php file in Mail folder

public function build()
    {
            $token = bin2hex(random_bytes(7));
    $token = hexdec($token);

       
        return $this->subject($token)->view('emails.verifyUser');
    }
May
28
5 months ago
Activity icon

Replied to Not Working File Attachment With Laravel 5.7

@nomguy

Array
(
    [_token] => VRHfl8lh4SBfIXzrVZHEqTA6M0t6jqNxchEc3V5i
    [job] => Software Engineer
    [name] => msoft
    [exp] => 1
    [salary] => 65000
    [file] => Illuminate\Http\UploadedFile Object
        (
            [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 
            [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => msoft.pdf
            [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => application/pdf
            [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0
            [hashName:protected] => 
            [pathName:SplFileInfo:private] => C:\wamp64\tmp\phpF8B0.tmp
            [fileName:SplFileInfo:private] => phpF8B0.tmp
        )

)
Activity icon

Replied to Not Working File Attachment With Laravel 5.7

@nomguy now same error Call to a member function getClientOriginalName() on null

Activity icon

Replied to Not Working File Attachment With Laravel 5.7

@nomguy output is this Illuminate\Http\UploadedFile Object ( [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => Wijayasinghalage Nalaka Samantha Wijayasinghe.pdf [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => application/pdf [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0 [hashName:protected] => [pathName:SplFileInfo:private] => C:\wamp64\tmp\php10FE.tmp [fileName:SplFileInfo:private] => php10FE.tmp )

Activity icon

Replied to Not Working File Attachment With Laravel 5.7

@mvd did it but now got this error msg Call to a member function getClientOriginalName() on null

Activity icon

Started a new Conversation Not Working File Attachment With Laravel 5.7

I need attach some file and save to the table like .pdf and .jpeg using form submission in laravel 5.7 this is my file attach form group

<div class="form-group row">
<label for="inputPassword" class="col-sm-2 col-form-label">CV</label>
<div class="col-sm-10">
<input type="file" class="form-control-file" id="exampleFormControlFile1" name="file">
</div>
</div>

and controller is like this,

public function store(Request $request)
    {
                $datas = New Data;
        $datas->job = $request->input('job');
        $datas->name = $request->input('name');
        $datas->expe = $request->input('exp');
        $datas->salary = $request->input('salary');
        $datas->file = $request->input('file');
        $datas->save();
        return redirect()->back()->with('info','Your Job has been saved sucessfully');

    }

but when I submit form to save file following error message is occurred SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'file' cannot be null how can I fix this problem?

May
27
5 months ago
Activity icon

Started a new Conversation Rest API In Laravel

I am new to the Rest API. Please be kind enough let me know some good and simple but complete Rest API tutorials available on the internet.

Thank You.

May
18
6 months ago
Activity icon

Started a new Conversation 419 Sorry, Your Session Has Expired. Please Refresh And Try Again.

I am going to submit contact form data via the email as the following Controller,

public function contactUs()
   {
       return view('contactUs');
   }

   /**
    * Show the application dashboard.
    *
    * @return \Illuminate\Http\Response
    */
   public function contactUsPost(Request $request)
   {
       $this->validate($request, [
        'name' => 'required',
        'email' => 'required|email',
        'message' => 'required'
        ]);

       ContactUs::create($request->all());
        Mail::send('email',
        array(
           'name' => $request->get('name'),
           'email' => $request->get('email'),
           'user_message' => $request->get('message')
        ), function($message)
       {
       $message->from('[email protected]');
       $message->to('[email protected]', 'Admin')
       ->subject('Contact Form Query');
      });
   return back()->with('success', 'Thanks for contacting us!');
   }

and route is,

Route::get('contact-us', '[email protected]');
Route::post('contact-us',[
'as'=>'contactus.store',
'uses'=>'[email protected]'
]);

and contact form

<form action="{{route('contactus.store')}}" method="post">
<div class="form-group row">
    <label for="inputEmail3" class="col-sm-2 col-form-label">Name</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="inputEmail3" name="name" placeholder="Name">
    </div>
  </div>
  
  <div class="form-group row">
    <label for="inputEmail3" class="col-sm-2 col-form-label">Email</label>
    <div class="col-sm-10">
      <input type="email" class="form-control" id="inputEmail3" name="email" placeholder="Email">
    </div>
  </div>
  
   <div class="form-group">
  <label for="comment">Comment:</label>
  <textarea class="form-control" rows="5" name="message" id="comment"></textarea>
</div> 
  
  <div class="form-group row">
    <div class="col-sm-10">
      <button type="submit" class="btn btn-primary">Sign in</button>
    </div>
</form>
 

but when I click submit buttons I got following error massage ` 404

Sorry, the page you are looking for could not be found. ` how can fix this problem?

May
17
6 months ago
Activity icon

Started a new Conversation Differents Between Eloquent ORM And Query Builder?

there are two things in Laravel dealing with database as Eloquent ORM and Query Builder. I need to understand what is the differences between them?