How to Use Local Environment as Default in Laravel Artisan CLI

I have to say, I absolutely LOVE Laravel – everything about it.

One of my favorite features is the ability to separate your app into local/production versions.

I use a lot of packages for development, that I just don’t need on my production version of the app. How do I resolve this? By using two different environments w/ different App.php configs. Read my tutorial on this here.

You might find that this only works for your app when running it in the browser. Here’s how to make sure that the local environment is ALSO set for command-line e.g. Artisan and Tinker.

One option of course is to do:

But who wants to write –env=local after EVERY artisan command? I am a pragmatist and believe in using technology to my advantage. This is great when needing to switch back and forth for a minute, but when doing it all the time you need an alternative.

next add “PatrickPC” to bootstrap/start.php

Now artisan should run w/ local environment as default when on this machine, let’s test it:

Got questions? Leave a comment!

How to setup Local and Production environments on Laravel

One great feature of Laravel is how easy it is to setup local and dev environments.

Why would you want separate environments?

  • Require separate packages for dev, and production.
  • Less bloat / potential for errors on production.
  • Turn off debug on production.
  • Special config options for local vs production.
  • etc…

Next we simply create a new folder at : App/config/local/

If you create a App.php file -this file will override the global App.php in the parent directory while working in the local environment. So you can add different providers/facades to this local version and not mess up the production version.

BatchGEO the easiest way to Map a Spreadsheet via Google Maps.

BatchGeo – Easily take spreadsheets or table data from the web and plot it on Google Maps.

BatchGeo is probably the easiest and coolest spreadsheet to Google Map conversion tool I’ve seen.

Using BatchGeo maps can be generated by spreadsheet files, or web tables, and can easily be saved for future use.

Possible uses:

  • Apartments Hunting visualize apartment locations that you find on Craigslist, or another apartment site.
  • Store Locators – all you need is a spreadsheet with all the addresses and you’re all set.
  • List of parks, or bike paths.
  • Developing a sales route and maximizing travel time.
  • Vending Machine location visualization.
  • Any other type of map-able lists. The list goes on and on.

Watch the video for more information on this cool tool:

[Source: LifeHacker]

How to: Feed Your Main Blog While Building Your New Blog’s SEO Ranking

Recently I have relaunched my domain name: PatrickCurl.com to setup myself as an authority on social media marketing, so that I can take my passion for networking into a real career. Where does this leave my 3 year old blog, which also covers social media? I have to admit writing for two blogs does pose a bit of a time constraint especially when I have busy consulting projects going on as well.

I’ve decided to feed my metablog with content from this site as it’s relative to the theme of that blog, and those who are already subscribed and getting updates from that blog will also receive the ones I’ve posted here. To do this I’m using the FeedWordpress Plugin.

The best way I’ve found so that google doesn’t penalize either blog for duplicate content is to have the content at theresabloginmysoup.com setup to be a  partial feed with permalinks linking directly to PatrickCurl.com. The imported feed on TheresaBlogInMySoup only contains about the first 100 words with all links pointing back to the source url.

This is also a good way to begin building the pagerank and search engine results. There’s a blog in my soup, has a higher ranking and can pass some pagerank on to my consulting blog. This is just one easy method you can use to not go crazy while keeping two blogs running, or for migrating to a new blog from your existing blog.

Reblog this post [with Zemanta]

When You Feel Like Failure is Your Master… Don't Give Up. My Story…

Order of the Arrow
Image via Wikipedia

Failure is something that has plagued me, all my life.

Scenario 1: When I was 16 I enrolled in a program to take College classes and get highschool credit for it. I was a hard working highschool student, but college was a lot less structured, and I found myself not motivated to go to school.

Final Result? My 3.85 GPA went down to a 2.0, and I could never catch up on the credits I needed to graduate with my class. I was humiliated, and just gave up altogether. I went back and got a GED when I was 22, but that sense of failure has stuck with me.

Scenario 2: I was an avid boy scout, going to scout camp, working hard to get my life scout, working towards eagle. I was even tapped for Order of the Arrow at one point –  a prestigious elite group within the boy scouts. I worked hard to progress towards my Eagle Scout award.

Final Result: In the end I was only a few merit badges, and a service project away from my goal, but the time passed, I procrastinated, and couldn’t get everything done in time.

Scenario 3: As a Mormon, we’re encouraged to serve a 2 year mission for the Church. We are expected to pay as much of the living expenses as we can for those 2 years, and sometimes our home ward or branch can make up the difference.

