Caracorn

Member Since 4 Years Ago

Experience Points
1,010
Total
Experience

3,990 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.

  • Community Pillar

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

Level 1
1,010 XP
Dec
03
1 month ago
Activity icon

Started a new Conversation Store Images One/two Levels Higher, Outside Of The Project

Hello,

I am using Lumen/Laravel. How can I store images one/two levels higher, outside of the project? Is that possible? Many thanks.

Nov
27
1 month ago
Activity icon

Replied to *.env File Of Lumen Can Be Read Without Any Problems

Thank you for your answer. No, the index.php was not in the same folder.

Now, it only seems to be temporary. I can no longer reproduce it. It seems to be ok now.

Activity icon

Started a new Conversation *.env File Of Lumen Can Be Read Without Any Problems

The *.env file of Lumen can be read without any problems. Why is it so?

I had to set up an htaccess-deny manually. Isn't that out of the box?

Many thanks.

Nov
25
1 month ago
Activity icon

Replied to API: How Do I Get An Image From Another Server Safely?

Thank you for your prompt reply!

Activity icon

Started a new Conversation API: How Do I Get An Image From Another Server Safely?

Hello!

From an external API I get temporary the response of an url for a image on that server.

So I have to 'have' this image on my server within a short time.

How do I get it safely? I was told not to use the PHP function 'file_get_contents' or to set allow_url_fopen to "allowed".

Is there a safe way out of the box to get this image?

Many thanks

Oct
13
3 months ago
Activity icon

Replied to Two Forms On One Website, Each With Two Times {{ Csrf_field() }}

I found a workaround through the Session helper

// Controller
session( [ 'success' => 'It works.' ] );
return redirect()->back();

// Blade
@section('system_message')
    @if(session()->has('error'))
        <div class="bgerror colorgreyd pad15px">
            {{$error}}
        </div>
    @endif
    @if(session()->has('success'))
        <div class="bgsuccess colorgreyd pad15px">
            {{session()->get('success')}} 
            {{session()->forget('success')}}
        </div>
    @endif
@endsection
Oct
08
3 months ago
Activity icon

Replied to Two Forms On One Website, Each With Two Times {{ Csrf_field() }}

Thank you, but the variable seems to be unknown:

ErrorException (E_ERROR)
Undefined variable: success ...
Previous exceptions
Undefined variable: success (0)

Return back means going back to the previous step. Does that mean that the success variable doesn't yet exist?

Activity icon

Replied to Two Forms On One Website, Each With Two Times {{ Csrf_field() }}

Thank you. It works. But coming back with the following I cannot access the variable 'success':

return redirect()->back()->with( 'success', 'It works.');

// Blade:
@section('system_message')
    @if(session()->has('error'))
        <div class="bgerror colorgreyd pad15px">
            {{$error}}
        </div>
    @elseif(session()->has('success'))
        <div class="bgsuccess colorgreyd pad15px">
            {{$success}}
        </div>
    @endif
@endsection

Oct
07
3 months ago
Activity icon

Replied to Two Forms On One Website, Each With Two Times {{ Csrf_field() }}

Sorry, I forgot how to post a code snippet. The forum completely changed the code I posted above, I don't remember what it was like to put a blade-code in without it being changed.

I only use Javascript to change the attributes of the HTML code, but no AJAX or something like that.

Activity icon

Replied to Two Forms On One Website, Each With Two Times {{ Csrf_field() }}

@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-10 col-md-offset-1">
                <div class="panel panel-default">
                    <div class="panel-heading">TOPIC</div>
                    <div class="panel-body">
                        <form>
                            {{ csrf_field() }}
                            <div class="row">
                                <div class="col-md-4"></div>
                                <div class="col-md-7">
                                    <label>Some values:</label>
                                    <div class="form-group">
                                        <input type="text" class="form-control" name="value" value="{{ request('value') }}">
                                    </div>
                                </div>
                                <div class="col-md-1">
                                    <div class="form-group">
                                        <label>&nbsp;</label>
                                        <button type="submit" name="search" class="form-control btn btn-primary">
                                            <i class="fa fa-search"></i></button>
                                    </div>
                                </div>
                            </div>
                        </form>
                        @if(isset($someValue))
                            <form class="form-horizontal" role="form" method="POST" action="{{ URL::to('/new/method') }}">
                                {{ csrf_field() }}
                                <div class="row">
                                    <div class="col-md-4"></div>
                                    <div class="col-md-7">
                                        <label>&nbsp;</label>
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="value2" value="{{ request('value2') }}">
                                        </div>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="col-md-8 col-md-offset-4">
                                            <button type="submit" class="btn btn-primary pull-right">
                                                <i class="fas fa-archive"></i> Send
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        @elseif(isset($nothing))
                            Nothing found!
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
Activity icon

Started a new Conversation Two Forms On One Website, Each With Two Times {{ Csrf_field() }}

Hello,

I have 2 forms on one website, each with two times {{ csrf_field() }}.

If I send a request from the one form and after processing by the controller come back to the blade with new data, everything is ok. If I send a new request from the same form, everything is ok.

However, when I send a request from the other form (after coming back from the one), I get an error 419 | page expired.

How can i solve it?

Many Thanks