Garbare

Garbare

Member Since 4 Years Ago

Experience Points
1,150
Total
Experience

3,850 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
8
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
1,150 XP
Oct
06
4 years ago
Activity icon

Started a new conversation Automatic Facebook Sharing Of Articles

I have created a blog that posts articles in a very similar way as Jeffrey Way discussed in the Laravel 5 Fundamentals series of videos.

What I now want to implement is automatic Facebook sharing as each post is published. (I am not concerned with post-dated articles.)

Basically, I want to give this site permission to post onto another Facebook page, much like the way ‘Jetpack Publicise’ works with Wordpress.

All of the libraries I have investigated so far so seem to be more focused on OAuth or Facebook sharing buttons. I just to want automatically cross post to Facebook from the backend.

Does anyone have recommendations on how to implement this feature?

Jul
27
4 years ago
Activity icon

Replied to URLs Only Work When '/index.php/' Is Used

@skliche That did it! Problem solved. It was the .htaccess all along.

Thank you so much, I really appreciate your help.

Jul
24
4 years ago
Activity icon

Replied to URLs Only Work When '/index.php/' Is Used

Here’s what I have tried.

Edited public/index.php to include

/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/

$app = require_once __DIR__.'/../bootstrap/app.php';

// set the public path to this directory
$app->bind('path.public', function() {
    return __DIR__;
});

As discussed here.

This didn't work.

Next I tried adding this to AppServiceProvider.php.

public function register()
{
    $this->app->bind('path.public', function() {
      return base_path().'/public_html';
    });
}

Also, discussed here.

This didn't work either.

Next I tried what @Prullenbak suggested.

I renamed the public_html to public and updated Apache’s httpd.conf accordingly. I restarted the server and ... still the same issue.

Thanks for all the help guys but nothing has worked yet.

Activity icon

Replied to URLs Only Work When '/index.php/' Is Used

Just to be a bit clearer, the 404 pages that sitename/about is getting is generated by the server.

I have created custom 404 page complete with funny image and stuff. Everything is working, including my witty 404, but only if I include index.php in the URL like so sitename/index.php/about.

I suspect the 404 is triggered before it even gets to Laravel. I also have error reporting turned on which is working as it gave me an error about Fileinfo not been enabled while editing images. I am not getting any errors with sitename/about, just a server 404.

Activity icon

Replied to URLs Only Work When '/index.php/' Is Used

@bashy Sure I can show you but I don't follow exactly what you are asking for. Are you looking for the Apache config?

Activity icon

Replied to URLs Only Work When '/index.php/' Is Used

Ok, I'll try google that. Thanks @pmall.

Activity icon

Replied to URLs Only Work When '/index.php/' Is Used

@pmall No, there is a public_html in the root folder. I have placed all of the laravel files in the root and put the contents of the laravel public folder into the publicly accessible public_html folder. (I should have mentioned my folder structure in the original post).

I have been told it does allow for .htaccess and that mod_rewrite is enabled. I will double check these last two thing and get back to you.

Activity icon

Started a new conversation URLs Only Work When '/index.php/' Is Used

I have just launched a Laravel 5 project on a live server and all is going well except for one thing.

I need to write /index.php/ in the url to access any page other than the home page.

For example

sitename/                   -- this works fine

sitename/index.php          -- this also works fine

sitename/about              -- This causes a server 404

sitename/index.php/about        -- this works fine

I suspect this is an issue with the .htaccess file but I'm a little out of my comfort zone in this area.

Here is the .htacccess I'm using.

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

    RewriteEngine On

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

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

This is the .htaccess that came with the install. I haven't changed anything. (Any changes have been reverted.)

Does anyone have any insight into this?