Final  Result: I got into the credit trap at 18, and was 3000 in the hole by the time I was ready to go on a mission. I continued further into the debt trap, and am only now getting out if it, thanks to my success in blogging.

Scenario 4: I was 23 I took a huge chance – having never lived on my own, I uprooted myself, moved to Utah, and went to Massage School. I worked hard and graduated with a 3.56 gpa. At some points I was close to not making it, and just graduating felt great.

Final Result: I graduated, but never actually got licensed, and thus have not made one dollar from that profession.

Honorable Mentions: Weight issues have always plagued me, debt has always been a struggle, and I have been known to set many goals, and just let them fall by the wayside.This of course is in the past tense, which means that we can change our course, or direction in life. I did.

My Life Now: Now I swim 3 hours x 5 days a week. I’ve lost 150 lbs since January. My Blogs are bringing in $2,580 a month. I’m going back to school in the fall for Sustainability, and Renewable Energy. Update: Scratch that, I’m currently finished my first year, changed my major to web design and software development.

Moral of the story – we all have regrets, we all have failures that loom over our head. Sometimes it’s really hard to come so far, only to fail at the last minute – but it’s part of life. Life’s best lessons are the one’s that taste sour.

Sometimes we actually self-sabotage ourselves. I know I’ve often felt inadequate, which caused me to give up on a goal prematurely. Sometimes I felt unworthy of the success waiting at the end.

Now I know that I can do anything that I desire. I can be successful, I deserve it. Stay positive and never give up. Failure only brings you closer to your ultimate success.

Set Goals or DIE! Part 2: Traffic Goals

I wrote the first part of this series about a month ago, and it’s taken me awhile to get back on topic. November has been a busy month for some of my other business ventures.

The rest of the series can be found here:

  1. Set Goals or Die! Part 1: Posting Frequency Goals…
  2. Set Goals or Die! Part 2: Traffic Building Goals..
  3. Set Goals or Die! Part 3: Monetization Goals…(forthcoming).

I’ve been doing a lot of ppc campaigns, as well as some blackhat techniques(shhhhh)…

In the first part of this series I spoke about setting and keeping a daily posting schedule of at least 1 post per day, but 3 is an ideal number. If you can post religiously 3 posts per day, your blog will be at the top of your niche in just a matter of months.

Today I’m going to talk about traffic building. Traffic is also paramount to a good successful blog. In fact traffic is the lifeblood. We include with traffic building – building followers or subscribers.

Here are a few steps on getting a lot more traffic.

1. Help people on forums. The more help you provide on forums like digital point, blackhatworld, or one specific to your niche, the more credibility you will build. Apply your link in the signature and you’re sure to get a lot of new visitors and blog subscribers.

2. Use google trends. I’ve spoken about this a lot. Google trends is a great way to get some immediate traffic. If you have some other good posts at the ready, people will stay a lot longer and might even subscribe. One thing I’ve done though that I’d actually advise against is using this exhaustively.

I posted a large amount of posts related to google trends, and got a lot of traffic – but it wasn’t the best quality because it didn’t always match my blog’s topic. Use this technique sparingly – but use it. I’d recommend posting 1 google trends blog post for every 5 normal blog posts.

3. Build backlinks. A great method I use for this is comment kahuna. This software finds blogs that remove do-follow and helps you write comments faster. One tip though: When writing comments try to find a post related to a post on your blog, then for your link back link to that post, not to the front page of your blog. This will build your google PR better, plus the people who visit your blog will be looking for similar information and will be more likely to subscribe.

4. Moniter your traffic. Part of setting goals is monitering what you’re doing and seeing if you’re making progress or not. I use statspress reloaded wordpress plugin, alexa, and google trends to track my traffic. I think it’s best to use multiple tools so you can get a more realistic picture.

5. Tweak. To be successful in blogging you will always be tweaking your efforts. Find what works for you. There will be some things that work for one specific niche that would never work for another. Just keep working and researching new ways to gain traffic.

6. Newsletter. To build stickyness and repeat traffic it is highly recommended that you give away an ebook, and build a newsletter with it. You can see an example with my newsletter form at the top of this blog.

7. Set little goals. The best way to build anything is to set mini goals. For instance set a goal of 1000 unique hits for December. Then set a goal for maybe 1500 for the next month. Do what you need to do in order to get those hits and you will be pleasantly surprised that you might get a lot more.

