friendifie

friendifie

Member Since 3 Months Ago

Experience Points 220
Experience Level 1

4,780 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-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.

16 Apr
2 months ago

friendifie left a reply on Shared Web-host Displays My User's Root Directory?

@TRAY2 - Of course I know how to setup a subdomain and app traffic to my https://api.mysite.com/ goes to that directory where I want to put my Lumen project. The problem I’m experiencing is related to my Lumen project. In the URL it’s showing my whole web-host route in the URL bar. If I don’t do it that way then Lumen doesn’t work.

Shrugs ??‍♂️ I’m so confused.

friendifie left a reply on Shared Web-host Displays My User's Root Directory?

@TRAY2 - How do I explain it... I know Lumen hides the /public/ in the URL so I don't have a problem keeping that.

I don't want to integrate my web-host's / with the Lumen API because I'd like to keep that in a sub-directory and when I call my API from my apps I want to reference: https://api.mysite.com/(then the API stuff here).

Are we on the same page? Also, thanks so much for the reply!

friendifie started a new conversation Shared Web-host Displays My User's Root Directory?

Hi there, Apparently my shared web-host wasn't running my Lumen API but I got it working... But, I'm experiencing one more problem and I don't know how to fix it. I think it's rooted into the Lumen project itself?

Is as quoted from my dead post related to a problem getting Lumen to run on my shared web-host:

https://laracasts.com/discuss/channels/lumen/lumen-works-on-shared-web-host-but-isnt-working:

Apparently I got it working now but it's forcing/showing my shared web-hosts path, I don't like that. It's a huge security risk for me. It's like:

https://api.mysite.com/home/myusername/public_html/another_folder/NewBlog/NewBlog

When I go to the root "/" it takes me to "/NewBlog" then once I replace the "NewBlog" it set with my route "status" or "test" it'll display their results on the screen.

Any advice?
Thanks!

Please help me resolved this issue asap. Thanks!

friendifie left a reply on Lumen Works On Shared Web-host But Isn't Working?

Apparently I got it working now but it's forcing/showing my shared web-hosts path, I don't like that. It's a huge security risk for me. It's like:

https://api.mysite.com/home/myusername/public_html/another_folder/NewBlog/NewBlog

When I go to the root "/" it takes me to "/NewBlog" then once I replace the "NewBlog" it set with my route "status" or "test" it'll display their results on the screen.

Any advice? Thanks!

10 Apr
3 months ago

friendifie left a reply on Lumen Works On Shared Web-host But Isn't Working?

@GODCODE - I’m not exactly too sure what I should do with that. Some of the content in your `.htacce file looks like it’ll cause some issues on mine because of “miss-matching”.

On my local machine the public folder can be how it’s suppose to be because when I run my project it’ll hide the he `pu, but when I run it in my web-host it’ll show the the ` that’s why I took the ok the `. and s` and `i out of my of my folder on my web-host.

Then in my / root index.php I fixed the bootstrap link then ran my project on my web-host.

I think it’s because of the `__DIR which seems to be deeply rooted into my Lumen Project `NewBl. ?

friendifie left a reply on Lumen Works On Shared Web-host But Isn't Working?

I kept messing around and I think I got it working but now the only issue is:

Apparently I got it working now but it's forcing/showing my shared web-hosts path, I don't like that. It's a huge security risk for me. It's like:

https://api.mysite.com/home/myusername/public_html/another_folder/NewBlog/NewBlog

When I go to the root "/" it takes me to "/NewBlog" then once I replace the "NewBlog" it set with my route "status" or "test" it'll display their results on the screen.

Any advice? Thanks!

friendifie left a reply on Lumen Works On Shared Web-host But Isn't Working?

This is my current .htaccess file in the NewBlog I made to try and test everything.

` Options -MultiViews -Indexes

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

# Disable index view
Options -Indexes

# Hide a specific file
<Files .env.example>
  Order allow,deny
  Deny from all
</Files>

`

friendifie left a reply on Lumen Works On Shared Web-host But Isn't Working?

@SNAPEY - Hey, so here's some screenshots to help you see first-hand what's going on.

My local "/" works: https://i.imgur.com/ZnrOcZo.png

Showing you my "status" function which I've uploaded to my web-host using FTP and its live result: https://i.imgur.com/c2W4INx.png

Thanks!

friendifie left a reply on Lumen Works On Shared Web-host But Isn't Working?

@SNAPEY - No, Sir. When I had them like “/status” I’d receive a 404 error document page. When I’d do it like “status” I’d at least receive the document but a Lumen error. I’ll post screenshots now, I got to start my laptop.

Thanks for your reply @Snapey.

09 Apr
3 months ago

friendifie left a reply on Lumen Works On Shared Web-host But Isn't Working?

All over the internet and YouTube says we need to put the content of /public into our root / then we must edit a few files like the autoload, etc. to help guide the operations. Nothing worked then when I went ahead and fixed the paths so that it was correct then my routes didn’t work. I’ve even changed my PHP Version. My host has 7.1 they don’t classify if they’re running like 7.1.2 so I just selected the next version higher I think it’s 7.2 that way I’m not missing no new functions or components. I have PDO, BTstring and everything enables. Nothing works. It sucks the community isn’t very helpful. I need this resolved. I’d hate to have to self-host my own website, that’s a lot of traffic and work.

friendifie left a reply on Lumen Works On Shared Web-host But Isn't Working?

@GODCODE - I’m using x10hosting.com I’m not sure if you’d consider it shared hosting? It’s a free membership. So, I guess maybe shared but it’s only me who uses the account.

friendifie left a reply on Laravel 5.4 Error On Production Server But Error.log Shows Nothing.

Bump I’m experiencing issues too. I’ve tried everything to get Lumen to run on my web-host but it’s being difficult. It’ll run the index root (/) route but every route after that (/status, etc.) it won’t. I get the “Sorry, the page you’re looking for doesn’t exist.” error. I’ve moved my “/public” into my “/“ as suggested when publishing but nothing works.

Please check out my post to help resolve my issue.

https://laracasts.com/discuss/channels/lumen/lumen-works-on-shared-web-host-but-isnt-working

07 Apr
3 months ago

friendifie started a new conversation Lumen Works On Shared Web-host But Isn't Working?

Hi there, I'm new to Laravel and Lumen but I do understand that Lumen is a lot faster and more lightweight. That's exactly what I need for my budget/space and needs. So, I went ahead and uploaded Lumen to my web-host (I'm also running it on my local machine) with the "/public" removed and merged into the "root" (/). So, I assume I did it all correctly cause it's still working on my local machine. But, when I go ahead and run it on the web-host (my domain) cause I need an API (obviously) it doesn't work and I've tried everything. This is what I get: 404 ("Sorry, the page you are looking for could not be found."); you can see this in action at: https://api.friendifie.com/NewBlog/status (also note: the "root" (/) still runs though...).

Thanks in advance!