kennonb

kennonb

Member Since 5 Years Ago

Orlando, FL

Web Developer at Christ for all Nations

Experience Points 8,520
Experience Level 2

1,480 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 263
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.

08 Jan
6 months ago

kennonb left a reply on Laravel Nova, Vue.js, & Axios Common Config Options?

If anyone else runs into something similar.. I ended up creating a custom tool to add this config option, and just load it in via the NovaServiceProvider.

03 Jan
6 months ago

kennonb started a new conversation Laravel Nova, Vue.js, & Axios Common Config Options?

I have hopefully a quick question. Looking for a best practice. I'm using Nova and I have an API (using Passport) that I want to Authenticate with, but I need to add axios.defaults.withCredentials = true; to all API requests. This seems to be because I'm on different sub-domains (api.* & admin.*). Where is the best place to put this in Nova? Or should I append it in a custom tool?

Trying to make use of the CreateFreshApiToken Middleware btw, so I don't have to re-authenticate or store/transmit an oauth token during login.

15 Nov
2 years ago

kennonb left a reply on Laracasts Refresh

Love it. This looks fantastic. :) Great job!

I noticed this series' image is missing.

https://laracasts.com/series/how-to-accept-payments-with-stripe

12 Jul
4 years ago

kennonb left a reply on Override RubySass Default Dir

From what I can tell this isn't possible.

You should be able to jump back from the /resources/assets/sass directory to the directory that you're trying. So you should be able to do (since it looks like your vendor folder is in resources):

js
mix.rubySass([
        '../vendor/bootstrap-sass/assets/stylesheets/bootstrap.scss',
        'backend/main.scss'
], 'public/css/admin.css');
10 Jun
4 years ago

kennonb left a reply on Mandrill & Merge Tags

In thinking, I guess I could just send them via SMTP Headers, but was hoping to use their native API methods just incase any values might be truncated.

kennonb started a new conversation Mandrill & Merge Tags

Quick question, I hope.

Has anyone ever used Laravel's built-in support for Mandrill with Mandrill's merge tags?

https://mandrill.zendesk.com/hc/en-us/articles/205582487-How-do-I-use-merge-tags-to-add-dynamic-content-#provide-merge-data-through-the-api

Not seeing a way to pass this data through, and just wondering if it's possible?

Thanks!

01 Apr
4 years ago

kennonb left a reply on [L5] Extending/Rebind Router Or Custom Route Group

Sorry Trevor.. forgot to check the notification box, so I didn't get notified about your response.

I run this in the render method of the Exception Handler.

if ($request->header( 'host' ) === 'api.domain.com') {
    $response   = new ResponseBuilder(); // A custom class based on Dingo API to handle the responses.
    $statusCode = ( method_exists( $e, 'getStatusCode' ) ) ? $e->getStatusCode() : 500;

    return $response->withError( $e->getMessage(), $statusCode );
}
27 Mar
4 years ago

kennonb left a reply on [L5] Extending/Rebind Router Or Custom Route Group

So I ran into a similar issue as you (since I had a project that was using Dingo's API package). We haven't launched the project yet, but I wanted to get it upgraded to Laravel 5 for some of the new features.

Anyway, the approach I took was to create Middleware for everything that I needed, and inject other things into my controllers (ResponseBuilder to handle the Transformer output). You can then modify the request in whatever ways you need, and continue to pass the request through (pending the functionality that you need).

So a sample route:

Route::group( [ 'prefix' => 'api/v1', 'middleware' => 'auth'], function() {
    Route::get( '/endpoint', 'ApiController@endpoint' );
} );

You can use this method to pass variables through, depending on your needs. http://laravel.io/forum/10-15-2014-laravel-5-passing-parameters-to-middleware-handlers?page=1#reply-17080

Lastly you can use app/Exceptions/Handler.php to make sure all API requests pass a JSON object back instead of the default error handler. I do this by checking the domain that's being hit (since I have a specific domain tied to all API requests) and modifying those only).

Does that help?

28 Sep
4 years ago

kennonb left a reply on OAuth2.0 Server Tutorial

The rewrite branch from that package, which is updated for v4 of the League's OAuth 2 server, is a pretty robust explanation of the main grants and how to use them within Laravel.

https://github.com/lucadegasperi/oauth2-server-laravel/wiki

16 Sep
4 years ago

kennonb left a reply on [5.0] FormRequest: Returning The Saved Data?

Thanks! Totally makes sense. Not sure why I thought that it was more than just validation. Haha.

kennonb started a new conversation [5.0] FormRequest: Returning The Saved Data?

Ok, sorry for the probably inane question. I'm sure I'm just overlooking something. But in 5.0, in FormRequest's returned response, I'm not seeing where I would get the returned model that was just saved.

Before, I could simply attach it to a variable and have access to all of the data from the created record, but I'm a bit lost with this new FormRequest implementation.