markMngoma

markMngoma

Member Since 1 Year Ago

Experience Points 600
Experience Level 1

4,400 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 1
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

29 Apr
1 month ago

markMngoma started a new conversation Blog Post Card Float

Hello, I have written PHP Code to display blog posts and they do, however, I would like them to display in floating style on row, like how it is on Laracasts. Please advise me on how to do so.

Here is my code below:

Blade View Code:

<div class="row">
    <div class="col-md">
        <div class="card">
            <?=$post->image_tag("medium", true, ''); ?>
            <div class="card-body">
                <h5 class="card-title"><b>{{$post->title}}</b></h5>
                <p class="card-text"><b>{!! $post->generate_introduction(400) !!}</b></p>
            </div>
        </div>
    </div>
</div>

Here is the controller code:

$posts = $posts->orderBy("posted_at", "desc")
            ->paginate(config("blogetc.per_page", 10));

        return view("blogetc::index", [
            'posts' => $posts,
            'title' => $title,

        ]);
29 Mar
2 months ago

markMngoma started a new conversation The Common - SQLSTATE[HY000]: General Error: 1215 Cannot Add Foreign Key Constraint (SQL: Alter Table `chatter_user_discussion` Add Constraint `chatter_user_discussion_user_id_foreign` Foreign Key (`user_id`) References `users` (`id`) On Delete Cascade)

I have been trying to alter the foreign keys in the correct way, but I keep running into this error.

Here is the code for the migrations:

//CreateChatterUserDiscussionPivotTable public function up() { Schema::create('chatter_user_discussion', function (Blueprint $table) { $table->integer('user_id')->unsigned()->index(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->integer('discussion_id')->unsigned()->index(); $table->foreign('discussion_id')->references('id')->on('chatter_discussion')->onDelete('cascade'); $table->primary(['user_id', 'discussion_id']); }); }

//CreateForeignKeys public function up() { Schema::table('chatter_post', function (Blueprint $table) { $table->foreign('chatter_discussion_id')->references('id')->on('chatter_discussion') ->onDelete('cascade') ->onUpdate('cascade'); $table->foreign('user_id')->references('id')->on('users') ->onDelete('cascade') ->onUpdate('cascade'); }); Schema::table('chatter_discussion', function (Blueprint $table) { $table->foreign('chatter_category_id')->references('id')->on('chatter_categories') ->onDelete('cascade') ->onUpdate('cascade'); $table->foreign('user_id')->references('id')->on('users') ->onDelete('cascade') ->onUpdate('cascade'); }); }

The same applies for this one, I tried aligning the migrations in their sequence, but it still doesn't alter.

07 Feb
4 months ago

markMngoma started a new conversation MS-SQL To MySql Auto Sync

What's the best way to automate a registration process from an asp. net website to a Laravel website. I would like to automatically duplicate users from the MS-SQL database to the MySql database. What's the best way to approach that? An api or?

03 Feb
4 months ago

markMngoma started a new conversation Laravel CSV To MySql

Hello. I would like to import 100000 users from a CSV file to MySql. I have tried using the generic way to process, but it is too slow. What's the best way to write an efficient handling method?

30 Sep
8 months ago

markMngoma started a new conversation Regular Expression

How do I implement intensive regular expression in Laravel so that users won't able to enter information that is illegal on an application?

28 Jul
10 months ago

markMngoma started a new conversation Zip And Image File Compression

Is there a way to implement compression with zip and jpeg uploads for fast uploading speed? If there is, please give me a guide.

30 Jun
11 months ago

markMngoma started a new conversation Multivendor Authentication

How can I implement multiple vendor authentication on Laravel using the php auth command? I want to do similar authentication to Etsy or Ali express.

27 Jun
11 months ago

markMngoma left a reply on Adding Payment Authentication

@martinbean, thank you for that input.

markMngoma left a reply on Adding Payment Authentication

It does indeed. I just needed clarity and a point-of-view from another developer. Thanks!

markMngoma started a new conversation Adding Payment Authentication

Hi, I am working on a project, and I am quite stuck here. I don't know what form of authentication to use e.g. Gates, etc. The objective is to develop similar authentication to digital ocean, like when you sign-up with digital ocean. I would like the user to register, but unable to use the admin dashboard without paying a subscription fee and agreeing to the terms and conditions and verifying their account. I would really appreciate your feedback, because I would like to use the most suitable authentication method without wasting any time.

12 Feb
1 year ago

markMngoma left a reply on Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)

It worked. Thanks a lot. I have learnt a lot from this mistake.

markMngoma left a reply on Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)

The error screen says that the error is in the create function.

markMngoma left a reply on Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)

I am sorry about that. The full error: Class 'App\Http\Controllers\Category' not found This is the error on the screen: }

/**
 * Show the form for creating a new resource.
 *
 * @return \Illuminate\Http\Response
 */
public function create()
{
    //
    $categories = Category::pluck('name', 'id');
    $faculties = Faculty::pluck('name', 'id');
    return view('admin.product.create', compact('categories', 'faculties'));
}

/**
 * Store a newly created resource in storage.
 *
 * @param  \Illuminate\Http\Request  $request
 * @return \Illuminate\Http\Response
 */
public function store(Request $request)
{
    $formInput = $request->except(image);
    //Image Upload
    $image = $request->image;
    if ($image){
        $imageName = $image->getClientOriginalName();
        $image->move('image', $imageName);
        $formInput['image'] = $imageName;
    }

Arguments "Class 'App\Http\Controllers\Category' not found"

11 Feb
1 year ago

markMngoma started a new conversation Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)

I have a class error. I installed laravelcollective/html 5.4 and I was trying to design my form, but now the page is not working. There is my code: