fadahye

fadahye

Member Since 1 Year Ago

Garowe

Founder at Ilsoftware

Experience Points 5,200
Experience Level 2

4,800 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 44
Lessons
Completed
Best Reply Awards 1
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.

11 Sep
5 days ago
26 Jun
1 year ago

fadahye left a reply on Question About Using The Resource Route

Route::resource('admin', 'AdminController')->middleware('is_admin')->parameters([
    'user' => 'admin_user'
]); 

remove the ->name('admin') its resourceful route, its not only one route its many routes. you can look here you should use array to name your routes

https://laravel.com/docs/5.6/controllers#restful-naming-resource-routes

fadahye left a reply on Create Users In Database From Another Table

maybe you should add unique field such their name or email or anything you think is common between the repeating data. then you could fetch and create the new table.

my suggestion use the phone number as a unique Field

21 Jun
1 year ago

fadahye left a reply on How Could I Display This Data Using Angular I Am Using Laravel API To Fetch The Data

thanks anyway i figured out, please dont just post stuff thats not relevant to the question

fadahye started a new conversation How Could I Display This Data Using Angular I Am Using Laravel API To Fetch The Data

I have two tables Projects and Surveys. project have many surveys and survey belongs to project. this is my controller

   ```  return Project::with('surveys')->findOrFail($project); ``` 

i am using angular to display the data how could i display my nested data (the survey table)

<ion-card *ngFor="let project of allprojects; let i = index" (click)="gotoproject(project)">
        <ion-card-header class="cheader">
            {{project.name}}
        </ion-card-header>
        <ion-card-content >
            {{project.survey.name}} //this is where i having problem 
        </ion-card-content>
        
    </ion-card>
15 May
1 year ago
19 Mar
1 year ago

fadahye left a reply on How Can I Attach Arrays Of Values To Intermediate Table That Have Extra Column?

i culdnt find any workaround other than to attach each sector once with its budget. if i use the sector[] and the budget [] sometimes the user can select only one sector and one budget, in there i will have problem with mismatch array. do you have any other solution other than the one giving me links.

12 Mar
1 year ago

fadahye left a reply on How Can I Attach Arrays Of Values To Intermediate Table That Have Extra Column?

this is how i fixed so far to check each array if its set or not.

    $breakbudget1=$request->input('sectorbudget.0');
        $breakbudget2=$request->input('sectorbudget.1');
               if(!empty($breakbudget1 )){
                    $project->sectors()->attach([
                      1=>['budget' => $breakbudget1]
                      ]);
                 }
                 if(!empty($breakbudget2)){
                    $project->sectors()->attach([
                      2=>['budget' => $breakbudget2]
                      ]);
                 }

fadahye left a reply on Add Already Loaded Data In View To A Collection

can you show us what you have done so far (''' code ''')

fadahye left a reply on Where Are You All From?

Garowe, Somalia :)

fadahye left a reply on How Can I Attach Arrays Of Values To Intermediate Table That Have Extra Column?

Dear @bobbybouwmann thanks for the reply, i do read the docs however as i mentioned earlier i can attach one budget to one sector but when i try to attach multiple sectors[] to multiple budget[] i will receive this error.

"Array to string conversion (SQL: insert into project_sector (budget, project_id, sector_id) values (200, 127, 1))

        $sector=($request->sectors);
        $breakbudget=$request->sectorbudget;                
         $project->sectors()->attach($sector, ['budget' => $breakbudget]);
11 Mar
1 year ago

fadahye started a new conversation How Can I Attach Arrays Of Values To Intermediate Table That Have Extra Column?

i have two models sectors and projects, its many to many relationship therefore i have another module project_sector that has an extra column budget. i have tried to attach the array values of selected sector to its budget but i am having difficulty. i can individually attach but not all of the selected sectors with its budget.

form

@foreach ($sectors as $sector) {{ $sector->name}} budget

@endforeach

controller:

        $sector=($request->sectors);

        $breakbudget=$request->secbudget;

$project->sectors()->attach([ $sector=> ['budget' => $breakbudget],

        ]);
04 Mar
1 year ago

fadahye left a reply on Followable

but here is the thing you are not following the roles of the forum, your code is not clear try to write clear code so we can see what's going on!!