k4vouras

k4vouras

Member Since 2 Months Ago

Experience Points
80
Total
Experience

4,920 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
80 XP
Jan
18
2 months ago
Activity icon

Replied to When I Add Method('patch') In My View I Get Syntax Error

I do not think that is the problem as when I delete the line @method('PATCH') the view gets loaded and the current title of the user's profile gets passed on to the field as it was intended. In any case the error pops on the line

class="form-control{{$errors->has('title') ? 'is-invalid' : ''}}"

Activity icon

Replied to When I Add Method('patch') In My View I Get Syntax Error

The view I am getting the error from

@extends('layouts.app')

@section('content')

<div class="container">
    <form action="/p" enctype="multipart/form-data" method="post">
        @csrf
        @method('PATCH)
        <div class="row">
            <div class="col-8 offset-2">

                <div class="row">
                    <h1>Edit Profile</h1>
                </div>
                <div class="form-group row">
                    <label for="title" class="col-md-4 col-form-label">Title</label>


                    <input id="title"
                           type="text"
                           class="form-control{{$errors->has('title') ? 'is-invalid' : ''}}"
                           name="title" value="{{ old('title') ?? $user->profile->title }}" required
                           autocomplete="title" autofocus>

                    @error('title')
                    <span class="invalid-feedback" role="alert">
                        <strong>{{ $message }}</strong>
                    </span>
                    @enderror

                </div>

                <div class="form-group row">
                    <label for="description" class="col-md-4 col-form-label">Description</label>


                    <input id="description"
                           type="text"

                           class="form-control @error('description') is-invalid @enderror"
                           name="caption" value="{{ old('description') }}" required
                           autocomplete="description" autofocus>

                    @error('description')
                    <span class="invalid-feedback" role="alert">
                        <strong>{{ $message }}</strong>
                    </span>
                    @enderror

                </div>
                <div class="form-group row">
                    <label for="url" class="col-md-4 col-form-label">URL</label>


                    <input id="url"
                           type="text"
                           class="form-control {{$errors->has('url') ? 'is-invalid' : ''}}"
                           name="url" value="{{ old('url') ?? $user->profile->url }}" required
                           autocomplete="url" autofocus>

                    @error('url')
                    <span class="invalid-feedback" role="alert">
                        <strong>{{ $message }}</strong>
                    </span>
                    @enderror

                </div>
                <div class="row">
                    <label for="image" class="col-md-4 col-form-label">Profile Image</label>
                    <input type="file" class="form-control-file" id="image" name="image">

                    @error('image')

                    <strong>{{ $message }}</strong>

                    @enderror
                </div>
                <div class="row pt-4">
                    <button class="btn btn-primary">Save Profile</button>
                </div>
            </div>
        </div>

    </form>
</div>
@endsection
Activity icon

Started a new Conversation When I Add Method('patch') In My View I Get Syntax Error

I am following a tutorial for laravel and in order to edit the profile of a user it used a patch method. The form was copied from another view that was working as intended. Now when I open the Edit profile view without the line of method('patch') it opens as expected. When I add the patch method I get a syntax error regarding this line

class="form-control{{$errors->has('title') ? 'is-invalid' : ''}}"

with an error message of

syntax error, unexpected 'title' (T_STRING), expecting ',' or ')' (View: \resources\views\profiles\edit.blade.php)

Even when I deleted all elements in the form regarding error handling it still produced an error of unexpected layouts in the last line of the file

@endsection

Should I rewrite the view from scratch without following the tutorial or is there an easy fix for this kind of problem?