jaurenigel

jaurenigel

Member Since 5 Months Ago

Harare

Experience Points
2,100
Total
Experience

2,900 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
18
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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,100 XP
Jul
09
3 months ago
Activity icon

Started a new Conversation Ajax Post

Hi guys,

I am trying to post data using ajax and I am only getting 500 Internal error

ajax code:

$.ajaxSetup({
        headers: {
          'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });
    $(".save-company").click(function(e){
        e.preventDefault();

        var company_name = $("input[name=company_name]").val();
        var address = $("input[name=address]").val();
        var city = $("input[name=city]").val();
        var phone = $("input[name=phone]").val();
        var email = $("input[name=email]").val();

        $.ajax({
           type:'POST',
           url:'company',
           data:{company_name:company_name, address:address, city:city, phone:phone, email:email, },
           success:function(data){
              alert(data.success);
           }
        });
  });

I also have this meta tag in my blade head section:

<meta name="csrf-token" content="{{ csrf_token() }}">
Jun
12
4 months ago
Activity icon

Replied to Changing Iframe Src Dynamically

What i want is that, <iframe src="{{url}}"></iframe> the source url is populated dynamically maybe with a delayed loop, which loops single url per 10 seconds, repeating the process,etc.

Activity icon

Started a new Conversation Changing Iframe Src Dynamically

Hello,

Is there anywhere i can change iframe src dynamically without refreshing or clicking any button, it's a laravel app.

Jun
10
4 months ago
Activity icon

Replied to How To Create Multi-auth App?

@sergiu17 thanks mate..working perfectly.

Activity icon

Replied to How To Create Multi-auth App?

Hi, @sergiu17 . I need custom implementation, is there any resources I can learn from.

Activity icon

Started a new Conversation How To Create Multi-auth App?

Hello guys,

How do I create a Laravel app with users roles but using same login page

Jun
07
4 months ago
Activity icon

Replied to Redirect After Login With User Roles

I changed all. I am now using redirect()

public function redirectTo(){

    if (Auth::user()->authorizeRoles('employee') == true) {
       return redirect('/home');
    }else if (Auth::user()->authorizeRoles('admin') == true) {
       return redirect('/admin');
    }else {
      return redirect('/login');
    }
Activity icon

Replied to Redirect After Login With User Roles

@johnbraun I have tried to add redirect() but still giving me 404|unauthorized.

Activity icon

Started a new Conversation Redirect After Login With User Roles

Hello guys.

I am trying to redirect a user after login. I want a user employee to be redirected to /home and user admin to /admin. Only one user is redirected and the other is showing 401 Unauthorized and the url is still /login.

public function redirectTo(){

    if (Auth::user()->authorizeRoles('employee') == true) {
       return '/home';
    }else if (Auth::user()->authorizeRoles('admin') == true) {
       return view('admin');
    }else {
      return 'login';
    }
May
28
4 months ago
Activity icon

Started a new Conversation Protecting Register Route

How can I protect register route and make it accessible only for super admin for instance? I have tried to use the auth middleware but anyone registered can now access the route.