asadbinamer

asadbinamer

Member Since 2 Years Ago

Experience Points 660
Experience Level 1

4,340 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 3
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.

19 Mar
2 years ago

asadbinamer left a reply on Passing Array Value In Db

@ctroms yes it is resolved ......bundle of thanks :)

asadbinamer left a reply on Passing Array Value In Db

@ctroms how to call them in controller means how to request them ??

asadbinamer left a reply on How To Pass Array Values In Db

this is how i am passing $question variable

public function store(Request $request ,Question $question){

Schema::create('add_questions', function (Blueprint $table) { $table->increments('id'); $table->integer('question_id'); $table->string('question'); $table->string('answer'); $table->string('correct')->nullable(); $table->timestamps();

asadbinamer left a reply on Passing Array Value In Db

it is there but not shown in code

asadbinamer left a reply on How To Pass Array Values In Db

AddQuestion::create([

           'question'=>request('question'),
             'answer'=>request('answer'),
             'question_id'=>$question->id

asadbinamer left a reply on How To Pass Array Values In Db

@ctroms

this is my form code

{{csrf_field()}}
<div class="container">
      <div class="row">
    <div class="col-sm-4">
     <label for="answer">Question</label>

  
         <input class="form-control" name="question[]" id="answer" value="" type="text" placeholder="Enter Answer" />
   </div>
         
         <div class="col-sm-4">
         <label for="answer">Answer</label>

        
         <input class="form-control" name="answer[]" id="answer" value="" type="text" placeholder="Enter Answer" />
         </div>
         <div class="col-sm-4">
         </br></br>
         
          <p><a href="#" class='remove'>Delete Question</a></p>
          </div>
          </div>
        </div>
        

Add Question

asadbinamer started a new conversation How To Pass Array Values In Db

Please help me I am getting this error

Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, integer given, called in D:\xampp\htdocs\assignment\vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\Grammar.php on line 681 and defined

asadbinamer left a reply on Passing Array Value In Db

My controller code

AddQuestion::create([

             'question'=>request('question'),
             'answer'=>request('answer'),
             'question_id'=>$question->id
          
        ]);

asadbinamer left a reply on Passing Array Value In Db

My form code

{{csrf_field()}}
<div class="container">
      <div class="row">
    <div class="col-sm-4">
     <label for="answer">Question</label>

  
         <input class="form-control" name="question[]" id="answer" value="" type="text" placeholder="Enter Answer" />
   </div>
         
         <div class="col-sm-4">
         <label for="answer">Answer</label>

        
         <input class="form-control" name="answer[]" id="answer" value="" type="text" placeholder="Enter Answer" />
         </div>
         <div class="col-sm-4">
         </br></br>
         
          <p><a href="#" class='remove'>Delete Question</a></p>
          </div>
          </div>
        </div>
        

Add Question

asadbinamer started a new conversation Passing Array Value In Db

I am storing form values in db but the values are in array and it is not storing the data and giving me the following error

ErrorException in Grammar.php line 135: Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, integer given, called in D:\xampp\htdocs\assignment\vendor\laravel\framework\src\Illuminate\Database\Query\Grammars\Grammar.php on line 681 and defined

15 Mar
2 years ago

asadbinamer left a reply on Upload File In Laravel 5.4

@silverxjohn I have the folder but still no response.........what type of permission ??

asadbinamer left a reply on Upload File In Laravel 5.4

upload.blade.php

class UploadsController extends Controller { public function show (){ return view ('blog.upload'); }

public function upload(){
    if(Input::hasFile('file')){
        echo 'Uploaded';
        $file=Input::file('file');
        $file->move('uploads' , $file->getClientOriginalName());
        echo '<img src="uploads/' . $file->getClientOriginalName().'"/>';
        
        
    }

    else {

        echo 'Not Uploaded';
    }
}

}

asadbinamer started a new conversation Upload File In Laravel 5.4

I am uploading the file and it is showing the file also but not storing the file in folder here is my code......Please help me

routes.php

Route::get('/view' , '[email protected]'); Route::post('/upload' , '[email protected]');

upload.blade.php

@extends('blog.master') @section('content')

{{csrf_field()}} @endsection

uploadscontroller.php

09 Mar
2 years ago

asadbinamer left a reply on Mail Is Not Sending Through Laravel

@djay I have tried it but again the connection timeout ......

asadbinamer left a reply on Mail Is Not Sending Through Laravel

If I change port to 465 the this error occurs

Connection to tcp://smtp.gmail.com:465 Timed Out

asadbinamer left a reply on Mail Is Not Sending Through Laravel

if I try the ssl encryption then this error occurs

ErrorException in StreamBuffer.php line 94: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

asadbinamer left a reply on Mail Is Not Sending Through Laravel

the config/mail.php is using the same variables.....no issue with that....

asadbinamer left a reply on Mail Is Not Sending Through Laravel

yes but it still gives the same error......I am not understanding the STARTTLS command.....what does that mean ??

asadbinamer left a reply on Mail Is Not Sending Through Laravel

These are all correct

MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=mygmail.com MAIL_PASSWORD=mypassword MAIL_ENCRYPTION=null

These are my settings

Can you suggest please ??

asadbinamer started a new conversation Mail Is Not Sending Through Laravel

This is my error

Swift_TransportException in AbstractSmtpTransport.php line 383: Expected response code 250 but got code "530", with message "530 5.7.0 Must issue a STARTTLS command first.gh9sm2847345pbc.gsmtp

Can anyone help me ??