Friendifie

Friendifie

Member Since 6 Months Ago

Experience Points
360
Total
Experience

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

Level 1
360 XP
Aug
07
2 months ago
Activity icon

Replied to How Do I Parse Errors Using JQuery? It's Not Working! :c

I can not. It doesnt work.

Can you provide an example of how to access the errors and see which is resulted?

I want to get the data.responseText to show me which errors have occurred.

Like, how would I access the object inside that contains the 0 and 1?

I want it to return something logical so I can work with it.

I designed a UI that checks for all the errors then if no errors itll perform the jQuery Ajax Request to the endpoint appending the + data but I couldnt get it to serialize because it didnt work it returned a 422 again.

Thanks.

Activity icon

Started a new conversation How Do I Parse Errors Using JQuery? It's Not Working! :c

I was trying to make my API using Lumen but I'm not to sure if it works with Passport so that made me real confused because I'm a little more knowledgeable with Laravel - not Lumen.

So, I couldn't figure it out so here I am making a Laravel Project... Yikes!

I've tried JSON Parsing and JSON Stringifying the responses from my API but I can't seem to get it to give me the errors. Only thing I can get is the top root (message: responseText). I can't get anything deeper.

Laravel Error Responses

I used this tutorial then enabled CORS and designed a simple UI to interact with my API.

https://www.youtube.com/watch?v=OJtGeqgXwfo

Thanks!

Activity icon

Replied to Are You Also New? Is Your .env Showing?

Here's my domain where the test API rests. I'm working on an actual Laravel Project now, `cause I couldn't get Lumen to play well with handling Data.

https://api.friendifie.com/

It has the following Routes:

/statuses/

/status/#

Replace # with an ID from the /statuses/.

Let's see what you Guys can come up with.

Aug
04
2 months ago
Activity icon

Replied to Are You Also New? Is Your .env Showing?

What's really the difference from having it one level up / or in the public_html?

Activity icon

Replied to Are You Also New? Is Your .env Showing?

@snapey, True a lot of free web-host are a bit conflicting and "hacks" need to be designed to make it all run well.

@jlrdw, my shared web-host will not allow me to attach my domain name(s) to anything outside of the public_html. Also, I understand... I've looked at them links, their sources, etc. I have it all setup correctly except for the "higher level" aspect because that I can not do. My web-host even deploys them to the public_html via Softaculous (I downloaded this Lumen on my own machine and uploaded it via SFTP).

@willvincent, it's a lot of tutorials on YouTube that teach these methods. I was a victim.

Activity icon

Started a new conversation Are You Also New? Is Your .env Showing?

Hi there LaraCasters, I'm still fairly new to Laravel (I'm a Lumen fan) but I've been a PHP Programmer for a pretty long time. I've been designing a very keen familiarity with the framework as time progresses. I just thought I'd share something I finally figured out that some others may be suffering from.

THE TUTORIALS ARE WRONG OR THEY'VE HAD AN UPDATE!

In order for us to post our APIs we were taught to remove the /public and move it into the / for it to work. Which is true sorta.

Apparently now my web-host (cPanel distributions) now work well with Laravel so it'll render it perfectly.

What I did is set my API's sub-domain name api.example.com to have my APIs /public as the Document Root and now it renders perfectly fine. Meaning, it pushes us out of the / directory (because we're one level down into the /public directory) which also now prevents anyone from accessing our .env file like api.example.com/.env and possibly obtaining our critical Database Login Credentials.

Just thought I'd share this for anyone else who's been having problems relating to Laravel/Lumen not operating correctly so we can all finally rest easily with less chance of errors now.

Apologies to the more advanced users, I'm just helping out more new users like myself who's been misguided by tutorials so we can all get things working correctly.

Apr
16
5 months ago
Activity icon

Replied to 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.

Activity icon

Replied to 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/post/1000392.

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

Activity icon

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!

Activity icon

Replied to 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!

Apr
10
6 months ago
Activity icon

Replied to 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 .htaccess 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 public, but when I run it in my web-host it’ll show the public that’s why I took the .htaccess and index.php out of my public 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 NewBlog. 😭

Activity icon

Replied to 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!

Activity icon

Replied to 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.

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    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>
</IfModule>
Activity icon

Replied to 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!

Activity icon

Replied to 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.

Apr
09
6 months ago
Activity icon

Replied to 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 enabled. 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.

Activity icon

Replied to 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.

Activity icon

Replied to 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 could not be found.” 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

Apr
07
6 months ago
Activity icon

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!