piusbnsl

piusbnsl

Member Since 3 Weeks Ago

Experience Points 430
Experience Level 1

4,570 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 3
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.

23 Jun
3 weeks ago

piusbnsl left a reply on Routing In Laravel?

Interestingly, 'http://127.0.0.1/Practice/myfirstsite/public/index.php/contact' it works.

But I have found a solution. Thank you all of you guys who tried to help me. I am going to list my solution here in case anybody need me. The simplest answer is- AllowOverride All.

Stackoverflow link - https://stackoverflow.com/questions/11791375/my-routes-are-returning-a-404-how-can-i-fix-them

Why does "AllowOverride All" needed? - https://stackoverflow.com/questions/24497749/httpd-conf-allowoverride-all/24498247

So, turns out it was not a problem of laravel or because I am not using my public folder as document root. It was just that Apache was not using laravel .htaccess .

Peace!!

piusbnsl left a reply on Routing In Laravel?

Well guys, it is not like I am fixed on this idea. As I explained earlier, I just want to know the reason behind this behaviour.

22 Jun
3 weeks ago

piusbnsl left a reply on Routing In Laravel?

@SNAPEY - ??? what does that mean?

piusbnsl left a reply on Routing In Laravel?

@SNAPEY - Earlier, I thought the same. But when I change my code to

Route::get('/', function(){
    return view('contact');
});

and open http://127.0.0.1/Practice/myfirstsite/public/ , it shows my contact page. If '/' means 127.0.0.1, it should not have worked.

piusbnsl left a reply on Routing In Laravel?

@SNAPEY - I know this will work that way. I am asking why does it not work in my case?

piusbnsl left a reply on Routing In Laravel?

@AURAWINDSURFING - apache comes pre installed in mac. I just enabled it and then changed the document root directory in httpd.conf to SItes folder in home directory.

piusbnsl left a reply on Routing In Laravel?

@AURAWINDSURFING - Hi, I am not asking the workaround to make it work. What I am asking is why does it not work in the way I have mentioned? Btw thanks for the link. I will definitely check it out.

piusbnsl left a reply on Routing In Laravel?

@GRUBI - NO, it does not.

piusbnsl started a new conversation Routing In Laravel?

I am new to Laravel and I was watching laracasts' tutorial. I have a doubt in routing section. I also searched it google but I think I could not frame it properly. So I am trying here.

See, I am using Mac OS Mojave and have setup apache to serve files from Sites folder that I have created in my home directory. Now my laravel project has directory url - ~/Sites/Practice/myfirstsite. So I open Laravel project on chrome as - http://127.0.0.1/Practice/myfirstsite/public/ . As mentioned in tutorial I added another route for "/contact" in web.php and created a contact.blade.php page in views folder. But the problem is I am not able to access that contact page. I am putting this URL in chrome - http://127.0.0.1/Practice/myfirstsite/public/contact .

in web.php -

Route::get('/contact', function(){ return view('contact'); });

in contact.blade.php -

@extends('layout')

@section('content')

Contact Us here

@endsection

Forgive me if I am asking very basic or stupid question. I tried searching on google and could not find it. If any other information is needed, tell me I will put it here.