rider

rider

Member Since 1 Year Ago

Experience Points 650
Experience
Level
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Answer
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.

24 Oct
1 month ago

rider left a reply on New Project With Authentiication

Hi @Borisu i have done those steps, i have solved by clearing view and config cache, Thanks for your support..

rider started a new conversation New Project With Authentiication

I have created a new project and done.

php artisan migrate

php artisan make:auth

now while iam trying to register a user, error shows as follows

SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select count(*) as aggregate from users where email = [email protected])

can anyone please help me to sort it out..

17 Oct
2 months ago

rider left a reply on Ajax

Thanks for your help and suggestion @tyks, will meet in the next one..

16 Oct
2 months ago

rider left a reply on Ajax

The reason for using AJAX in my code is, Iam trying to perform CRUD operation using AJAX call, I have written the form in an bootstrap Modal popup

rider left a reply on Ajax

Thanks @tykus working fine, is there i want to use this line to load the same view aftert insert a record from ajax success function, is this a proper way to do

window.location.href = "/home";

success: function(response) { alert(response.message); window.location.href = "/home"; },

rider left a reply on Ajax

hi @tykus it's good to see you again, i can see the nwe record has been inserted in database, but iam unable to return to my view file from my controller..

public function registeruser(Request $request) {

    $home = new Home;
    $home->name = $request->input('name');
    $home->email = $request->input('email');
    $home->password = bcrypt($request->input('password'));
    $home->created_at = date('Y-m-d H:i:s');
    $home->updated_at = date('Y-m-d H:i:s');
    $home->save();
    $result_array = array('code' => '1', 'message' => 'Successfully record was inserted');
    echo json_encode($result_array);
    exit;
}

simply ends with ERROR: throw new MethodNotAllowedHttpException($others);

now i have changed the url as simple in my ajax

