Armani

Armani

Member Since 6 Months Ago

Experience Points
6,160
Total
Experience

3,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
53
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.

Level 2
6,160 XP
May
30
4 days ago
Activity icon

Replied to I Have Installed Laravel/ui Package..but Not Getting Register Button Link,

You have to be more descriptive and tell us which commands did you use.

Use documentation:

https://laravel.com/docs/7.x/frontend
May
18
2 weeks ago
Activity icon

Replied to How To Upload A Video File Into My Database In Laravel

Try this syntax:

'video' => 'mimetypes:video/avi,video/mpeg,video/quicktime'

it is from Laravel documentation:

https://laravel.com/docs/7.x/validation#rule-mimetypes
May
17
2 weeks ago
Activity icon

Replied to How To Upload A Video File Into My Database In Laravel

Can you show me your blade file, the form section, because you may forgot to add

<form enctype="multipart/form-data">
Apr
25
1 month ago
Activity icon

Replied to Value Is Not Binding For Checkbox: Vue

I think you should use it like this:

<input type="checkbox" :checked="todoList.todo_status" @change="check($event)" v-model="todo.todo_status">

you typed todo.todo_status but I can see that your object name is todoList not todo.

Apr
22
1 month ago
Activity icon

Replied to Where Are You All From?

I'm from Erbil @osama_abdullah

How about you?

Apr
05
1 month ago
Apr
04
1 month ago
Activity icon

Replied to ERROR: Call To A Member Function FullName() On Null

Why don't you use Laravel Accessors for fullName function in model?

https://laravel.com/docs/7.x/eloquent-mutators#defining-an-accessor
Mar
29
2 months ago
Activity icon

Replied to Button Action To Controller Route

Would you be more descriptive?

Mar
23
2 months ago
Activity icon

Replied to Useing Eloquent In Blade File Make Another Query?

Thank you all for your advices.

Mar
22
2 months ago
Activity icon

Replied to Where Are You All From?

Kurdistan region, Iraq

Mar
21
2 months ago
Activity icon

Replied to Useing Eloquent In Blade File Make Another Query?

Thank you Sergiu17, I know jlrdw, it is just a sample.

Activity icon

Started a new Conversation Useing Eloquent In Blade File Make Another Query?

In controller I got all users with this:

$users = User::all();

return view('users, compact('users'));

if I use this code in blade, does this make another query?

@foreach($users->where('active', true) as $user)
	<li>$user->name</li>
@endforeach
Activity icon

Replied to How To Refactor This Code?

Thank you, it was a great solution.

Mar
20
2 months ago
Activity icon

Started a new Conversation How To Refactor This Code?

I have this code to insert multiple rows to table:


rest = Restaurant::create($this->check());
$items = [];
if ($rest) {
 foreach (request()->item_id as $key => $value) {
  $items[] = [
'item_id' => request()->item_id[$key],
'type_id' => request()->type_id[$key],
'brand' => request()->brand[$key],
'quantity' => request()->quantity[$key],
'price' => request()->price[$key],
];
}
 $rest->details()->createMany($items);
} 

And it works fine but I want to refactor it, using Collection or other methods. but I couldn't.

I have 5 inputs inside blade file with names: item_id[], type_id[], brand[], quantity[] and price[].

Any suggestions?

Dec
08
5 months ago
Activity icon

Replied to Laravel Join Multiple Tables With Condition

What is the error you get?

Activity icon

Replied to Send Laravel Value To JS Value

You can use json method also

@json($qwin->pluck('id', 'title')
Dec
01
6 months ago
Activity icon

Replied to Paginate Collection Simple Example (Guide)

I didn't get it but Laravel already has Pagination method.

https://laravel.com/docs/6.x/pagination

Activity icon

Replied to Where To Begin?

I think it is better to begin with HTML and CSS and little bit of JavaScript.