Dalivan

Dalivan

Member Since 6 Months Ago

Jakarta

Experience Points
7,880
Total
Experience

2,120 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
71
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
7,880 XP
Jul
07
3 days ago
Activity icon

Replied to How To Import Multi Carousel Item Slider In Project?

Hi, do you found the solution? please share

Activity icon

Started a new Conversation Dynamic Item Bootstrap Carousel

Hi. I have 6 picture, I use bootstrap carousel in 1 row have 3 column. The problem is Carousel every show only 1 image.

<div id="myCarousel" class="carousel slide" data-ride="carousel">
                        <!-- Carousel indicators -->
                        <ol class="carousel-indicators">
                            @foreach ($galery as $item)
                                <li data-target="#myCarousel" data-slide-to="{{ $loop->index }}" class="{{ $loop->first ? 'active' : '' }}"></li>
                            @endforeach
                        </ol>
                        <!-- Wrapper for carousel items -->
                        <div class="carousel-inner" role="listbox">
                            @foreach ($galery as $item)
                            <div class="carousel-item {{ $loop->first ? 'active' : '' }}">
                                <div class="row">
                                    <div class="col-sm-4 text-center">
                                        <div class="mediatutors">
                                            <img src="{{ $item->image }}" alt="">
                                        </div>
                                        <p class="overview"><br><b>{{ $item->title }}</b>,<br> <h6>{{ $item->subtitle }}</h6></p>
                                    </div>
                                </div>
                            </div>
                            @endforeach
                        </div>
                    </div>

Thank you

How to in I slide have 3 image active

Jul
03
1 week ago
Activity icon

Replied to Npm WARN Deprecated

Hi.. I was follow your instruction, so far so good but after that I have some information from npm found 317 low severity vulnerabilities:

[npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1085 packages from 494 contributors and audited 1091 packages in 39.766s

36 packages are looking for funding
  run `npm fund` for details

found 317 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

> @ dev /home/vagrant/code/helloworld
> npm run development


> @ development /home/vagrant/code/helloworld
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

 	Additional dependencies must be installed. This will only take a moment.
 
 	Running: npm install vue-template-compiler --save-dev --production=false
 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

 	Okay, done. The following packages have been installed and saved to your package.json dependencies list:
 
 	- vue-template-compiler
 
98% after emitting SizeLimitsPlugin

 DONE  Compiled successfully in 14889ms                                

I has run 'npm audit fix' but problem not solve.

[[email protected]:~/code/helloworld$ npm audit fix
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

up to date in 7.628s

36 packages are looking for funding
  run `npm fund` for details

fixed 0 of 317 vulnerabilities in 1093 scanned packages
  317 vulnerabilities required manual review and could not be updated

Please help, thanks.

Jul
01
1 week ago
Activity icon

Replied to Npm WARN Deprecated

Finally I get a response. For a while I Uninstall homestead then move to valet, even though I have been using homestead for 7 months. I'll try your suggested. Thanks for your response.

Jun
30
1 week ago
Activity icon

Started a new Conversation Npm WARN Deprecated

Would you mind helping me? give a solution

[email protected]:~/code/homestead$ php artisan ui bootstrap --auth
Bootstrap scaffolding installed successfully.
Please run "npm install && npm run dev" to compile your fresh scaffolding.
Authentication scaffolding generated successfully.


[email protected]:~/code/homestead$ npm install && npm run dev
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"<8.10.0"} (current: {"node":"14.4.0","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/vagrant/code/homestead/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json.1580690678
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/vagrant/code/homestead/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json.1580690678'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2020-06-30T22_32_36_046Z-debug.log

Jun
27
1 week ago
Activity icon

Commented on Build A Like/Dislike System

How to avoid duplicate entry?

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-2' for key 'likes.likes_user_id_tweet_id_unique' (SQL: insert into `likes` (`user_id`, `tweet_id`, `liked`, `updated_at`, `created_at`) values (1, 2, 0, 2020-06-27 07:42:57, 2020-06-27 07:42:57)).

updateOrCreate not work for me. Thank you.

Jun
07
1 month ago
Activity icon

Replied to Schema Database For Banking System

@martinbean Hi. I'm not working at banking. At this time I just want to build a banking system to improve education. I know this is a crazy idea because I don't have basic accounting and need some people to do. Thank you for your time and suggest. I'll try to learn some features Stripe.

Activity icon

Replied to Schema Database For Banking System

Determining schema database from begin is one of the most important to starting project so we don't do a lot of time repetition. I'll try follow your instruction. If you don't mind, could you kindly give suggest the best laravel package as support this project.

Thank you for taking the time and effort in doing something.

Activity icon

Started a new Conversation Schema Database For Banking System

Hello,

Which is the best database schema for banking system. Create incoming_table for deposit etc and Create outgoing_table for withdraw etc.

Or

Create transaction_table for all transaction and Create type_transaction_table for kind of transaction from model

Thank you.

Feb
22
4 months ago
Activity icon

Replied to Add Attributes To My Auth()->user Session

Auth::user()->username;
Jan
08
6 months ago
Activity icon

Replied to Cannot Save Data Using CreateMany

@fylzero Below are the results displayed from dd. But why I can't save it?

array:3 [▼
  "_token" => "1oiEOBnJmNeMchmxnOUBvemvETkzx4db1UB"
  "question" => array:1 [▼
    "question" => "Test add point inside answer tables"
  ]
  "answers" => array:8 [▼
    0 => array:1 [▼
      "point" => "1"
    ]
    1 => array:1 [▼
      "answer" => "This is anser b and point 1 for correct answer"
    ]
    2 => array:1 [▼
      "point" => "0"
    ]
    3 => array:1 [▼
      "answer" => "This is answer b"
    ]
    4 => array:1 [▼
      "point" => "0"
    ]
    5 => array:1 [▼
      "answer" => "This is answer d"
    ]
    6 => array:1 [▼
      "point" => "0"
    ]
    7 => array:1 [▼
      "answer" => "This is answer d"
    ]
  ]
]
Activity icon

Started a new Conversation Cannot Save Data Using CreateMany

I can't add point value on table answers using createMany.

and I have created relationship in models

form no respond error and dd not get value.

Please help, Thank you.

<div class="card mt-2">
    <div class="card-header">{{ $examination->title }}</div>
    <form action="/examinations/{{ $examination->id }}/questions" method="post">
        @csrf
        <div class="card-body">

            <div class="form-group">
                <legend>Question</legend>
                <textarea name="question[question]" id="question" class="form-control" cols="30" rows="3">{{ old('question.question') }}</textarea>
                <small id="questionHelp" class="text-muted">Give the best question for this examination</small>
                @error('question.question')
                    <small class="text-danger">{{ $message }}</small>
                @enderror
            </div>

            <div class="form-group">
                <fieldset>
                    <legend>Choices</legend>
                    <small id="choicesHelp" class="form-text text-muted">Give choices that give you the most insight into your question.</small>

                    <div class="card-body">
                        <div class="form-group">
                            <label for="answerA">Answer A</label>
                            <input type="text" name="answers[][point]" class="col-md-1 float-right" id="valueA" value="{{ old('answers.0.point') }}">
                            <textarea name="answers[][answer]" id="answerA" class="form-control" cols="30" rows="3">{{ old('answers.0.answer') }}</textarea>
                            <small id="answerA" class="text-muted">this field for answer A in this question</small>
                            @error('answers.0.answer')
                                <small class="text-danger">{{ $message }}</small>
                            @enderror
                        </div>
                    </div>

                    <div class="card-body">
                        <div class="form-group">
                            <label for="answerB">Answer B</label>
                            <input type="text" name="answers[][point]" class="col-md-1 float-right" id="valueB" value="{{ old('answers.1.point') }}">
                            <textarea name="answers[][answer]" id="answerB" class="form-control" cols="30" rows="3">{{ old('answers.1.answer') }}</textarea>
                            <small id="answerB" class="text-muted">this field for answer B in this question</small>
                            @error('answers.1.answer')
                                <small class="text-danger">{{ $message }}</small>
                            @enderror
                        </div>
                    </div>

                    <div class="card-body">
                        <div class="form-group">
                            <label for="answerC">Answer C</label>
                            <input type="text" name="answers[][point]" class="col-md-1 float-right" id="valueC" value="{{ old('answers.2.point') }}">
                            <textarea name="answers[][answer]" id="answerC" class="form-control" cols="30" rows="3">{{ old('answers.2.answer') }}</textarea>
                            <small id="answerC" class="text-muted">this field for answer C in this question</small>
                            @error('answers.2.answer')
                                <small class="text-danger">{{ $message }}</small>
                            @enderror
                        </div>
                    </div>

                    <div class="card-body">
                        <div class="form-group">
                            <label for="answerD">Answer D</label>
                            <input type="text" name="answers[][point]" class="col-md-1 float-right" id="valueD" value="{{ old('answers.3.point') }}">
                            <textarea name="answers[][answer]" id="answerD" class="form-control" cols="30" rows="3">{{ old('answers.3.answer') }}</textarea>
                            <small id="answerD" class="text-muted">this field for answer D in this question</small>
                            @error('answers.3.answer')
                                <small class="text-danger">{{ $message }}</small>
                            @enderror
                        </div>
                    </div>

                </fieldset>
            </div>

            <div><button class="btn btn-dark btn-block">Save</button></div>

        </div>
    </form>
</div>
public function store(Examination $examination)
{
    $data = request()->validate([
        'question.question' => 'required',
        'answers.*.answer' => 'required',
        'answers.*.point' => 'required',

    ]);

    $question = $examination->questions()->create($data['question']);
    $question->answers()->createMany($data['answers']);
    return redirect('/examinations/'.$examination->id);
}
Jan
07
6 months ago
Activity icon

Replied to Which Is Better Between 2 Database Schema For Quiz?

Thank you for your explanation.. its really helped @tisuchi @snapey :)

Activity icon

Started a new Conversation Which Is Better Between 2 Database Schema For Quiz?

Hi, Which is better between 2 database schema for quiz?. Thank you.

Schema::create('questions', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->unsignedBigInteger('questionnaire_id');
            $table->string('question');
        $table->string('option_a');
            $table->string('option_b');
            $table->string('option_c');
        $table->string('option_d');
            $table->string('correct_options');
            $table->timestamps();
        });

Or

Schema::create('questions', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->unsignedBigInteger('questionnaire_id');
            $table->string('question');
            $table->timestamps();
        });

Schema::create('answers', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->unsignedBigInteger('question_id');
            $table->string('answer');
            $table->tinyInteger('correct_answer')->default(false); // if 0 = false 1 = true
            $table->timestamps();
        });