Heimdall

Heimdall

Member Since 1 Year Ago

Experience Points
2,980
Total
Experience

2,020 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
2,980 XP
Aug
12
2 months ago
Activity icon

Awarded Best Reply on Put Variable Js On Php

I add ajax for send my value and after i create Session with data send

Activity icon

Replied to Put Variable Js On Php

I add ajax for send my value and after i create Session with data send

Activity icon

Started a new Conversation Put Variable Js On Php

Hello,

I want recover my variable on Js for load Route on laravel, but i need variable php for that...


        $('html').on('click', '.resto', function(event) {
                   var value = $(this).attr('data-value');
                   
            $("#bloc").load('{{ route('reloaddish.liste', ['name' => 'value']) }}');

        });

how can i send var value on ['name' => value] ?

Ty

Aug
11
2 months ago
Activity icon

Replied to Array Php To Array Js

oh yes ty, that work

ty so much @sinnbeck

Activity icon

Replied to Array Php To Array Js

Ty @sinnbeck

but now i have this error

Uncaught Error: Invalid LatLng object: (undefined, undefined)
Activity icon

Replied to Array Php To Array Js

@sinnbeck :


var list = @json($tablat); 
console.log(list);
[{"lat":48.2833,"longi":6.95},{"lat":48.2888,"longi":6.98}]

i try this :

                for (liste of list){
                  L.marker([list.lat, list.longi]).addTo(macarte)
                }

but that dont work

Activity icon

Replied to Array Php To Array Js

Ty @sinnbeck

When i change with @json, i have list.forEach is not function :/

var list = @json($tablat); 

            list.forEach(

                element => L.marker([element, 6.95]).addTo(macarte)

                );

And after i want change on

var list = @json($tablat);
            list.forEach(

                element => L.marker([list.lat, list.longi]).addTo(macarte)

                );

Edit: var list return [{"lat":48.2833,"longi":6.95},{"lat":48.2888,"longi":6.98}]

Ty

Activity icon

Started a new Conversation Array Php To Array Js

Hello,

I need convert my array php on array JS, but i dont know do that, because is associatif array :

array:2 [▼
  0 => array:2 [▼
    "lat" => 48.2833
    "longi" => 6.95
  ]
  1 => array:2 [▼
    "lat" => 48.2888
    "longi" => 6.98
  ]
]

When its simple array i do that:

 var list = <?=$tablat;?>;

            list.forEach(

                element => L.marker([element, 6.95]).addTo(macarte)

                );

But that dont work for associatif array, maybe laravel give method for ? i dont find so i tell your help

Ty

Aug
06
2 months ago
Activity icon

Replied to Socialite FB

I use wamp, ok i will try to put ssl certificate

Activity icon

Started a new Conversation Socialite FB

Hello, i have some problem with my login FB on my app..

Mistake ! Facebook has detected that xxx is not using a secure connection for transferring information. Until xxx has updated its security settings, you cannot use Facebook to connect to it.

But i cant disabled the https on FB dev, but i want try this function on my virtual host..

If someones can help me

Ty

Jul
31
2 months ago
Activity icon

Awarded Best Reply on Data Ajax



foreach ($establishments as $establishment) {
              $i=0;
              $display[$i] = '<input type="radio"  name="establishment" value="'.$establishment->name.'"  class="delete @error(\'establishment\') is-invalid @enderror " data-id="'.$establishment->id.'"><label>'.$establishment->name.'</label> <br> ';
          

            echo $display[$i];
              $i++;

            }


Activity icon

Replied to Data Ajax



foreach ($establishments as $establishment) {
              $i=0;
              $display[$i] = '<input type="radio"  name="establishment" value="'.$establishment->name.'"  class="delete @error(\'establishment\') is-invalid @enderror " data-id="'.$establishment->id.'"><label>'.$establishment->name.'</label> <br> ';
          

            echo $display[$i];
              $i++;

            }


Activity icon

Started a new Conversation Data Ajax

Hello,

