KikoGyh

KikoGyh

Member Since 4 Days Ago

Experience Points
250
Total
Experience

4,750 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
0
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
250 XP
Sep
18
1 day ago
Activity icon

Started a new Conversation Request Validate

public function store(Request $request, $project_id) 
    {
        request()->validate([
            'news' => ['required', 'string', 'max:2500', 'min:30'],
            'terms' => ['required'],
        ]);

        $dv = new Developer();
        $dv->news          = $request->input('news');
        $dvs->developer_id  = Auth::user()->id;
        $dv->project_id    = Project::findOrFail($project_id)->id;
        $dv->first_name    = Auth::user()->first_name;
        $dv->last_name     = Auth::user()->last_name;
        $dv->project_name  = Project::findOrFail($project_id)->name;
        $dev->links         = $request->input('video_live');
       
        $developerNews->save();
        Auth::user()->decrement('post_limit', 1);
        return back();
    }

What is the reason why validation does not work? I don't want to use the array I want in this form

Sep
17
2 days ago
Activity icon

Started a new Conversation Get App Type

How can I send the model type to the database?

Post::create([
	'post' => $request['post'],
	'app_type' => App\Type

]);

I mean something like that

Activity icon

Started a new Conversation Migrate Without Lose Data

How can I migrate a column without losing data? If I create a new column in migration and if I try to migrate, I will receive this message: "nothing to migrate". How can I migrate without

php artisan  migrate:refresh
Sep
16
3 days ago
Activity icon

Started a new Conversation The Image Is Not Saved

Hi, I made a form and in it I want to add an image but it is not saved, do you see a problem? Controller


        $dv = new Developer;
        $dv->news          = $request->input('news');
        $dv->developer_id  = Auth::user()->id;
        $dv->project_id    = Project::findOrFail($project_id)->id;
        $dv->first_name    = Auth::user()->first_name;
        $dv->last_name     = Auth::user()->last_name;
        $dv->project_name  = Project::findOrFail($project_id)->name;
        if ($request->hasFile('images')) 
        {
            $dv->images = $request->file('images');
            $name = time() . '.' . $dv->images->getClientOriginalExtension();
            $destinationPath = public_path('/uploads/images');
            $dv->images->move($destinationPath, $name);
        }
        $dv->save();

 <form method="post" action="{{ url('developer/project', $project->id)}}">
                                                
                                                <div class="input-container">
                                                    <div class="input-group mg-b">
                                                        <textarea name="news" rows="8"></textarea>
                                                        <label class="custom-label" for="description"> *Description </label>
                                                    </div>
                                                    <p class="custom-input-error" id="description_error"></p>
                                                </div>
                                                <input type="file" id="images" name="images" multiple="true" accept="image/png, image/jpeg">
                                                <button type="submit" class="general-btn positive-btn mt-3 save-btn"><i class="fa fa-paper-plane" aria-hidden="true"></i>Send</button>
                                            </form>

Only the image is not saved

Sep
15
4 days ago
Activity icon

Started a new Conversation Load More

Hi, I tried to make a load more, everything works ok but if I click on the second card from the same foreach where I display the data, read more will work for both the top and bottom card, but only if I click on the other one. second card, do you know what problem I may have?

blade:
<div class="pp-model-info-strip">
                              <p>
                              {{ Str::limit($dvns->news, 5, '') }}
                                 @if (strlen($dvns->news) > 5)
                                    <span id="dots">...</span>
                                    <span id="more" style="display:none">{{ substr($dvns->news, 5) }}</span>
                                 @endif
                              </p>
                              </div>
                              <button type="button" class="btn btn-primary btn-sm" onclick="loadMore()" id="myBtn">Read more</button>
js
 function loadMore() {
    var dots = document.getElementById("dots");
    var moreText = document.getElementById("more");
    var btnText = document.getElementById("myBtn");

    if (dots.style.display === "none") {
        dots.style.display = "inline";
        btnText.innerHTML = "Read more";
        moreText.style.display = "none";
    } else {
        dots.style.display = "none";
        btnText.innerHTML = "Read less";
        moreText.style.display = "inline";
    }

Effectively if you press the second div, and the top will be read more even if you press only for the bottom