Bottom line: Don’t get discouraged, and never give up. You will succeed if you stick with it. Most big blogs began as small blogs. Also most big blogs took at least a year to build to big. It takes a lot of time and effort but in the end it is so worth it. It’s recession proof. I make money each month regardless of the financial woes of the nation or world. That’s job security.

Feel free to add any traffic tips you might have to this post and help others out.

Reblog this post [with Zemanta]

100+ More ways to Organize Every Aspect of your Life!

How To Build A Rocking Blog
Image by comicbase via Flickr
Image by comicbase via Flickr

Everyone could use some help in one form or another with learning to be better organized. Face it as a blogger or internet marketer being organized can mean making more money online.

Every top affiliate marketer is a master organizer.

Mashable wrote about a year ago a list of 100 ways to organize your life with online apps, and today they’ve created  an even better updated list of 100 more ways to organize your life. Give it a quick read – some very useful advice.

Reblog this post [with Zemanta]

How to Use Social Media to get Revenge a Corrupt Corporation like Allstate Insurance

I hate when people are taken advantage of, especially by insurance agencies, and MORE especially when that person is ME (See why Allstate Sucks). This article will explain how to get even with companies that think they can walk over you, with no consequence.

Personally, I tend to not sit idly like a deer caught in the headlights, instead I think – what can I do to make them hurt more than they hurt me?

How can I make them lose 5, 10, or more customers?

Well with social media – it’s a lot easier than you would think.

Here’s how to do an anti-company attack when you’ve been taken advantage of.

1. Press Releases – If you’re willing to invest $50-100 you can put out a press release of your negative experience. Press releases get wide distribution and lots of news papers and tv news stations get their news directly from Press Releases. This can be huge if you get featured on a large news publication.

2. Be sure to create a negative post about your situation and save it in a text file. Then login to Facebook, visit their Facebook page and in the discussion area post your negative feedback. If it gets deleted be sure to keep resending it – so that they waste man-hours deleting your negative response.

3. Write a blog post on your website, or even better try and find someone with at least a Pagerank of 3 to submit your negative article too, then link to it from twitter, facebook, etc.

4. Work on your social networks – get more followers, get more fans, get more connections. The more people you know the more likely you are to get even.

I currently have 12k followers on twitter and often when I submit something negative and they see that I have 12k followers they contact me immediately to try and fix the issue.

In fact recently when Allstate dropped our homeowners insurance without cause costing us over $950 (mortgage insurance), we got an immediate call back from their corporate execs, but they told us they would call us back and never did, and wouldn’t answer our calls. We figured they thought the issue would just go away.

I’m here to say that I will be blogging about Allstate’s Crappy Insurance Service at least once a week till they pay us the $950 they cost us, which will probably be never, but it’s an injustice that they can do whatever they want and screw people over left and right.

5. If it’s a local business submit negative reviews at following sites: MerchantCircle, Yelp, Google Places, Foursquare, CitySearch, Gowalla.

6. Be dilligent and keep following up on it. If you know SEO you could even design a consumer-watch type website about why consumers should be wary of the company.

The bottom line is : The more damage you can do to their good name, the more they will strive to do better customer service in the future. With Social media’s wide reach today we finally have a conduit with which we can fight back against corporate greed, and corrupt corporations. Social media is changing the world, but you need to take a stand and let everyone know about your stance on the matter.

Exercise Is A Key In Releasing Stress

Sometimes in life it just seems like nothing can go our way. Other times it seems as though the weight of the world has been put on our shoulders. Stress is nothing to sneeze at and yet we all deal with it. This article will show you some ways that you can reduce the amount of stress in your life. Driving fear is an area that is just loaded with helpful information, as you just have read. One thing we tend to think you will discover is the correct info you need will take its cues from your current predicament. There are probably more than a few specifics you have to pay close attention to on your side. How each one will play out in your situation is largely unknown, but we each have to think about that. Here are a number of more equally important highlights on this important topic.

There are many things that cause stress, but living a healthier lifestyle can greatly reduce the effects of stress on your body. Always eat fresh fruits and vegetables to keep your body well nourished and prepared to cope with the stress that comes your way. When you eat a healthy diet your thinking is clearer and you will make better choices.

Try giving a friend a call when you’re feeling stressed out. Even if you don’t talk about what’s bothering you, just chatting with a friend for a little while can really relax you. It can rejuvenate you and give you the energy you need to tackle your problems with a clear head.

