mac03733

mac03733

Member Since 1 Year Ago

Experience Points
6,170
Total
Experience

3,830 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
4
Lessons
Completed
Best Reply Awards
5
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
6,170 XP
Dec
05
1 week ago
Activity icon

Replied to Symfony\Component\Debug\Exception\FatalErrorException

thanks but, i have seen these and i wasnt sure if its the best solution because

  • i dont thing editing the vendor is a good idea
  • seems like a temporary fix because id have to go through that every time i create a project
Activity icon

Replied to Symfony\Component\Debug\Exception\FatalErrorException

@nakov yes i did and it says Nothing to install or update

Activity icon

Started a new Conversation Symfony\Component\Debug\Exception\FatalErrorException

when i run

laravel new project-name

i use valet so when i do project-name.test , i get the following error

Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)

i recently updated to

  • Mac OS Catalina
  • php 7.2.25

ALL MY OTHER PROJECT PREVIOUSLY CREATED DO NOT GIVE THIS ERROR

Jul
08
5 months ago
Activity icon

Replied to Mb_strpos() Expects Parameter 1 To Be String, Object Given

@johnef_sh please mark this as solved so others can easily know a solution was found

Jul
04
5 months ago
Activity icon

Replied to 413 Request Entity Too Large ( When Uplaoding Image )

after a bit of reading, i realised that editing the php.ini is acutally optional since the message is coming from nginx so i went back and increase to a higher value

client_max_body_size 100M;  

ill read some more and see what are suitable values.

but at-least now it makes it to controller validation

THANKS FOR YOU HELP GUYS

Activity icon

Replied to 413 Request Entity Too Large ( When Uplaoding Image )

so far my current configurations meet what you are saying, but for some reason i still keep getting 413 Request Entity Too Large

Activity icon

Replied to Chaining Relationship

take it step by step

  • try
$auctionX->bids;

if this get correct results

  • then focuse on fixing the relationship between bids and user models
$auctionX->bids->user;

i reccomend you stick to laravels recoments ways of naming models and attributes, that way relastionships will be easier for you

https://laravel.com/docs/5.8/eloquent-relationships

Activity icon

Replied to Chaining Relationship

do you already have relationships set up on your models

if yes you should be able to do somthing like

$users = $auctionX->bids->user;

or

$users = User::whereHas('bids', function($bid) use ( $acution_id) {
        $bid->where('auction_id', $acution_id);
})->get();

if you dont have relationships set up, i recomment you look at

https://laravel.com/docs/5.8/eloquent-relationships

and things will be easier

Activity icon

Replied to .ENV DEPLOYMENT FOR PRODUCTION SERVER

so far iv just been using git hooks to push to production, this way i only setup th .env manually once .. then for all future changes i make it uses the same .env

  • cant you have a script that copies the .env file everytime the new server is created
Activity icon

Replied to Making Imported Vue Components Accessible Throughout My Laravel App

if you want to access a vue component gloably all you have to do is register it in app.js

the syntax looks somthing like

import MyiView from './components/IViewUI.vue';

Vue.component('myiView', MyiView);

now you can use component anywhere in your project , aslong as ther is a vue root id="app" <--somthing like

<myiView></myiView>

for more details https://vuejs.org/v2/guide/components-registration.html

hope that helps

Jul
03
5 months ago
Activity icon

Replied to 413 Request Entity Too Large ( When Uplaoding Image )

@MARKUS.HEB - i dont think thats a good idea, if u set upload_max_filesize = 2m and post_max_size = 2m, you might have a problem when u try to send a file with 2mb size and other content increasing the post size.

Activity icon

Replied to 413 Request Entity Too Large ( When Uplaoding Image )

@WILK_RANDALL - i think believe so , it should be th one under

/etc/php/7.2/fpm/php.ini

if am not mistaken

Activity icon

Replied to 413 Request Entity Too Large ( When Uplaoding Image )

@MSTRAUSS - the image is 5MB , the post_max_size is higher than allowed. but for some reason its still not working.

Activity icon

Replied to 413 Request Entity Too Large ( When Uplaoding Image )

@MUNAZZIL - yes , i mentioned that in the question

Activity icon

Replied to 413 Request Entity Too Large ( When Uplaoding Image )

@MUNAZZIL - still get 413 Request Entity Too Large

Activity icon

Started a new Conversation 413 Request Entity Too Large ( When Uplaoding Image )

i have validation in control

$this->validate($request,[
              'member_image' => 'mimes:jpeg,jpg,png|image|max:3000'
            ]);

validation works on local ,but on sever i get 413 Request Entity Too Large error

what i hav tried:

i set upload_max_filesize in php.ini and i set client_max_body_size in nginx.conf

then i restart them , still same problem