$.ajax({ type: "POST", url: "/registeruser",

rider started a new conversation Ajax

Can't able to submit a form using ajax, my ajax looks like,

$( "#registerusers" ).submit(function() {

     var url = $("#url").val();
     var $post = {};
     $post.name = $("#name").val();
     $post.email = $("#email").val();
     $post.password = $("#password").val();
     $post.password_confirmation = $("#password_confirmation").val();

     // console.log($post.name);
     // return false;
     $.ajax({
       type: "POST",
       url: url,
       data: {
       '_token': $('input[name=_token]').val(),
       'name': $post.name,
       'email': $post.email,
       'password': $post.password,
       },
       success: function(data) {
            alert(data);
            return false;
           },
       error: function () {
               alert('error handing here');
           }
     });
});

iam getting error as follows.

Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException No message

My Route:

Route::post('/registeruser', '[email protected]');

My controller:

public function registeruser(Request $request) {

    $home = new Home;
    $home->name = $request->input('name');
    $home->email = $request->input('email');
    $home->password = bcrypt($request->input('password'));
    $home->created_at = date('Y-m-d H:i:s');
    $home->updated_at = date('Y-m-d H:i:s');
    $home->save();
    exit;
    // return $this->index();
}

can you please help me to sort it out..

08 Aug
1 year ago
07 Aug
1 year ago

rider started a new conversation Https: Not Working In Laravel

For inbox edit iam using link to click a button, i have changed the url to https: it's not working, but if i used http: means working perfectly, what i need to do, can anyone please give me suggestion

I got The ERROR Looks Like:

Sorry, the page you are looking for could not be found.

1/1 NotFoundHttpException in RouteCollection.php line 161:

05 Aug
1 year ago

rider left a reply on Method Not Loading

The generateReport() will do the work of generating pdf from html page form

rider left a reply on Method Not Loading

In my .env file the QUEUE_DRIVER=Database but in my config/queue.php the

'default' => env('QUEUE_DRIVER', 'sync')

i have changed .env file as

QUEUE_DRIVER=sync

Now it's working Fine ,

Thank's For The Reply Mr. zachleigh, hope we will meet with another error.... THANK YOU..

rider left a reply on Method Not Loading

nothing happening simply LOADING, when the controll move to handle() method, but in the constructor the values are passing i can print the values in constructor

rider started a new conversation Method Not Loading

Iam using GenerateSubmissionReport for generating PDF report of htmlpdfapi service, but the handle method is not loading i don't know what is the problem, In my local its loding perfectly but in live not loading My code looks like..

01 Aug
1 year ago

rider left a reply on Creating New Field With Datatype In Existing Table Laravel

Thank you IgorBabko and DanielBanciulea your suggestions have helped me..

31 Jul
1 year ago

rider started a new conversation Creating New Field With Datatype In Existing Table Laravel

Iam trying to create new field with datatype in existing table, i have done the migration and created new field but i can't give it's default value or datatype for newly created field can any one help me to do this..

artisan command i have written: php artisan make:migration add_firstname_to_users --table-users

My migration file up function looks like: public function up() { Schema::table('users', function (Blueprint $table) { $table->string('lastname'); }); } how can i declare dataype and it's default value for this newly created lastname..

22 Jul
1 year ago

rider started a new conversation Twilio SMS Api Laravel

FatalErrorException in Twilio.php line 110: Class 'Services_Twilio' not found

return $this->twilio = new Services_Twilio($this->sid, $this->token, null, isset($http) ? $http : null);

What is the problem here i can't get it. any sugession to improve this one.

21 Jul
1 year ago

rider left a reply on New Table Creation In Exsisting Project

After migrating the table what i want to do i want to create model or without model, if i want to import anything, this is my first table creation and trying to insert into table..

rider left a reply on New Table Creation In Exsisting Project

Thanks for the reply guc43, can you please tell me the procedure for creating a table, i have revert all the code iam in the starting now, can you please guide me to do this one..

rider started a new conversation New Table Creation In Exsisting Project

Iam trying to migrate new table and want to insert data into it, iam now get confused by trying half a day for this, can any one please help me by give instructuction on how to create a table(not users table) another table whish is using foriegnkey as id belongs to users table.

i have done migrationand created table into database, but iam unable to insert data, i have worked with codeigniter for 2 years, now iam strugling with laravel, can anyone please help me out, iam eaggerly waiting to resolve this issue.

existing users table code looks like: usercontroller.php

save method:

public function saving(Request $request) {

    $current_user = Auth::user();
    if ($request->input('id') != '') {
        $user = User::where('primary_id', $current_user->id)->find($request->input('id'));

    } else {
        $user = new User();
         // return $request->all();
        $user->primary_id = $current_user->id;
        $user->is_primary = false;
        $user->activated = true;
    }
    if ($user != null) {
        $user->fill($request->all());
        //  Manualy value initialized for the User_type Field in User Table //
        $user->user_type = $request->input('user_type');
    }
        $user->save();
}

$user = User::where $user = new User(); $user->save(); i don't have any idea about these lines, but i want to do like this one because everywere inthis project all other table used to insert like this save() method, can anyone help me out, waiting for the improvement..

20 Jul
1 year ago

rider started a new conversation Value Initialization In Blade Template

Iam trying to input the value using radio button from view to controller, iam unable to do this, my code looks like:

<div class="input-group">
        <input type="radio" name="gender" value="{{--*/ $user->user_type = '1' /*--}}"> Business Log
        <input type="radio" name="gender" value="{{--*/ $user->user_type = '0' /*--}}"> Customer Log
      </div>

Purpose: while registration we can identify whether the user belongs to Business app or Customer app

Now i have all the fields in the user table into $user variable, so this way iam trying to input value for user_type, can anyone please help me to resolve this one..

18 Jul
1 year ago

rider left a reply on Call Route From Controller

sure sure sure!!!! I will @tykus

rider left a reply on Call Route From Controller

Thanks for the solution @tykus it's working perfectly, THANK YOU..

rider left a reply on Call Route From Controller

Iam Not writing the route code into controller, trying to redirects to that route from controller @option

rider started a new conversation Call Route From Controller

Iam trying to call route from controller it's not working can anyone please help me to resolve this one, my route looks like: Route::get('/submission/{submission_id}/facial-b', '[email protected]')->name('facial-b'); iam unable to do this, anybody please give me a sugession, iam new to Laravel..