If you are feeling stressed, it’s time to challenge yourself. By setting yourself up for challenges and meeting those challenges, you will boost your self esteem. When your self esteem is boosted it makes you more in control of your own life. When you have more skills and a higher self esteem, you are less likely to feel stressed, which in turn means a healthier lifestyle.

While this is all relevant to your discovery, a few items about Overcome fear of driving hold more weight than others. However, the bottom line is how you want to make use of it, and how much of it will effect your situation. Of course there is rather a lot more to be learned. The last half of the article will offer you a lot more solid info about this.

Some of these tips really are critical to your comprehending, and there is even more going beyond what is about to be covered.

If you sit down for the majority of the day, try to improve your posture. Slouching can put extra strain on your body, which can negatively affect the way that you feel. Sit straight up with your shoulders back to limit the tension that you are under during the day.

A good tip that can help you reduce your stress is to spend some time away from the internet now and then. It can get very tempting to get on the internet but it can also be very stressful because you’re always making yourself accessible to others. Take some time off to spend by yourself.

If a lot of your troubles arise from being late in the morning, set your clock to wake up fifteen minutes earlier than you would. This will not make much of a difference in your sleep but can help tremendously in arriving to work on time and reducing your stress level.

Try aromatherapy for calming your nerves and reducing your stress levels. Citrus and lavender are both proven to do just this. You can use scented soaps in the shower, or try candles or heated oils in your home. If you surround yourself with peaceful scents you can reduce the amount of stress you feel at home.

A great tip that can help you keep your stress levels down is to go outside for a walk. Taking a walk can do wonders for you if you’re feeling a little stressed out. You’ll be taking in fresh air as you’re out and about, seeing the world.

Keeping a healthy body and mind is hard in this day and age and stress only adds to the problem. Follow the tips in this article to help your body heal and prevent future stress related illnesses. While you do not have control over all the stress that is thrown at you, you do have the power to be prepared for when it hits. The above is only a small slice from the overall as it concerns Fear of vomiting. People tend to have more powerful results and feel more fulfilled when they delve deeper into this subject. There is just an excessive amount to cover in this short informational essay, and we transition into more deeper treatment in a minute. One thing to bear in mind is you have to view it against your unique needs, and that is why we offer it.

Easy Ideas To Help You To Relieve Stress

Are you currently overcome with stress? Can you experience as if stress has totally taken over your life? It is possible to reduce your stress levels. Heed the advice inside the following document, and stress will no longer be a controlling element in your life.

Maintain an optimistic mindset whatsoever times to lessen your levels of stress. In the event you are thinking negatively then stuff will seem much worse then they truly are. Realize that there’s constantly going to be problems inside your life. Approaching life positively is the best way to stay focused about the stuff that make you satisfied instead of your stress.

Listening to smooth music with closed eyes can be the best way to relax. Anything that soothes the senses tends to alleviate a few of the tension and stress you are dealing with. Many people experience both relaxed and moved by classical music. As you close your eyes and pay attention to music, your mind naturally drifts away to environments that are pleasant. Listening to music is surely an simple strategy to handle daily stress.

Planning ahead can be a great strategy to minimize stress. If you give your self a cause to style forward, you are much less likely to pay attention to any momentary stress. Strategy to find out a concert or perhaps a movie, for instance.

Listening or playing music is really a basic way you possibly can decrease your stress. No matter if you choose to pay attention to music, or make your individual, music is really a fabulous stress reliever. Listening to a little bit of classical music will help alleviate stress during everyday activities. No make a difference what form of music you pay attention to or for what situation, music stands as a great way to cope with stress all round.

In case you are feeling stressed, get a deep breath prior to you do other things. Step back, count to ten, and breathe deeply prior to you act around the situation. Doing this can assist turn a stressful moment in which you will respond badly to 1 in which you really feel calmer and in control.

In the event you are able to listen to perform whilst you will be at perform, this may be of wonderful assistance. Be sure to play smaller key music since this will guide to soothe you. In the event you prefer music that is a lot more upbeat, keep the lyrics positive as well as the tempo toe-tapping.

As this article demonstrated, it really is possible to diffuse at least a few of the toxic stress as part of your life. There is certainly no cause to let stress dominate and regulate your existence. There are actually numerous methods you may get peace in life along with decrease the stress you need to endure.

Ollie M Mascall write on various topics including treatment for kidney stones, kidney stone diet plan and kidney stones pain