fredemagi

fredemagi

Member Since 2 Years Ago

Experience Points
1,830
Total
Experience

3,170 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
1,830 XP
Sep
25
3 weeks ago
Activity icon

Replied to Submitting Form With Danish Letters In Input

I think I've found the error. In the controller, I used the function

strtolower()

which for some reasons outputted the wrong chars (properbly something about the function I don't know), so I swapped it with

mb_strtolower($str, 'UTF-8');

Thank you all for your help! It was highly appreciated!

Activity icon

Replied to Submitting Form With Danish Letters In Input

  1. I need the keyword in order to search with XPath in XML-files.
  2. The trigger was that the search function works correctly using english-letters. When I tried searching with the danish letters in the keyword, I did not get any results. That's why I tried using the dd(). Then I realized the encoding somehow failed.
  3. If I echo it out in the controller, it yields a ?-mark.
Activity icon

Replied to Submitting Form With Danish Letters In Input

Layout:

<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    
    @include('components.head-tag')

    <body>
    
        <!-- Top menu -->
        @include('components.topnav')


        <!-- Cookie consent -->
        @if(Cookie::get('cookie-consent') == null)
            @include('components.cookie')
        @endif



        <!-- Parallax -->
        @yield('parallax')
  

        
        <!-- Content wrapper -->
        <div class="container-fluid mb-5 p-0">

            
            <!-- Content -->
            <main class="col-12 col-md-12 col-lg-12 p-0">
                
                @yield('content')                
                
            </main>
            

        </div>


        <!-- Include footer -->
        @include('components.footer')

        <!-- Include scripts -->
        @include('components.scripts')
    </body>
</html>

Head:

<head>

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta name="description" content="@yield('meta_description')">
    <link rel="shortcut icon" href="{{ asset('storage/images/home.png') }}">

    <title>@yield('title') | {{ config('app.name') }}</title>

    <!-- Font awesome -->
    <script defer src="https://use.fontawesome.com/releases/v5.8.2/js/all.js" integrity="sha384-DJ25uNYET2XCl5ZF++U8eNxPWqcKohUUBUpKGlNLMchM7q4Wjg2CUpjHLaL8yYPH" crossorigin="anonymous"></script>

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet">

    <!-- Stylesheets -->
    <link href="{{ asset('mdb/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css">
    <link href="{{ asset('mdb/css/mdb.min.css') }}" rel="stylesheet" type="text/css">
    <link href="{{ asset('css/app.css')}}" rel="stylesheet" type="text/css">
</head>
Activity icon

Replied to Submitting Form With Danish Letters In Input

It did not work. Now I've created a middleware to snap the request. When I do a simple

return $request->keyword

it returns the correct characters, but when I just return the response like

$response = $next($request);
return $response

it changes the characters again.

Sep
23
4 weeks ago
Activity icon

Started a new Conversation Submitting Form With Danish Letters In Input

Hello,

I have made a form with a single input element. When I fill in a string with danish letters (æøå), it returns strange letters in the controller like "ã¸", when I use a simple dd() to see what return in the controller. How do I make sure that the danish letters actually return as are in the controller?

Jun
11
4 months ago
Activity icon

Started a new Conversation Showing Data From An Array Of Json Objects In New Page

Hello,

I'm making a website where data are being fetch from an api.

On page www.mypage.com/search I fetch a list of results as an array of json objects. Each json object is being listed as a li in an ul. I want to link each li to a details page, where I can see all data from that json object. Do I have to fetch that json object from the api anew to be able to see on the new page, or can I somehow store that single json object and get that object on the new page and safe an api call?