Torpedo

Torpedo

Member Since 1 Year Ago

Experience Points
8,680
Total
Experience

1,320 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
73
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.

Level 2
8,680 XP
Oct
11
2 months ago
Activity icon

Started a new Conversation Foreach Loops Question

Hi,

i have a simple foreach in my blade view

@foreach ($addresses AS $address)
  
{{@address-street}}

    @foreach $address->position AS $pos)

    {{$pos->data}}

    @endforeach

@endforeach

the result is like this:

adress 1 -  more data
adress 2 - more data
adress 3 - more data
adress 3 - more infos
adress 3 - much more infos
adress 4 - more data

how can i show the result like this:

adress 1 - more data
adress 2 - more data
adress 3 - more data, more infos, much more infos
adress 4 - more data

or how can i ckeck if the next string in array is same as the previous or something like this..

thanks in advance

Oct
01
2 months ago
Activity icon

Replied to How To Change Table Row Color In Resource View?

Hi,

at first i created a computed field

            Text::make('Status', function () {
                return view('partials.status', [
                    'is_passing' => $this->isPassing(),
                    'is_paid' => $this->isPaid(),
                    'id' => $this->id,
                ])->render();
            })->asHtml(),

than i created also the methods isPassing and isPaid in my resource

    protected function isPassing(){

        return $this->canceled == 1;

    }

    protected function isPaid(){

        return $this->invoice_paid == 1;

    }

finally the bladefile for the view


@if ($is_passing)
<div class="test" style="background: red;">

<span><b>CANCELED</b></span>
<style>
    [dusk="{{$id}}-row"]{
             background: #ffdddd !Important;
    }
</style>
</div>

@elseif ($is_paid)

    <span><b>DONE</b></span>
    @if ($is_passing)
        <span><b>CANCELED</b></span>
        @endif

        <style>
            [dusk="{{$id}}-row"]{
                background: #dff0d8 !Important;
            }
        </style>


@endif

nova doesnt have classes for eacht row, so i used dusk..

Sep
28
2 months ago
Activity icon

Started a new Conversation Removing Custom Nova Tools

Hi, is there a command to remove a unused custom tool / field / etc. or what i have to do to remove them?

thanks

Aug
28
3 months ago
Activity icon

Replied to Duplicate Input Into Another Field

recently i saw a package for something like this..

https://github.com/codebykyle/calculated-field

Activity icon

Replied to Laravel Nova Resource, Combine Fields In Layout?

there is a package for this..

https://github.com/jobcerto/nova-grid

after installation you can add size to your fields..

->size('w-1/3')

i use it in my project and it works pretty well.

Aug
08
4 months ago
Activity icon

Replied to Missing Resource Route

so ok, found the issue, haha

the id field in the database was upper-case, changing to lowercase helped, everything works normal.. peww

Activity icon

Replied to Missing Resource Route

the policies where created long ago, i have checked them, they seem ok.. also when i view the resource manually i can see it..

Activity icon

Started a new Conversation Missing Resource Route

Hello,

i have no clue why but suddenly one of my resources has no link for view or edit, i can still create and delete but not view or edit.. i didn't change anything last weeks, and everything worked as it should.. what have could cause this issue???

the view link is:

https://mypage/nova/

instead of:

https://mypage/nova/resources/myresource/id

and also the edit link is wrong..

what can i do?

Aug
07
4 months ago
Activity icon

Started a new Conversation Duplicate Input Into Another Field

How can i achive that with laravel nova?

on the create page i would like to duplicate the input of one or more fields into another

(customer address into invoice address field)

right now i use computed field for this but its visible after the creation, so the flow is disturbed

thank you

Activity icon

Started a new Conversation Update Fields On Nova Index Page

Hi,

I made editable fields for the nova index page, but some value depends on each other, i wonder how can i update the other fields without reloading?

i mark invoices as paid on the indexpage and fields likea boolean invoice payd should update immediately.

right now i refresh the whole index to achieve that, but that doesnt look nice..

Jul
09
5 months ago
Activity icon

Replied to Nova Index Row Background Color

thanks, it worked!

Jul
08
5 months ago
Activity icon

Started a new Conversation Nova Index Row Background Color

Is there a way to change the background color of the index row based on some condition?

something like.. if resource has status canceled, background color red... how could i do this with nova?

Jul
03
5 months ago
Activity icon

Replied to Best Way To Check Invoice

or do i need broadcasting?

Activity icon

Started a new Conversation Task Scheduling Between Dates

Hi,

Is it possible to run a command only from date to date? I scrape data from a website and save it in a model but i need the data only lets say from jan-june..

thanks

Activity icon

Started a new Conversation Best Way To Check Invoice

I am not sure what the best way is to check something like..

if invoice overdue date is past, then create reminder

where do i write this logic? in an observer? event? scheduling? or something else..