mohamedJamal

mohamedJamal

Member Since 6 Months Ago

Experience Points
1,620
Total
Experience

3,380 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
13
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 1
1,620 XP
Mar
28
1 week ago
Activity icon

Replied to Response()->json() Return Different Types Value After Deploy

i use $product->setHidden(['description']);

Mar
27
1 week ago
Activity icon

Replied to Response()->json() Return Different Types Value After Deploy

https://github.com/axios/axios/issues/1723#issuecomment-512771961

I found where's the problem comes, comes from a database the raw has description column has HTML elements with style like (h1) so JSON is not Valid. @amaury do you know how to solve it? ^^

Activity icon

Replied to Response()->json() Return Different Types Value After Deploy

                    var self = this;
                    axios.post( '/'+window.App.lang+'/cart/add/'+this.slug)
                        .catch(error => {
                            flash(error.response.data,'danger');
                        })
                        .then(function (response) {
                            if(response.status === 200){
                            console.log(typeof response.data,typeof response,response);

                                self.$root.cart = response.data;
                                flash(self.$options.filters.langJson('Added to cart'));
                            }
                        });

i tested php and is json_encode working but the problem comes from axios i think, type of response.data is string i dont know why?

Mar
25
1 week ago
Activity icon

Started a new Conversation Response()->json() Return Different Types Value After Deploy

My code was working perfectly at homestead and return JSON as I expect when I deploy my APP the code does not return JSON like image >> https://ibb.co/LRZNhJr

Code

        return response()->json($cart);
// and I tried
        return response(json_encode($cart));

Feb
28
1 month ago
Activity icon

Replied to Save Image To Public Not Work

@amaury like he said php artisan storage:link

validation ( check if it is an image )

'image' => 'required|mimes:jpeg,png,jpg',

controller

// move with normal size
$image = $request->file('image')
$path = 'storage/brands/images/';
$image->move(public_path($path),$name = Str::random(10).'.'.$image->getClientOriginalExtension());
// copy after resize
$newSize = Image::make(public_path('storage/brands/images/'.$name));
$newSize->resize(120, 120);
$newSize->save(public_path('storage/brands/images/thumbnail/'.$name));

in blade

{{ asset('storage/brands/images/'.$brand->image )}}
//or 
{{ asset('storage/brands/images/thumbnail/'.$brand->image )}}

I hope I helped you, Good Luck.

Feb
06
1 month ago
Activity icon

Started a new Conversation Real Time Chat System With Laravel And NodeJs

How can I create chat system application with laravel, nodejs and socketio ?

any hint or ideas or tutorial help me ???

Jan
26
2 months ago
Activity icon

Awarded Best Reply on Translate URL From Database When SetLocale

Solved In show function product controller use (where & orWhere) to find a product then check request parameters then redirect with new $parameters if not equal.

i hope i could helped, if you have a problem or you know better way leave reply please. ^^

UPDATE : you can do it with middleware better than controller.

Activity icon

Replied to Translate URL From Database When SetLocale

Solved In show function product controller use (where & orWhere) to find a product then check request parameters then redirect with new $parameters if not equal.

i hope i could helped, if you have a problem or you know better way leave reply please. ^^

UPDATE : you can do it with middleware better than controller.

Jan
25
2 months ago
Activity icon

Started a new Conversation Translate URL From Database When SetLocale

I did controller to get another slug for update route after change language but i think i can do it better than controller with LaravelLocalization

example:

example.com/en/p/product_name

example.com/fr/p/produit_Nom

Get slug_fr from database

The code I did https://gist.github.com/MuhamedPy/fb9676a839e7ca34ca1188ede6323af3

Nov
01
5 months ago
Activity icon

Replied to Sh: 1: Cross-env: Permission Denied

@yottabit.at Thank you so much !!!