nolannordlund

Founder at Project Rebel LLC

Member Since 3 Years Ago

Experience Points
12,240
Total
Experience

2,760 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
115
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 3
12,240 XP
Feb
26
2 months ago
Activity icon

Replied to Pass Paginated Data To Alpine? (same Issue Also Applies To Vue)

Calling User::paginate(x)->items() will return an array whereas User::all() is an Eloquent collection

Activity icon

Started a new Conversation Using Vapor Wildcard Certs On A Different Server

Vapor creates wildcard certificates for domains added to an account but it's not clear to me how I could use that for a different server. I would like to run WordPress on a separate server on a subdomain. Can I actually use the cert created by Vapor for that or do I need to go another route?

Activity icon

Replied to Pass Paginated Data To Alpine? (same Issue Also Applies To Vue)

Try passing it as JSON:

return view('pages.user.index')
        ->with('users', $users->toJson());

or

<div x-data="{ items: {{ json_encode($users->items()) }} }">
Activity icon

Started a new Conversation Vapor Deployment Size Is Too Big

I'm running into the deployment size limit with one of my Vapor projects. I've been deploying apps on Vapor for a while and this is the first time I've had this issue. My first thought was to try separate-vendor: true on my environment but the deployment artifact is the same size causing the deployment to fail still. Is separate-vendor still a thing? I know I had seen it in the past but I don't actually see it in the docs anymore. I don't have many public assets either so I'm not really sure why the deployment artifact is so big suddenly. I could also go the docker route if needed but I feel like docker has always been more trouble than it is worth.

Feb
17
2 months ago
Activity icon

Replied to Retrieving JSON Object From Incoming Request

Perfect. JSON.stringify was exactly what I needed. I updated my request like so:

            axios.post('/api/v1/search-events', {
                actor: 'placements',
                keywords: search.keywords,
                options: JSON.stringify(search.options)
            })
Activity icon

Replied to Get All Products That Belong To A Vendor

You could use Laravel's has many through to get all the products that belong to a provider. You would still need to find the provider which would end up being an odd sort of Eloquent relationship chain that you would be forming. If you added the hasManyThrough on your vendor, you'd end up with something like this:

$product->brand->vendor->products
Activity icon

Replied to Retrieving JSON Object From Incoming Request

I'm using axios to send a request from my Vue frontend:

            axios.post('/api/v1/search-events', {
                actor: 'placements',
                keywords: search.keywords,
                options: search.options
            })

The only headers that I am explicitly setting are in Laravel's bootstrap.js file:

window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

let csrf = document.head.querySelector('meta[name="csrf-token"]');
if (csrf) {
    window.axios.defaults.headers.common['X-CSRF-TOKEN'] = csrf.content;
} else {
    console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
}

Looking at the network tab in chrome devtools, I see JSON is being sent as my options property but Laravel is converting it to an array before I can validate that it is JSON.

    public function store(SearchEventStoreRequest $request)
    {
        $searchEvent = SearchEvent::create($request->validated());

        return new SearchEventResource($searchEvent);
    }
class SearchEventStoreRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'actor' => ['required', 'string'],
            'keywords' => ['required', 'string'],
            'options' => ['json'],
        ];
    }
}
Feb
16
2 months ago
Activity icon

Replied to Recommend An Admin Panel

I assume that you are using Laravel as the backend for your app? If so and you are looking for an admin panel to monitor your backend, you could try out Invoker.

Activity icon

Started a new Conversation Retrieving JSON Object From Incoming Request

I am sending a JSON string from my frontend which I intend to store in my database. I created a custom form request for validation but the JSON is being cast to an array before the request is validated. How do I prevent Laravel from casting my JSON to an array?

Nov
12
5 months ago
Activity icon

Started a new Conversation Database Encryption

I've been looking into some new hosting options for my business website and I saw that Vapor has an option for encrypting the database. I'm aware that it is relying on AWS to actually encrypt the database but I'd like to find out more. Does anyone have some good resources for how Vapor/AWS does database encryption other than the AWS docs (which I've already read)?