Sometimes i am not me sometimes you are not you it's just the situations and timings which makes us do crazy things.

Sometimes I'm not me sometimes you are not you it's just the situations and timings which makes us do crazy things.

We do have some relationships where we get angry on things which is not supposed to be angry on but we do! And it's natural at that time I am not me means I'm not in control it just flows. Sometimes you get angry and say things at my face but at that time you're not you! You are better than that and I'm better that that!

A team aligned behind a vision will move mountains

A team aligned behind a vision will move mountains             — Kevin Rose

Do one thing everyday that scares you!

Let it flow let it go!

In life we experience some worst situations & we don't welcome them at that time but later on we realize that it helps us in becoming our greatest version.

These situations makes us that much strong that we can easily ignore & face many problems which are too big for some people. So always be grateful, don't resist & let the things flow!

Deploying Laravel Application to Shared Hosting

I added this article to Stackoverflow Laravel Documentation, i thought it would be great if it is in my blog too. Deploying Laravel Project to Shared Hosting is easy.
image-is-100-percent-not-related-to-the-topic

Requirements:

  • PHP >= 5.5.9
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • First of all archive/zip/compress your project file
  • Now Let say you have shared hosting server and you want to deploy your laravel project / app there. In your Hosting cPanel click on Filemanager it will lead you to another page where you can find the directory/folder called public_html .
  • Upload the compressed project file to public_html directory and extract it
  • Now you can move all your project files to public_html ( just select all project files and click on move, it will pops up a box enter public_html there )
  • Now in cPanel you can find MySQL Databases, Create Database, database user and password plus assign user to your created database in there.
  • After creating database, in cPanel Click on PhpMyAdmin and Select the database you have created. Import the .sql file from your local PhpMyAdmin.
  • Once importing is done, Visit public_html directory and edit .env file
  • In .env change the following lines accordingly
DB_DATABASE=yourdatabaseName
DB_USERNAME=databaseUsername
DB_PASSWORD=databasePassword
Save the .env file and now visit yourwebsite.com/public and your project will dance there.
BUT what if i want don't want /public in my website, i.e i want to run my application on my website root (website.com) for that do the following steps.
Copy all the /public directory files to root directory, and edit index.php.
Change
require __DIR__.'/../bootstrap/autoload.php';
And for LARAVEL 5.5+ Users Change the below
require __DIR__.'/../vendor/autoload.php'; TO the below
require __DIR__.'/vendor/autoload.php';
To
require __DIR__.'/bootstrap/autoload.php';
And
$app = require_once __DIR__.'/../bootstrap/app.php';
To
$app = require_once __DIR__.'/bootstrap/app.php';
Once that is done, in server.php change
 if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
    return false;
}
To
if ($uri !== '/' && file_exists(__DIR__.'/'.$uri)) {
    return false;
}
And
require_once __DIR__.'/public/index.php';
To

require_once __DIR__.'/index.php';

Life tip

Sometimes all you need is to remove someone from your life, then your life become easier.

Find your passion and you will never work a day in your life.

Assalam-O-Alaikum. I am Iftikhar uddin, a Software Engineer and Full Stack Web Developer. Today I will share some tips about career which I have faced in my life and I hope someone may get help from my experience.


First of all one thing I am going to focus on is Passion ! Passion is 7 letter words which makes our life beautiful, successful and of type which we would never regret in the whole life and I bet you will be happy if you try to learn the real meaning of passion. In our generation, the problem is they get inspired so quickly from films, and shit ideas… they define passion and love for work in some manners which are just limited to a character.  But let me tell you the definition or definitions of passion which I have learnt from my experience, mentors and teachers.
  •         Passion is something which kicks you out of time and space 
  •         Passion is when you work 18 hours a day and you are not tired.
  •         Passion is work which will make your inner happy.

You may be thinking that I am trying to be a philosopher, but the fact is without passion your career is nothing. If you haven’t found a passion and you are trying to get a job you are just wasting your precious time nothing else. You may have noticed some people they said oh again Monday, let me tell you they don’t hate Monday they just hate their jobs. And the reason behind that hate is they haven’t spent time on finding their passion, otherwise they would never regret. So, I hope it is crystal clear now that how to find your passion. If still confuse read the above 3 definitions again and you will find your passion easily.

Now once you find out your passion, the game begins.  Now in your field about which you are passionate you will find to many routes. Again there you will see many fields which will surely confuse you. Take example of Information Technology field, when you get into it there are hundreds of fields, you will face many problems and will be confused for long time in this thinking that where to go and which field to select. In case of IT field one will say Go for Software Development, some will say no go for web development BUT the critical point here is DO research not just act on blind advices ! Suppose I love web, I will surely preach about web BUT you are blessed with mind ! You have to think too, you have to do research about the field you gonna jump into. Because in the near future, you will be responsible for your decision. So in simple words take advices BUT do research yourself to, so once you completely get satisfied about a field…. There you’ll meet your perfect and pure passion. This will be the passion which will not bore you, this passion will then let you work 18 hours a day. And believe me you will never get tired and bore, you always will be happy and won’t regret it.


First when i started Software Engineering, I was totally blind about these facts. When I came to know the there is a huge ocean in Software Field, I was stuck and was totally upset that what to do ? Which field to select. But one day I grab my laptop and started research my self, I googled about different fields related to Software Engineering. I asked the people who were in the market, I contacted them one by one. I collected a lot of precious advises, then again I studies that and again did a lot of research on YouTube, Google, and Forums. And finally I found my passion in Web, now I professionally I am Software Engineer but by passion I am Full Stack Web Developer, and you know this just makes me a happiest person in the world. You may be thinking that what the heck I am talking blah blah. BUT believe me once you get into this world you will get it. Another thing skills has price but passion is priceless.