gregghoush

gregghoush

Host at The Gregg Housh Show

Member Since 1 Year Ago

Experience Points 14,220
Experience
Level
Lessons Completed 139
Lessons
Completed
Best Reply Awards 0
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

07 Oct
1 year ago

gregghoush left a reply on Trouble Accessing An Array

Turns out this is how I get just the array from subtable:

$visits = $visits[0]->subtable;

gregghoush left a reply on Trouble Accessing An Array

Thanks @ftrillo, typeof tells me its an Array and passing $visits to json_decode says json_decode() expects parameter 1 to be string, array given

gregghoush left a reply on Trouble Accessing An Array

Hey @Dry7,

Thanks, tried that just now, it gives me this error:

Undefined index: subtable

06 Oct
1 year ago

gregghoush started a new conversation Trouble Accessing An Array

I am attempting to use Rob Brazier's Laravel-Piwik package to grab information from my Piwik install. I have this code to get visits to blog posts in the past week. It gives me an object, which contains an array, which is made up of objects.

        $visits = Piwik::getActions();
        $visits = $visits->getPageUrls(['period' => 'week', 'expanded' => '1', 'segment' => 'pageUrl%3D%5Ehttp%253A%252F%252Ftesting.dev%252Fblog%252F']);
        //$visits = $visits->subtable[0];
        dd($visits);

This works, it gets me the object and the dd shows it to me.

Here is the object it gives me: http://i.imgur.com/2o9TVpi.png

If I uncomment the commented out line there I get this error: Trying to get property "subtable" of non-object.

How do I access that array "subtable"? I would like to loop through it with a foreach.

22 Aug
1 year ago

gregghoush left a reply on Sanity Check On My Deployment, Staging, Production Plan. Is It Good?

Thanks @MikeHopley. On security I plan on doing all of the standard things: setup the firewall, fail2ban, and 20 other things.

Thanks for the sanity check there. I am going to go forward with this and see how it works out.

gregghoush left a reply on Sanity Check On My Deployment, Staging, Production Plan. Is It Good?

Thanks for that. Makes sense. And yes, it would be awesome to have more feedback from people who have been through this already.

gregghoush started a new conversation Sanity Check On My Deployment, Staging, Production Plan. Is It Good?

I am about to put my first Laravel project up. I am still early in development, but I am ready to have some testing, feedback, and all the other good stuff that comes from getting a staging server up. Here is my plan after watching the Envoyer videos, reading a bunch about Forge, and some other basic knowledge.

  1. Use Forge to setup 2 servers on DigitalOcean. One for Production, one for Staging.

  2. Setup HTTP basic auth blocking access to the staging server to unauthorized people. Thanks to Jacob Bennett for a simple solution: https://gistlog.co/JacobBennett/8193e13cef3427fbb88f

  3. Create a "staging" branch for my git repository. Start working in this branch and only merging into master when I am ready for code to go to production.

  4. Setup Envoyer with both servers. Set the production server to deploy automatically from the master branch of my projects github repo.

  5. Setup Envoyer to deploy automatically from the staging branch to my staging server.

  6. Modify the Envoyer deployment for staging by adding a hook to run migrate:fresh -- seed.

  7. Setup different .env files for each server with the proper variables for staging or production.

This would seem to give me:

1 production server automatically deploying from my master branch whenever I push to github. This server would have production values in its .env and only migrate, but not seed when deplying.

1 staging server automatically deploying from my staging branch whenever I push that to github. This server would have staging values in its .env and it would wipe out the database, migrate it from scratch and re-seed it every time.

Am I missing anything here?

11 Aug
1 year ago

gregghoush started a new conversation Using A Global Vue Object And Adding More To The Data Array?

I currently am just defining a new Vue object on every page I do Vue work. I would prefer to define that in my app.js instead. Right now I do this on pages:

@section('scripts') var app = new Vue({ el: '#app', data: { password_options: 'keep' } }); @endsection

I could move that to app.js, but then how would I add in that password_options value to data on "app" from that specific page?

01 Aug
1 year ago

gregghoush started a new conversation Subscribe Notification On Signup, Remove On Subscription?

Starting a new Spark application today. One thing I noticed was that the notification asking people to subscribe is still there as a notification after they actually subscribe.

It feels like that should be replaced with a notification saying thanks for subscribing, once they actually subscribe? or at least removed.

Any thoughts on the best way to go about that?

Initial thought since notifications don't have types is to look for the user_id, icon=fa-clock-o, action_text=Subscribe and delete it. Anything wrong with that?

gregghoush left a reply on Best Admin Dashboard Boilerplate?

I came here to ask pretty much the same thing and was looking at Clear. Hope some other recommendations come through.

22 Jul
1 year ago

gregghoush left a reply on Always Free Plan (no Trial), But With Possibility To Subscribe To Paid Plans

I will need this same thing coming up soon. Anyone have a solution to this?