hawkiq

hawkiq

Member Since 1 Year Ago

Baghdad

Web Developer at IQ TECH

Experience Points 3,880
Experience Level 1

1,120 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 36
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.

02 Feb
5 months ago

hawkiq started a new conversation Mamoto - Laravel API Integration

Hello guys I have a website and wanted to view analytical information for it I used Mamoto (Former Piwik) everything works fine on web version because I use JS code to track visitors actions, but I have API and I want to track visitors actions and my custom actions like web version, is there any package with laravel can make this easy ?

28 May
1 year ago

hawkiq left a reply on Fill Array Depends On Key From Another Array

@bobbybouwmann well I've tried array fill but never thought about using day as the key in the array, thanks it solved the problem :)

hawkiq started a new conversation Fill Array Depends On Key From Another Array

I have array contain days numbers [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]

and have another array got it from eloquent query

$items = Item::select('created_at','total')
                ->get()
                ->groupBy(function($val) {
                    return Carbon::parse($val->created_at)->format('d');
                });
            foreach ($items as $key=>$item){
                $totalq = 0;
                foreach ($item as $it){
                    $totalq += $it->total;
                }
                $arrSales [] = $totalq;
            }

which result like this [48600,13500,9700]

what I need to do is fill second array depends on days array something like this

[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48600,13500,9700,0,0,0,0,0,0,0,0,0,0,0,0,0]

05 Feb
1 year ago

hawkiq started a new conversation Using Mailable Got Error Undefined Variable

Hello guys am totally new to use Mailable class I've creating mail send function likes below:

php artisan make:mail FeedbackMail

class FeedbackMail extends Mailable
{
    use Queueable, SerializesModels;

    public $feedbackmail;
    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct($feedbackmail)
    {
        $this->feedbackmail = $feedbackmail;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->from('[email protected]')
            ->view('emails.send')
            ->text('emails.send_plain');
    }
}

in my controller I use this code to send mail

$objMail = new \stdClass();
        $objMail->name = 'My Name';
        $objMail->content = 'My message to send';
        $objMail->from = 'from person';
        $objMail->subject = 'Message Subject';

        Mail::to("[email protected]")->send(new FeedbackMail($objMail));

my blade file


<!DOCTYPE html>
<html>
<head>
    <title>New Message from {{$feedbackmail->name}}</title>
</head>
<body>
<h1>New Message from {{$feedbackmail->name}} </h1>
<a href="mailto:{{$feedbackmail->from}}">{{$feedbackmail->from}}</a>
<p>Asking about : {{$feedbackmail->subject}}</p>
<p>{{$feedbackmail->content}}</p>
</body>
</html>

I got error undefined variable name in send.blade

30 Jan
1 year ago

hawkiq left a reply on Retrieve Object Throught Many Models

@BezhanSalleh I think I was tired when asking this question :) because its worked without changing anything , thanks for help.

28 Jan
1 year ago

hawkiq started a new conversation Retrieve Object Throught Many Models

Hello guys I have something like this structure

Guide_description

id text guide_id

Guide

id category_id

Category

id title

I have belongsTo relation between Guide_description and Guide so I can retrieve category_id but what I want to retrieve title from Category, how can I achieve this ?

27 Oct
1 year ago

hawkiq started a new conversation Change Puplic_path Function

Hello guys am always use public_path() when uploading photos but today I've face a problem when trying to upload to my site and didn't allow me to upload because the path is incorrect I've checked error log and shows me , there is no public/storage folder, that's right because its public_html/storage so I put hard coded full path /home/username/public_html in my upload line how to change default public_path() dir so I can use it in any host ?