bugsysha

bugsysha

Member Since 5 Years Ago

Experience Points
348,435
Total
Experience

0 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
1768
Lessons
Completed
Best Reply Awards
239
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 50
348,435 XP
Sep
19
2 days ago
Activity icon

Replied to Command Class Vs Closure Performance

@michaloravec I guess you will receive the same answer, that "you don't know if it causes any performance issues" :D

Activity icon

Replied to Command Class Vs Closure Performance

Knowing Laravel, those callbacks are executed only when that command runs so it should not bring any performance decay. But it is true that I do not know that since I always create classes for every command.

Sep
18
3 days ago
Activity icon

Replied to Debugging Laravel Vapor Deployment Process

Yeah, contacting official Vapor support.

Activity icon

Replied to SMS Converstations.

Either some piece of info is missing or you can just use from info and based on that put it into specific thread.

Activity icon

Replied to Testing With Sqlite CONSTRAINT Name Issue

Show your migration.

Activity icon

Replied to Service Container Use Case

It is a good use case to use for, but you are overcomplicating things.

You should be able to just typehint the ManageFilters class in the constructor or the method of the controller.

class ThreadController extends Controller
{
  protected ManageFilters $manageFilters;

  public function __construct(ManageFilters $mangeFilters)
  {
    $this->manageFilters = $manageFilters;
  }

  public function index()
  {
    $this->manageFilters->addFilter($filter);
    // ...
  }
}

Or if you only need it in one controller method then:

class ThreadController extends Controller
{
  public function index(ManageFilters $manageFilters)
  {
    $manageFilters->addFilter($filter);
    // ...
  }
}
Activity icon

Replied to Pivot Table Queries, Many To Many Help

Naming is super confusing... Where is the third model?

Activity icon

Replied to Command Class Vs Closure Performance

Does it really matter? If you care about the performance on that level then maybe you've chosen wrong tech or stack.

Activity icon

Replied to Laravel Multilanguages Structure

Routing depends on the order in which you define them. So if you have something that is being matched when it shouldn't then just place it above.

Activity icon

Replied to Can't Indicate Unsed Or Undefine Vars With Sublime

Yeah, switch to a proper IDE. ST is only a text editor.

Sep
16
5 days ago
Activity icon

Replied to Get Users From A Collection Of Follows

You need users relationship on Location model.

Activity icon

Replied to Add Queue To Eloquent Observer

If you are OK with the "lag" then no issues there.

Activity icon

Replied to Add Queue To Eloquent Observer

But current state can be fetched from the database so no worries there.

Activity icon

Replied to Add Queue To Eloquent Observer

Create a job and do it there and just pass that Example object.

https://laravel.com/docs/8.x/queues#creating-jobs

Sep
14
1 week ago
Activity icon

Awarded Best Reply on How Do You Pass Data Through A Nested Component?

You should not solve such complex problems during weekends/holidays/birthdays :D

Activity icon

Replied to How Do You Pass Data Through A Nested Component?

You should not solve such complex problems during weekends/holidays/birthdays :D

Sep
08
1 week ago
Activity icon

Replied to Why Do I Have To Keep Unlinking And Relinking Storage?

@snapey it is very common for a developer not being able to explain the issue well cause he does not understand it. He needs guidance, but I do not have the energy right now to do it.

Activity icon

Replied to Why Do I Have To Keep Unlinking And Relinking Storage?

It always turns out to be that the person who wrote that did something wrong.

Activity icon

Replied to Spam

Sunday mornings seem to be the worst. There has also been recent spates of people creating a profile, reposting someone's existing answer so that it does not look out of place, with the idea of coming back later to insert their spam links.

People. You can't live with them, and yet they're everywhere :D

Activity icon

Replied to Spam

@automica yeah, I was feeling bit left out so I wanted to give it a try :D

Activity icon

Started a new Conversation Spam

Is it just me or spam discussions and replies count is increasing?

Activity icon

Replied to Why Do I Have To Keep Unlinking And Relinking Storage?

Then your hook deletes it.

Activity icon

Replied to Laravel Nova Docker

Is there anything useful in log files?

Activity icon

Replied to Why Do I Have To Keep Unlinking And Relinking Storage?

On all projects over many years I only had to do it once per project. You probably have something that removes that link.

Sep
07
2 weeks ago
Activity icon

Replied to How To Use Same Laravel Nova's Global Search ?

Not sure about that. It is safer if you look it up so I do not miss something.

