kulmacet

Member Since 8 Months Ago

Experience Points
6,660
Total
Experience

3,340 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
62
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 2
6,660 XP
Mar
25
2 weeks ago
Activity icon

Awarded Best Reply on Laravel/Livewire Performance

Come to find out that I am testing/developing using FF and had the X-debug profiling tool turned on. Disabled the tool and off we went.

Activity icon

Replied to Laravel/Livewire Performance

Come to find out that I am testing/developing using FF and had the X-debug profiling tool turned on. Disabled the tool and off we went.

Mar
24
2 weeks ago
Activity icon

Started a new Conversation Laravel/Livewire Performance

I seem to be having a livewire performance issue, is this normal?

I have a form that has data for it. When I open this form the form shows up with no data then about a second later the data shows up. In my developers tools the page shows a 2 second trip to completion which seems long to me.

I'm using the mount method to populate this LW form and the elemets on the page are Livewire too. Here is the Livewire form edit.blade.php:

<div>
    <form wire:submit.prevent="edit" href="#" method="POST">
        <x-input.text wire:model="tenantName" class="w-1/3 pb-4" label="Tenant" readonly />
        <x-element.dropdown-db wire:model.lazy="letter_status" label="Letter Status" class="w-1/3" :selects="$letterStatus"/>
        <x-input.text wire:model.lazy="name_insured" class="w-1/3 pb-4" label="Insured" placeholder="Required..." />
        <x-input.text wire:model.lazy="policy" class="w-1/3 pb-4" label="Policy" placeholder="Required..." />
        <x-input.text wire:model.lazy="claim"  class="w-1/3 pb-4" label="Claim" placeholder="Required..." />
        <div class="flex">
            <x-button wire:click="submit">{{__('Submit')}}</x-button>&nbsp;
            <x-button wire:click="next">{{__('Next')}}</x-button>
        </div>
    </form>
</div>

Here is the Livewire component edit.php:

 public function mount()
    {

       (...)
	   
        $this->letterStatus = Element::grouping('LETTER_STATUS');
        $this->letter_status = $data->letter_status_dataid;
        $this->name_insured = $data->name_insured;
        $this->policy = $data->policy;
        $this->claim = $data->claim;
        $this->date_of_loss = Carbon::parse($data->date_of_loss)->format(config('app.date_format'));

    }

I hope this is enough information to help.

Feb
24
1 month ago
Activity icon

Replied to Livewire Component Understanding

I told you it would be simple, that was it. Sorry for the dumb question.

Activity icon

Started a new Conversation Livewire Component Understanding

This is probably a simple one.

I have a livewire component that is sort of working that will insert data into a database on the create (So far so good).

The problem is that not all the fields in the livewire:component are being filled as coded below.

(...)
public function create()
    {
        $data = $this->validate([
            'name_insured' => ['min:4','required'],
            'policy' => ['min:4','required'],
            'claim' => ['min:4','required'],
            'date_of_loss' => ['date'],
            'coverage_start' => ['date'],
            'coverage_end' => ['date'],
        ]);

        $createProject = Project::create([
            *'tenant_id' => session()->get('tenant_id'),
            *'name_insured' =>  $data['name_insured'],
            *'policy' =>  $data['policy'],
            *'claim' =>  $data['claim'],
            *'date_of_loss' =>  $data['date_of_loss'],
            *'coverage_start' =>  $data['coverage_start'],
            *'coverage_end' =>  $data['coverage_end'],
            'status_policy' => Element::byGroupingSelection('POLICY_STATUS','Open')->id,
            'created_by' =>  \Auth::user()->id,
            *'updated_by' =>  \Auth::user()->id,
        ]);
        dd($createProject);
    }
(...)
here is a portion from the DumpAndDie
	#attributes: array:11 [▼
	"name_insured" => "Constance Alford"
	"policy" => "111111"
	"claim" => "3454-9876"
	"date_of_loss" => "2015-12-03"
	"coverage_start" => "1989-01-09"
	"coverage_end" => "2014-02-18"
	"tenant_id" => 2
	"updated_by" => 3
	"updated_at" => "2021-02-24 14:59:21"
	"created_at" => "2021-02-24 14:59:21"
	"id" => 12
  ]

My question is why aren't the following fields not being updated?

'status_policy' 'created_by'

These fields exist in the database and the database seed process works as expected.

Any response appreciated.

Jan
11
3 months ago
Activity icon

Replied to Strpos() Expects Parameter 1 To Be String, Object Given

the component dropdown-link is a default build of the Laravel 8 and Laravel/Breeze package.

Kulmacet

Activity icon

Replied to Strpos() Expects Parameter 1 To Be String, Object Given

Thank you for the replies, I was trying to use the logout link in the code copy it up and change to profile but that did not work. I was able to get it to work with this code and all is well.

Again Thank you for the replies

<x-slot name="content">
    <x-dropdown-link
        onclick="document.location.href='{{ route('profile')}}';return false;">
        {{ __('Profile') }}
    </x-dropdown-link >
    <!-- Authentication -->
    <form method="POST" action="{{ route('logout') }}">
    @csrf
        <x-dropdown-link :href="route('logout')"
               onclick="event.preventDefault();
                   this.closest('form').submit();">
            {{ __('Logout') }}
        </x-dropdown-link>
    </form>
</x-slot>
Activity icon

Replied to Strpos() Expects Parameter 1 To Be String, Object Given

Did not work. Thanks for the reply.

Activity icon

Started a new Conversation Strpos() Expects Parameter 1 To Be String, Object Given

While using a default install of Laravel/breeze install I am trying to add a link to the dropdown list on the navigation but am getting an error:

strpos() expects parameter 1 to be string, object given

Here is the code. I'm not sure what I'm doing wrong. Any support appreciated.

Regards Kulmacet

<x-slot name="content">
        <x-dropdown-link :href="route('profile')"
            onclick="document.location.href='{{ config('APP_URL') }}/profile';return false;">
            {{ __('Profile(WORK)') }}
        </x-dropdown-link>
        <!-- Authentication -->
    <form method="POST" action="{{ route('logout') }}">
        @csrf
        <x-dropdown-link :href="route('logout')"
            onclick="event.preventDefault();
            this.closest('form').submit();">
            {{ __('Logout') }}
        </x-dropdown-link>
    </form>
</x-slot> 
Oct
25
5 months ago
Activity icon

Replied to Storing Laravel Snippits Inside A Database.

Yes, this makes sense. Also, you don't have to use Laravel to parse Laravel commands.

Thanks for the quick response.

Regards, Kulmacet

Activity icon

Started a new Conversation Storing Laravel Snippits Inside A Database.

Greetings all, I would like to build (dynamically) a menu for a project I am working on and would like to store this menu in a MySql database. As I try and store this data for the menu and then call it back it seems the Laravel portion of the code is being parsed as standard html.

My question is how can I store this menu (with Laravel elements) in the database and call them back with the Laravel elements being parsed correctly?

Any support appreciated.

Regards, Kulmacet