rider

rider

Member Since 2 Years Ago

Experience Points 900
Experience Level 1

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

12 Jul
1 week ago

rider left a reply on Redirection In Laravel

works fine now iam trying to change the "past due" invoice to "void" stage and struggling with that, code looks like, invoice is in past due while checked with stripe account

$url ="https://api.stripe.com/v1/invoices/
    in_1EuGWXXXXXXXXXXXXXX/void \
    -u sk_test_XXXXXXXXXXXXXX \
    -X";

    // $url ="https://api.stripe.com/v1/customers?limit=3";

    $ch = curl_init(); //open connection
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HTTPHEADER, [
        'Authorization: Bearer sk_test_3iIP8u46agjTQ2vPau9oAji5',
    ]);
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13");
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_TIMEOUT, 180);
    $result_count = curl_exec($ch); //execute post

    echo"<pre>";
    print_r($result_count);
    exit;

rider left a reply on Stripe CURL Request

This is the CURL now iam trying as per your example but it remains the same, and now i have trying to make an invoice to "past due" stage "void" stage still iam receiving empty result while i check the invoice in stripe it doesn't change

$url ="https://api.stripe.com/v1/invoices/
    in_1EuGWwI0fZrJ7D07tPYOAOHM/void \
    -u sk_test_3iIP8u46agjTQ2vPau9oAji5: \
    -X";

   $ch = curl_init(); //open connection
   curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
   curl_setopt($ch, CURLOPT_URL, $url);
   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
   curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13");
   curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
   curl_setopt($ch, CURLOPT_TIMEOUT, 180);
   $result_count = curl_exec($ch); //execute post
   echo"<pre>";
   print_r($result_count);
   exit;

rider started a new conversation Stripe CURL Request

Iam trying to make CURL request to get customer from stripe not using any library, iam receiving empty result, can anyone please help me to solve this one, curl looks like

$url ="https://api.stripe.com/v1/customers?limit=3 \
-u sk_test_3iIP8u46agjTQ2vPau9oAji5: \
-G";


$ch = curl_init(); //open connection

curl_setopt($ch, CURLOPT_URL, $url); $result_count = curl_exec($ch); //execute post echo"

";
print_r($result_count);
exit;

rider left a reply on Redirection In Laravel

Iam trying to make CURL request to get customer from stripe not using any library, iam receiving empty result, can anyone please help me to solve this one, curl looks like

    $url ="https://api.stripe.com/v1/customers?limit=3 \

-u sk_test_3iIP8u46agjTQ2vPau9oAji5: -G";

   $ch = curl_init(); //open connection
   curl_setopt($ch, CURLOPT_URL, $url);
   $result_count = curl_exec($ch); //execute post
   echo"<pre>";
   print_r($result_count);
   exit;

rider left a reply on Redirection In Laravel

Thanks for your help Mr.Spaan

rider left a reply on Redirection In Laravel

Thank you Mr.Spaan.. and sorry to ask again, please change the second route group look like below, once again thanks for your reply.

Route::domain('www.domain.com')->group(function () {

06 Jul
2 weeks ago

rider left a reply on Redirection In Laravel

Hi Spaan can you please change the domain name as shown in my post , your idea has worked, thanks for your reply.

05 Jul
2 weeks ago

rider left a reply on Redirection In Laravel

Hi khorram thanks for the reply..

rider left a reply on Redirection In Laravel

Hi Spaan can you please change the domain name as shown in my post , your idea has worked, thanks for your reply.

rider started a new conversation Redirection In Laravel

Iam working in a project using Laravel and Angular 7, and trying to make the payment using stripe

https://example.domain.com/admin - will goes to angular 7

we are trying the payment URL like - https://payment.domain.com configured in route look like

$domain = parse_url(request()->root())['host']; if($domain=='payments.taximobility.com'){ Route::get('/', function () { return 'welcome'; }); Route::get('payment/{id}', '[email protected]'); Route::post('paymentStripe', '[email protected]_payment'); Route::get('paymentFails', '[email protected]'); } else {

remaining routes declared here

}

if i hit http://payment.domain.com/admin it's directly going to angular

/admin is configured in http://example.domain.com/admin, i don't have any idea why it's directs through payment URL, can anyone please help us to solve this issue.

29 Apr
2 months ago

rider left a reply on Laravel Weebhook

Thanks for the reply grenadecx, i will check..

24 Apr
2 months ago

rider left a reply on Laravel Weebhook

i have added that too in csrf

protected $except = [
        'webhook/stripe',
        'hub_spot'
];

and i tried to call this URL in postman and i'm getting "message": "", "exception": "Symfony\Component\HttpKernel\Exception\NotFoundHttpException", "file": "/var/www/mis/v1.0/api/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php", "line": 179,

rider started a new conversation Laravel Weebhook

Iam trying to write a webhook to retrive contacts from hubspot, i have triggered the webhook URl in hubspot, but my function is not called it showing server response with error code 500, can you please help me to slove this one:

router:

Route::post('hub_spot', '[email protected]_spot');

controller:

public function hub_spot() {

    echo"hai laravel";
}
24 Oct
8 months 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
9 months ago

rider left a reply on Ajax

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

16 Oct
9 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
2 years 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
2 years 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
2 years 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
2 years 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..