You said you want same functionality with same performance. I know that Nova is using Algolia for Geo auto-fill stuff. Maybe your do not mind spending few bucks for excellent search results.

Almost every documentation site is using Alholia these days. Even projects that are not that popular. So maybe it is not charged per letter.

Sep
06
2 weeks ago
Activity icon

Replied to What Is The Best Theme For Laravel In Phpstorm ???

Default light theme. Can't beat the readability of it. Monokai at night.

Activity icon

Replied to Saving User Specific(!) Sort Order Of Array

If that is something specific to the UI I would use browser's Local Storage. But if that is a permanent user setting then I would use database.

Activity icon

Replied to Return A Ripository

How can you have model with multiple tables?

Sep
05
2 weeks ago
Activity icon

Replied to Return A Ripository

I would go with observers cause they are automatically triggered once the price is updated. No need for repositories, especially cause repositories are not at all a right pattern to use for this problem.

https://laravel.com/docs/7.x/eloquent#observers

Sep
04
2 weeks ago
Activity icon

Replied to How To Use Same Laravel Nova's Global Search ?

Try checking out Algolia search and there are videos here on Laracasts about it.

Sep
02
2 weeks ago
Activity icon

Replied to Database Testing Problem

Put die() instead of sleep() and check.

Activity icon

Replied to Sanctum - Make API Endpoints Accessible For External Http Clients

It seems to me that you are overlooking it. Have you tried it?

Sep
01
2 weeks ago
Activity icon

Replied to Wait For Response Until X Then Die (Http Facade)

But in my server it's so fast and it throw Illuminate/Http/Client/ConnectionException with message 'cURL error 6: Could not resolve host: immediately no matter what is set for timeout

Timeout is not about waiting till it runs out. It is only used when it is having trouble receiving response. If it gets the response that the host does not exists it will exit right away.

Activity icon

Replied to Wait For Response Until X Then Die (Http Facade)

Have you tried like it is in the docs?

$response = Http::timeout(3)->get(...);
Activity icon

Replied to Database Testing Problem

If it is using transactions then you can not see it in the database. Use DatabaseMigrations if you want to see it in the database.

Activity icon

Replied to One Laravel Application Connects To Server, But Not Another

Firewall or something like that might be restricting access.

Activity icon

Replied to Database Testing Problem

Are you using RefreshDatabase or DatabaseTransactions or DatabaseMigrations trait?

Activity icon

Replied to Phpunit Settings

Assign different values and see.

Activity icon

Replied to Cant Upgrade Php Version On MacOS Catalina

@connecteev Valet is local and no VMs required.

Aug
31
3 weeks ago
Aug
30
3 weeks ago
Aug
26
3 weeks ago
Activity icon

Awarded Best Reply on Actions Run On Multiple Rows - Nova

By multiple rows I guess you mean multiple models? If you queue the action it will execute the code for every selected model. What I've used in this situation is limit the visibility of the action to show it only on details page of the model (hide it from index). Then inside that action I've ignored selected models and just fetched correct models with Eloquent.

If you find some better solution please post it.

Aug
25
3 weeks ago
Activity icon

Replied to API Auth Routes

They are probably using Laravel Sanctum so maybe check that. Also look it up on YouTube, there are nice explanations.

Activity icon

Replied to Simple Conditional Relationship In Model

@jlrdw I would rather go with custom attribute casts than polymorphic relationships, but I just give two suggestions that are better than conditional inside a relationship.

Aug
24
4 weeks ago
Aug
20
1 month ago
Activity icon

Replied to Actions Run On Multiple Rows - Nova

By multiple rows I guess you mean multiple models? If you queue the action it will execute the code for every selected model. What I've used in this situation is limit the visibility of the action to show it only on details page of the model (hide it from index). Then inside that action I've ignored selected models and just fetched correct models with Eloquent.

If you find some better solution please post it.

Activity icon

Awarded Best Reply on Modifying Controller: Undefined Variable

public function mantenciones(Request $request){

      $this->validate($request, [
        'fecha-programada_servicio_start'=>'date_format:d-m-Y',
        'fecha-programada_servicio_end'=>'date_format:d-m-Y',
      ]);

      $role=Role::where('name','=','Tecnico')->first();
      $usuarios=$role->users()->select('users.id','users.name')->get();
      $jsonAsignables=$usuarios->pluck('name','id');
$clientes=$this->cliente->all("nombre");


      return view('reportes.mantenciones', ['request' => $request,'jsonAsignables'=>$jsonAsignables, 'clientes'=>$clientes]);
    }

This should work. You should also try to write cleaner code.