Armani

Armani

Member Since 10 Months Ago

Experience Points
9,450
Total
Experience

550 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
78
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
9,450 XP
Sep
20
5 days ago
Activity icon

Replied to Fingerprint Scanner

@automica Any hardware that help me do the job. I didn't buy any device because I want to be as easy as possible.

Sep
19
6 days ago
Activity icon

Replied to Fingerprint Scanner

The App is in a local network and it doesn't need internet connection.

I have installed all necessary tools like Apache and MySQL.

Activity icon

Started a new Conversation Fingerprint Scanner

Hello

I searched the site and other places but I couldn't find a way to integrate Fingerprint scanner to Laravel project.

I created an App with Laravel that stores patients information but I need to store fingerprint of each patient then find each person by his fingerprint.

Most important part is that the App should be offline, I mean it shouldn't be an internet connection.

Thanks in advanced

Sep
03
3 weeks ago
Activity icon

Replied to Intervention Image Issue

Thanks a lot

Activity icon

Replied to Intervention Image Issue

Yes that's right, I changed memory_limit to 512M and it solved the problem, But is it a good idea to increase the memory limit?

Activity icon

Replied to Intervention Image Issue

I opened one of the images that has problem in Adobe Photoshop and save it again with less size but the problem still there, then I changed the dimension of image and made it less and it worked.

By the way I also checked log file but nothing is there.

Activity icon

Replied to Intervention Image Issue

It is not related to compression because I changed to 70 or less but nothing changed.

Just tell me how to debug it so I can find out the problem.

Sep
02
3 weeks ago
Activity icon

Replied to Intervention Image Issue

I'm not sure but I guess .JPG causing the issue. Is there a way I can debug it?

Activity icon

Replied to Intervention Image Issue

In line 3 it is Intervention image package i used. As I said something it is not working

Activity icon

Replied to Intervention Image Issue

No there's no space

Activity icon

Started a new Conversation Intervention Image Issue

I wrote this in controller

$image = $request->photo;
$name = $request->code .'.'.$image->getClientOriginalExtension();
Image::make($image)->save(public_path('/images/photos' . '/' . $name), 100);

it works fine but sometimes in line three stops, and shows a blank page, I don't know why.

I don't know it is because of type of file or size. I tried some images that won't work but sometimes the same image will work.

Aug
12
1 month ago
Activity icon

Replied to Help With Gate::before

Did you run :

php artisan ui bootstrap --auth

I mean do you have Login and Registration system?

Jul
01
2 months ago
Activity icon

Replied to Capitalize First Names

You can also user CSS property text-transform: capitalize.

Activity icon

Replied to Laravel Permission

Thanks you @marco

What do you think about performance, which one is better?

Jun
29
2 months ago
Activity icon

Replied to Laravel Permission

I know this package but I wanted to know the better way to do it.

Activity icon

Started a new Conversation Laravel Permission

I protected my web app by permission, I know that you have to use combination of Roles and Permissions, but I just made a table for permission and a pivot table for permission_user.

So I can get the permissions of each user from pivot table and it works fine.

My question is that: my way is better or using Role and Permissions together?

Thanks

May
29
3 months 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
4 months 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
4 months 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
5 months 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
5 months ago
Activity icon

Replied to Where Are You All From?

I'm from Erbil @osama_abdullah

How about you?

Apr
05
5 months ago
Apr
04
5 months 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
5 months ago
Activity icon

Replied to Button Action To Controller Route

Would you be more descriptive?

Mar
23
6 months ago
Activity icon

Replied to Useing Eloquent In Blade File Make Another Query?

Thank you all for your advices.

Mar
22
6 months ago
Activity icon

Replied to Where Are You All From?

Kurdistan region, Iraq

Mar
21
6 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
6 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?