luddinus

luddinus

Member Since 5 Years Ago

Experience Points
25,160
Total
Experience

4,840 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
18
Lessons
Completed
Best Reply Awards
13
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.

Level 6
25,160 XP
May
10
2 weeks ago
Activity icon

Replied to Composer Require On Production, Best Way?

@drewdan @ramjithap Ok then, "composer install" it is. Thanks!

Activity icon

Replied to Composer Require On Production, Best Way?

@drewdan Yes I have a staging server. My question is? When I run "composer install", do I have to delete de vendor directory first? Other issue is that sometimes I receive memory error, but I fixed applying some swap to the server. (aws micro instance).

Activity icon

Started a new Conversation Composer Require On Production, Best Way?

Hi. I want to try some package locally and then upload to production. Which is the best way to install in production?

I was thinking to upload the entire vendor folder (and make a copy of production vendor directory, just in case).

Other way I read, like upload the composer.lock file and the run "composer install"... but my site is already on production, I don't know when to run the command without any bad surprises.

Is there a better way? Thanks.

Apr
14
1 month ago
Activity icon

Started a new Conversation [Forge] Redirect Always To Https://www

Hi,

is there a easy way to redirect always to https://www.mydomain.com?

I read this and I have some doubts: https://blog.laravel.com/forge-alias-domains

My Site domain is "production.mydomain.com" In the alias I'm going to put: mydomain.com,www.mydomain.com

I don't know whether this will redirect always to www, AND don't know if someone enter http://domain.com will redirect to www and to https... (I know I can always make changes to nginx config)

Currently I can't figure out because mydomain.com is not in the Forge Server.

Any help appreciated.

Thanks.

Apr
13
1 month ago
Activity icon

Started a new Conversation Which Are The Advantages On This Directives? (BootstrapVue)

First of all, I use BootstrapVue and say that it helps me a lot.

But I don't get the point of the most directives. E.g

Which is the advantage of writing this

<b-button variant="success">Button</b-button>

instead of

<button class="btn btn-success">Button</button>

It's not even "syntactic sugar". That's only one example.

I mean, these are useless components with no features at all.

What do you think? Anything am I missing?

Mar
18
2 months ago
Activity icon

Replied to How To Deal With "flash Messages" When Using An Api

Yes, same approach.

In my code I was using a global method "flash", that its a custom helper that does the same thing.

Activity icon

Replied to How To Deal With "flash Messages" When Using An Api

@alanholmes @deansatch

I think I'm going to apply de web middleware for now (only the web application is using the api).

I prefer to redirect, it's an example, maybe I create a post and redirect to the "show page" (posts/{post_slug}) and to make something consistent for other use cases.

Thanks for the responses.

Mar
17
2 months ago
Activity icon

Replied to How To Deal With "flash Messages" When Using An Api

You sure?

All the routes of the api are using the Api middleware (no sessions), will it work?

Activity icon

Started a new Conversation How To Deal With "flash Messages" When Using An Api

Hi,

I'm using my Api in my web application.

For example, a form that creates a new Post.

// Api/PostsController.php
public function store()
{
   $post = Post::create(request()->all());

   return ['success' => true];
}

My first approach is to redirect to the same page with a "success" flag when the request is successful (post is created)

axios.post('api/posts', formData).then(response => {
   window.location.href = '/posts?success';
});

And then in the WebController that shows the form, show a successful message when the request has the "success" flag.

// Web/PostsController
public function create()
{
   if (request()->has('success') {
      flash('Post created successfully');
   }

   return view('posts.create');
}

Any more aproaches?

Thanks.

Mar
05
2 months ago
Activity icon

Awarded Best Reply on Horizon Redis Ec2, Database Rds

Well, it seems that I have to restart the queue (supervisor), because I changed some .env variables, and it was taken some incorrect values (DB_HOST was one of them)

Activity icon

Replied to Horizon Redis Ec2, Database Rds

Well, it seems that I have to restart the queue (supervisor), because I changed some .env variables, and it was taken some incorrect values (DB_HOST was one of them)

Mar
04
2 months ago
Activity icon

Started a new Conversation Horizon Redis Ec2, Database Rds

Hi,

I'm having issues with "No query results for model".

I have an ec2 instance with redis installed, but the database is in rds instance.

When I queue a notification, I save some model, and when it tries to execute, it doesn't found the model, so the job fails.

It seems that the queue is trying to get the model but in another database (local database) instead of the rds...

Any help?

Mar
03
2 months ago
Activity icon

Awarded Best Reply on Laravel Airlock, Api In The Same Domain (not Even Subdomain)

Well, at the end I added "web" middleware to my api routes (I only use for the ajax request of my app), and when I have a "real api" (used on mobiles e.g), I would consider airlock or whatever

Activity icon

Replied to Laravel Airlock, Api In The Same Domain (not Even Subdomain)

Well, at the end I added "web" middleware to my api routes (I only use for the ajax request of my app), and when I have a "real api" (used on mobiles e.g), I would consider airlock or whatever

Feb
29
3 months ago
Activity icon

Started a new Conversation Laravel Airlock, Api In The Same Domain (not Even Subdomain)

Hi,

I'm having problems when I configure the AIRLOCK_STATEFUL_DOMAINS to mydomain.com (api is in mydomain.com/api)

If I dont add my domain to that env value (AIRLOCK_STATEFUL_DOMAINS) or if I dont add the "EnsureFrontendRequestsAreStateful" middleware to the api group middlewares, it works fine! (no problem with auth:airlock)

My question is, do I need to configure anything? Am I missing something?

Thanks in advance,

Jan
18
4 months ago
Activity icon

Replied to An Easy Way To Achieve This In Vue?

@fylzero Look the "v-data" concept there...

Activity icon

Started a new Conversation An Easy Way To Achieve This In Vue?

Hi,

I want to make some divs that have "Show more" content. Is there an easy way to make this without making a component?

Something like this (I think it's an alpine.js concept)

<div v-data="{ showingMore: false }">
   <div>Some content 1</div>
   <button @click="showingMore= true" v-hide="showingMore">Show more</button>
    <div v-show="showingMore">Lorem ipsum...</div>
</div>

// Another content with "scoped" variable
<div v-data="{ showingMore: false }">
   <div>Some content 2</div>
   <button @click="showingMore= true" v-hide="showingMore">Show more</button>
    <div v-show="showingMore">Lorem ipsum...</div>
</div>

Thanks!