I have controller Ajax, and on this i want send data at my view.. but i want send table but i have one error when i try...


            $data['establishments'] = $establishments;



            foreach ($establishments as $establishment) {
              $i=0;
              $display[$i] = '<input type="radio"  name="establishment" value="'.$establishment->name.'"  class="delete @error(\'establishment\') is-invalid @enderror " data-id="'.$establishment->id.'"><label>'.$establishment->name.'</label>';
              $i++;
            }
          

            echo 'success'."\n".'Pannier supprimé, redirection vers tous les points relais'."\n".$display[];


Or if i can concatenate $display, how can i do that ? i try this :


            $data['establishments'] = $establishments;



            foreach ($establishments as $establishment) {
              $i=0;
              $display = '<input type="radio"  name="establishment" value="'.$establishment->name.'"  class="delete @error(\'establishment\') is-invalid @enderror " data-id="'.$establishment->id.'"><label>'.$establishment->name.'</label> . $display';
              $i++;
            }
          

            echo 'success'."\n".'Pannier supprimé, redirection vers tous les points relais'."\n".$display;


but that dont work...

Ty

Jul
27
2 months ago
Activity icon

Replied to Validation Rule

<input class="form-control" name="quantitys" type="number">

This sorry

Activity icon

Replied to Validation Rule

Her

{!! Lte::form_group_number("quantitys","Quantité", '' ,[], $errors->first("quantitys")) !!}

Activity icon

Started a new Conversation Validation Rule

Hello,

On my view i m foreach input, this input is required but if one input is ok i dont need required other input

           {!! Lte::card('open', ['title' => 'Boisson a commander', 'type' => 'info']) !!}
   {!! Form::open(['route' => ['route'], 'method' => 'post', 'files' => true]) !!}

          <div class="row d-flex align-items-stretch">
            @foreach($drinks as $drink)
            <div class="col-12 col-sm-6 col-md-4  align-items-stretch">
              <div class="card bg-light">
                <div class="card-header text-muted border-bottom-0">
                </div>
                <div class="card-body pt-0">
                  <div class="row">
                    <div class="col-7">
                    	<div class="row">
                    		<div class="col-lg-6">
                   				   <h2 class="lead bold"><b>{{$drink-> name_products}}</b></h2>
                    		</div>
                    		<div class="col-lg-6">
                         Prix unitaire {{$drink-> price}} € 
                    		</div>

                    	</div>

     				  {!! Lte::form_group_number("quantitys","Quantité", '',[], $errors->first("quantitys")) !!}

                    </div>



                    <div class="col-5 text-center">
                      <img src="/assets/uploads/dishes/img300px/{{$drink-> image}}" alt="" class=" img-fluid">
                    </div>
                  </div>
                </div>
                <div class="card-footer row">
                	                <div class="col-lg-9">
                  </div>
                  <div class="text-right">
                     {!! Form::submit('Mettre dans le panier',['class' => 'btn btn-info']) !!}     
                  </div>
                </div>
              </div>
            </div>	
          @endforeach

if you can help me Ty

Jul
21
3 months ago
Activity icon

Started a new Conversation Update Session Array

Hello,

I have a little problem :/ i want update my session array, but idk how

i have this : $productsessions = Session::get("products_session");

This return :


array:4 [
  0 => array:2 [
    "product_id" => 16
    "quantity" => 0
  ]
  1 => array:2 [
    "product_id" => 17
    "quantity" => 0
  ]
  2 => array:2 [
    "product_id" => 20
    "quantity" => 0
  ]
  3 => array:2 [
    "product_id" => 22
    "quantity" => 0
  ]
]

But on my controller i want for exemple update quantity when product_id = xx

i try this :


  foreach ($productsessions as $productsession) {
      if ($productsession['product_id'] == $product_id) {
          $productsession['quantity'] =  10;
      }
  }

but that dont work

Ty for your help

Jul
02
3 months ago
Activity icon

Started a new Conversation Last Element

error