<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Serg on Medium]]></title>
        <description><![CDATA[Stories by Serg on Medium]]></description>
        <link>https://medium.com/@karakhanyans?source=rss-632aa3793a86------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pqq0fZQgjdJKFeXxaVBqQQ@2x.jpeg</url>
            <title>Stories by Serg on Medium</title>
            <link>https://medium.com/@karakhanyans?source=rss-632aa3793a86------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 21:51:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karakhanyans/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[1 Year of IndieHacking — Why you should Start Now!]]></title>
            <link>https://karakhanyans.medium.com/1-year-of-indiehacking-why-you-should-start-now-3e91b510449d?source=rss-632aa3793a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e91b510449d</guid>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[no-code]]></category>
            <dc:creator><![CDATA[Serg]]></dc:creator>
            <pubDate>Mon, 17 Feb 2025 08:50:33 GMT</pubDate>
            <atom:updated>2025-02-17T08:51:00.695Z</atom:updated>
            <content:encoded><![CDATA[<h3>1 Year of IndieHacking — Why you should start NOW!</h3><p>What I have learned, what I achieved, and why you need to start now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LmPpGJi3jYMOgjFx" /><figcaption>Photo by <a href="https://unsplash.com/@kasiade?utm_source=medium&amp;utm_medium=referral">Kasia Derenda</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A year ago, February 2024, I started to do Indie Hacking.</p><p>So who are they, Indie Hackers? What’s the allure around them?</p><p>I’ll try to explain how I see it.</p><p>It’s a group of tech enthusiasts who try to escape their daily jobs on the way to freedom, a better life, and creative fulfillment. These are individuals who leverage their skills to build and grow their own businesses, usually with limited resources and without external funding. They are usually against VC funding. More for a freedom than being tied to someone else’s decisions.</p><p>A year ago, I found out about them, after closing my software company after 7 years of running it. I wrote about how it’s started in the article below.</p><p><a href="https://karakhanyans.medium.com/from-founder-to-indie-maker-74f8c693daea">From Founder to Indie Maker</a></p><p>In this article I will talk about what I have learned during this year, how it is working for me, and what’s the plan for the future.</p><h3>The Beginning</h3><p>The first impression about the community and its members was — “Wow, dammit, I could have done this all the time, creating small projects, promote them, fail, do again”, instead I was working on the projects for months with my team, investing all the income from my outsourcing business, and still failing.</p><p>When you see guys like yourself, desperate, grinding their way in this life, you are getting inspired. You see people less experienced than you, beginners, who try hard to win this life. And they do win. Even when it’s not with successful product, they win, by getting the experience running this businesses. You cannot buy that.</p><blockquote>Your fancy degree is cool, but if you never try your skills and gain practical experience, you are gonna lose to the college dropout who makes 12 SaaS in 12 months.</blockquote><p>I tried to jump the wave, I met a lot of new people, who were very nice, everyone wanted to help, to inspire. My first product as an Indie, <strong>PosterGPT</strong> (you can learn about it in the article above), it didn’t work. I had good ideas around it, and I could pivot it, but I didn’t. Don’t ask me why, I still regret it.</p><p>Then I saw <strong>Marc Lou</strong>, with his <strong>Starter Kit for NextJS</strong>, and I thought to make one for myself, but with <strong>Laravel</strong>. I’ve been doing <strong>Laravel</strong> for 8 years already, and I have a lot to offer to the community. So I made it. In a week.</p><h4>My first sale for Larafast</h4><p>It was mid February, and guess what, after 10 days of being live, I made my first sale. Out of the blue. In the middle of the night.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*2wgxwyToJCzDvO6XI7mqmA@2x.png" /><figcaption>My first sale for Larafast</figcaption></figure><p>That was the first lesson for me — you don’t have to have a big audience, to make money online, back then I had bit more than 200 followers on Twitter. What you need is — good product, talking to customers, DM people, send emails, post on social media. Spread the word, otherwise how people will know about you and your product?</p><p>To date, almost in a year, Larafast made <strong>$65,000</strong> in revenue.</p><blockquote><strong>Big audience is nice, but it’s not the key to get your first $ online.</strong></blockquote><h3>The path</h3><p>While you are building your product in public, it’s important to share your stories, your successes, your failures, share some tips that worked for you. That’s the whole idea of Build in Public, no? To share and learn from each other.</p><p>So I started to share. Almost every step that I did with <a href="https://larafast.com/"><strong>Larafast</strong></a><strong>,</strong> the marketing channels that worked, the <strong>SEO tricks</strong>, the sneaky <strong>marketing</strong> tactics. First time in my career, I found a community where I can ask questions about the fields that I am not skilled enough— marketing, SEO, backlinks. And people willing to help you, for free.</p><p><strong>Build in Public</strong> taught me to overcome the imposter syndrome. Because the more you tweet, the more you are getting comfortable doing it, getting our of your comfort zone. I didn’t had problems getting out of comfort zone, but I did that in private, sharing about it wasn’t a thing for me a year ago.</p><p>I even started a <a href="https://www.youtube.com/@karakhanyansa"><strong>YouTube</strong></a> channel, started to do videos, recording myself. It’s still hard to this day, but when I do, I feel revealed and happy.</p><p>Started to DM and send cold emails. And I realized why people don’t like it. We just hate to be rejected. But we should love the outcome more, than we hate to be rejected. Does that make sense? I hope so.</p><p>I found a job. Through Twitter. Twice. <br>But I quit both to focus on my projects.</p><blockquote>Build in Public helps you to try new things, open your skills, get your out of comfort zone and overcome the imposter syndrome.</blockquote><h3>The Plans</h3><p>My current focus is <a href="https://directify.app/"><strong>Directify</strong></a> — the No-Code Directory Website builder.</p><p>The idea of it came from one of my customers from <a href="https://larafast.com/">Larafast</a>, who got Directory Starter Kit and said it would be cool to have the similar, but for non-technical people.</p><p>And here is it — <a href="https://directify.app/">Directify.app</a> already helps 1000s of people to create directories in few minutes, add integrations, create content, build traffic and earn money.</p><p>The plan is, to grow Directify, to compete against existing giants with more modern and easy solution, instead of traditional and heavy Drag &amp; Drop website builders.</p><p>I need to continue recording more videos about my journey in YouTube and talk more there about Directify.</p><blockquote>Don’t be hard on yourself. After all, we are all just human beings. We are allowed to fail. Just keep trying until you get whatever you REALLY want.</blockquote><p>During this path, you meet a lot of great people, making some online friends, I met some of them offline, and hopefully can meet more.</p><p>This one year taught me that there can be bad days, there can be amazing days, and can be lazy days. But as long as you keep the path, you are on the right track.</p><p>I am surprised to this day how I cannot know about that community after being in the industry for 11 years.</p><p>Join me on my journey:</p><p>🎥 YouTube — <a href="https://www.youtube.com/@karakhanyansa">@karakhanyansa</a><br>🐦 Twitter — <a href="https://twitter.com/karakhanyans">@karakhanyans</a><br>🛠️ Directify — <a href="https://directify.app/">directify.app</a><br>⚡ Larafast — <a href="https://larafast.com/">larafast.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e91b510449d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Founder to Indie Maker]]></title>
            <link>https://karakhanyans.medium.com/from-founder-to-indie-maker-74f8c693daea?source=rss-632aa3793a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/74f8c693daea</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Serg]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 14:50:43 GMT</pubDate>
            <atom:updated>2024-02-23T00:22:24.498Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ITkoyGh1VoqfTyCc" /><figcaption>Photo by <a href="https://unsplash.com/@jefflssantos?utm_source=medium&amp;utm_medium=referral">Jefferson Santos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>How it started</h3><p>A couple of weeks ago I joined Twitter&#39;s <em>#buildinpublic</em> and <em>#indiehackers</em> community. It happened kind of accidentally, but also just right in time.</p><p>I’ve closed my software outsourcing company, after trying to grow it for 7 years, due to a lack of clients and was working on my new app, <a href="https://postergpt.xyz/">PosterGPT</a>, when I saw a <a href="https://www.linkedin.com/posts/thibaultll_ive-built-15-saas-acquired-25000-customers-activity-7158752104226926597-Hxk5">post on Linkedin</a> by <a href="http://twitter.com/tibo_maker">@tibo_maker</a>, where he talks about marketing channels and how he built 15+ SaaS applications.</p><p>One of those channels was Twitter. By that time I had already launched PosterGPT in ProductHunt, shared some posts on Linkedin, and Instagram, and decided to do a post on Twitter. I had an account there for a long time, but never actively used it.</p><p>…and it started</p><h3>Twitter</h3><p>I just cannot call it X (Sorry Elon).</p><p>Twitter started to suggest posts from #buildinpublic and #indiehackers almost immediately like it knew what I needed at that time. That’s how I got to know the community, and what’s going on there, and met a lot of guys like me, building and trying to grow their startups.</p><p>It’s been just two weeks, but one clear sign that you are learning from them, is “You do not need investments or big company to build a successful SaaS app”. It’s so obvious. Guys are working on their 9/5 jobs and building their dreams afterward. You see a lot of failures and a lot of successes.</p><p>Some of them launched already 20+ apps, and just one of them worked well (yep, <a href="https://twitter.com/marc_louvion">@marc_lou</a> himself), another one launched 13+ apps again with few successes.</p><p>…and it clicked</p><h3>Eureka</h3><p>When I had a software company, I was using all the revenue and personal 9/5 income on building something new. Half of my team was always working on our internal ideas. We’ve launched 4 startups during that time, and none of them succeeded, only one of them generated 130$ revenue 😁 <br>A lot of time and money was invested. We were designing from scratch, redesigning, adding new features, and creating v2.0 of our projects, without validating the ideas first.</p><p>Eventually, all was lost.</p><p>The indie community opened my eyes. You do not need to have a team to be able to launch and test a startup and it’s fine if your 19 ideas are total bullsh*it. 20th can be a huge success.</p><p>And when you are getting into the flow, you want to build and build and build. In the past 3 weeks, I launched 2 SaaS apps and 1 boilerplate — which will help me to launch even more and even faster ( <a href="https://larafast.com/">LaraFast</a> ) 😁. It took me just 2 hours to create <a href="https://rsstotweet.xyz/">RSS to Tweet</a> with LaraFast and launch it to Product Hunt today. You can do it too.</p><p>…and it goes</p><p>I will finish this article with my favorite indie hacker’s quote.</p><blockquote>The more we ship, the more we learn, the more we earn — Marc Lou</blockquote><p>Cheers everybody! ✋</p><h4>To be continued…</h4><p><em>P.S. Join me on Twitter </em><a href="https://twitter.com/karakhanyanS"><em>https://twitter.com/karakhanyanS</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74f8c693daea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Social Media and Mental Health: The Dark Side of Technology]]></title>
            <link>https://karakhanyans.medium.com/social-media-and-mental-health-the-dark-side-of-technology-88074e6ae0df?source=rss-632aa3793a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/88074e6ae0df</guid>
            <category><![CDATA[discipline]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[Serg]]></dc:creator>
            <pubDate>Fri, 17 Mar 2023 05:02:39 GMT</pubDate>
            <atom:updated>2023-03-17T05:02:39.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J0uH-F3-Vkk5DAY5" /><figcaption>Photo by <a href="https://unsplash.com/@eaterscollective?utm_source=medium&amp;utm_medium=referral">Eaters Collective</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the 21st century, social media has become an integral part of our daily lives. We spend hours scrolling through our newsfeeds, admiring the seemingly perfect lives of others, and comparing ourselves to their seemingly perfect lives. This constant exposure to the “highlight reels” of others can lead to feelings of insecurity, depression, and anxiety.</p><p>While social media was originally created as a platform to connect people, it has since evolved into something much more complex. With the increasing pressure to always be “on” and constantly posting content, many people are struggling to keep up with the demands of social media. This can lead to a vicious cycle of constantly seeking validation from others through likes, comments, and shares, and never feeling truly satisfied.</p><p>According to psychologists, one of the keys to combating the negative effects of social media on our mental health is to develop self-discipline. This means taking small, consistent steps to improve our lives and build a more positive and fulfilling routine. Simple habits such as making your bed in the morning, doing dishes, washing clothes on time, and cleaning your home regularly can all help to foster a sense of discipline and structure in your life.</p><p>Another important aspect of self-discipline is maintaining a consistent sleep schedule and engaging in regular exercise. By waking up and going to bed at the same time every day, and committing to a regular workout routine, you can help to reduce feelings of anxiety and depression and improve your overall mood.</p><p>Ultimately, the key to overcoming the negative impact of social media on our mental health is to cultivate a sense of self-love and self-care. By focusing on our own well-being, and not constantly comparing ourselves to others, we can create a healthier, more fulfilling life. So, if you’re feeling overwhelmed or stressed by the demands of social media, take a step back, and focus on building a more disciplined and positive routine for yourself.</p><p>In conclusion, while social media has brought people closer together, it has also created new challenges for our mental health. However, by developing self-discipline and taking small, consistent steps to improve our lives, we can overcome these challenges and build a happier, more fulfilling life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88074e6ae0df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Focus Management is Better than Time Management]]></title>
            <link>https://karakhanyans.medium.com/why-focus-management-is-better-than-time-management-a548ba47b459?source=rss-632aa3793a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/a548ba47b459</guid>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[pomodoro-technique]]></category>
            <dc:creator><![CDATA[Serg]]></dc:creator>
            <pubDate>Mon, 13 Feb 2023 13:14:37 GMT</pubDate>
            <atom:updated>2023-02-13T13:16:48.947Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e9eIPdhk5EYGuyFg" /><figcaption>Photo by <a href="https://unsplash.com/@villxsmil?utm_source=medium&amp;utm_medium=referral">Luis Villasmil</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In today’s fast-paced world, time is a precious commodity, and many of us are constantly struggling to get everything done. That’s why we often hear the advice to “manage our time better.” But what if the problem isn’t with how we’re managing our time, but with how we’re approaching our work in the first place? What if, instead of focusing on managing our time, we need to start focusing on managing our focus?</p><h3>The importance of focus:</h3><p>The reality is that our brains can only focus for short periods of time before we start to lose focus and become distracted. This is why the idea of working for 8 hours straight is a myth. Instead, we need to work in focused, concentrated bursts and take regular breaks in between. This is the key to being productive and getting things done efficiently.</p><h3>The benefits of focus management:</h3><p>When we focus on managing our focus, we’re able to get more done in less time. This is because we’re not wasting time on distractions or trying to switch between tasks. We’re also able to produce higher quality work because we’re not rushing through tasks or making mistakes due to fatigue.</p><p>Additionally, focus management allows us to be more mindful and present in the moment. We’re not constantly thinking about what we need to do next or worrying about the time. We’re able to be fully engaged in the task at hand, which can lead to a more satisfying and enjoyable work experience.</p><h3>Why time management can be limiting:</h3><p>While time management is a useful tool, it can also be limiting. When we focus on managing our time, we often feel pressure to complete a certain amount of work in a specific period of time. This can lead to burnout and stress.</p><p>Additionally, time management can be a less effective approach for creative tasks that require a more fluid and open-ended approach. When we’re tied to a strict schedule, we may not allow ourselves the time and space to explore new ideas and take risks.</p><h4>Here are some examples of focus management techniques that you can incorporate into your workday:</h4><ol><li><strong>The Pomodoro Technique:</strong> This is a time management method that involves working in focused 25-minute intervals, followed by a 5-minute break. Repeat this cycle several times, and then take a longer break after every fourth cycle.</li><li><strong>Eliminating distractions: </strong>One of the biggest obstacles to focus is distractions. This can be anything from notifications on your phone to people talking in the background. To improve your focus, eliminate as many distractions as possible. Turn off your phone, close your email, and let people know that you’re unavailable for a set amount of time.</li><li><strong>Prioritize your tasks:</strong> Before you start work, make a list of the most important tasks you need to complete. Then prioritize them based on their level of urgency and importance. This will help you focus on the tasks that are most critical and avoid wasting time on less important tasks.</li><li><strong>Take breaks regularly: </strong>Regular breaks can help you recharge and refocus your attention. This can be anything from going for a walk, doing a short meditation, or simply stretching your legs.</li><li><strong>Use the “two-minute rule”:</strong> If you have a task that can be completed in two minutes or less, do it immediately. This will help you avoid procrastination and keep your focus on the most important tasks.</li><li><strong>Focus on one task at a time:</strong> Multitasking is often touted as a way to get more done in less time, but it’s actually a major distraction and can reduce your productivity. Instead, focus on one task at a time, and give it your full attention until it’s done.</li><li><strong>Practice mindfulness: </strong>Mindfulness is the practice of being fully present and engaged in the moment. It can help you stay focused and avoid distractions. Try incorporating mindfulness practices, such as meditation or deep breathing, into your daily routine.</li></ol><p>These are just a few examples of focus management techniques that you can use to improve your productivity and work more efficiently. Give them a try and see how they work for you!</p><h3>Conclusion:</h3><p>In conclusion, focus management is a more effective and sustainable approach to work than time management. By focusing on managing our focus, we’re able to work more efficiently, produce higher quality work, and have a more enjoyable work experience. So next time you’re feeling overwhelmed with your to-do list, try putting down the timer and focusing on the task at hand. You may be surprised at just how much you can get done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a548ba47b459" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Lessons Learned from Rising at 5:30am: The Benefits of Waking Up Early]]></title>
            <link>https://karakhanyans.medium.com/the-benefits-of-waking-up-early-5-lessons-learned-from-rising-at-5-30am-b3525d6e9298?source=rss-632aa3793a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3525d6e9298</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[morning-routines]]></category>
            <dc:creator><![CDATA[Serg]]></dc:creator>
            <pubDate>Mon, 06 Feb 2023 06:22:27 GMT</pubDate>
            <atom:updated>2023-02-08T04:24:54.207Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p--Bd6aWiMz9u-V9" /><figcaption>Photo by <a href="https://unsplash.com/@the5th?utm_source=medium&amp;utm_medium=referral">THE 5TH</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Waking up early is a habit that can have a profound impact on your life. Whether you’re a student, an entrepreneur, or just someone looking to improve your morning routine, waking up early can provide you with countless benefits. Here are five things I learned from waking up early every day, with a more in-depth explanation of each point:</p><h4>1. More Time to Focus on Personal Development</h4><p>One of the biggest benefits of waking up early is that you have more time to focus on your personal development. When you start your day earlier, you have more hours in the morning to invest in yourself. This extra time can be used for things like reading a book, practicing a new skill, or just meditating. By dedicating this time to your personal growth, you can become a better version of yourself, both personally and professionally.</p><p>For example, if you’re an aspiring writer, waking up early gives you more time to write before the demands of the day take over. If you’re an entrepreneur, waking up early can give you time to plan and strategize, helping you take your business to the next level. Whatever your personal goals may be, waking up early gives you the time and focus you need to achieve them.</p><h4>2. Improved Productivity</h4><p>Another benefit of waking up early is improved productivity. When you start your day earlier, you have more time to get things done before the demands of the day take over. This can help you avoid feeling rushed or stressed, allowing you to get more done in a shorter amount of time. By starting your day with a clear and focused mind, you can work more efficiently and effectively, allowing you to accomplish more in less time.</p><p>For example, if you’re a student, waking up early can give you more time to study and complete assignments before the distractions of the day set in. If you’re an entrepreneur, waking up early can give you time to tackle important tasks before the day gets away from you. Whatever your day-to-day responsibilities may be, waking up early can help you be more productive and get more done.</p><h4>3. Better Mental Health</h4><p>In addition to its productivity benefits, waking up early can also have a positive impact on your mental health. The early morning hours are typically quiet and peaceful, making it an ideal time to meditate or reflect. This quiet time can help you start your day with a clear mind and a positive attitude, reducing stress and anxiety.</p><p>For example, if you’re someone who struggles with anxiety, waking up early can give you time to meditate and focus on your breathing, helping you calm your mind and reduce stress. If you’re someone who struggles with depression, waking up early can give you time to exercise and get outside, helping you improve your mood and overall mental health. Whatever your mental health struggles may be, waking up early can help you start your day in a positive and healthy way.</p><h4>4. Better Physical Health</h4><p>In addition to its mental health benefits, waking up early can also help improve your physical health. Whether it’s going for a morning jog, practicing yoga, or simply stretching, starting your day with some physical activity can help you feel energized and refreshed. By starting your day with a workout or some form of physical activity, you can improve your overall health and set yourself up for a successful day.</p><p>For example, if you’re someone who struggles with a sedentary lifestyle, waking up early can give you time to exercise before the distractions of the day set in. If you’re someone who struggles with a healthy diet, waking up early can give you time to prepare a healthy breakfast, helping you start your day with a nutritious meal that sets the tone for the rest of your day. By prioritizing your physical health in the morning, you can make it a consistent habit that lasts throughout the day.</p><h4>5. Better Time Management</h4><p>Finally, waking up early can help you better manage your time. When you start your day earlier, you have more time to focus on the things that matter most to you. This extra time can help you prioritize your tasks and responsibilities, allowing you to better manage your time and avoid feeling overwhelmed or stressed.</p><p>For example, if you’re a student, waking up early can give you more time to study and complete assignments before the day gets away from you. If you’re an entrepreneur, waking up early can give you time to plan and strategize, helping you take your business to the next level. Whatever your daily responsibilities may be, waking up early can help you better manage your time and get more done.</p><h4>P.S. Here are three examples of famous people who attribute their success to waking up early:</h4><ol><li><strong>Tim Cook, CEO of Apple</strong>: Tim Cook is known for his early morning routine, starting his day as early as 3:45 am. He has mentioned in interviews that this early start allows him to have a clear and focused mind, helping him tackle important tasks and decisions before the day gets away from him.</li><li><strong>Richard Branson, founder of Virgin Group</strong>: Richard Branson is another advocate of waking up early, often starting his day as early as 5 am. He has mentioned in interviews that waking up early allows him to get a head start on the day, helping him stay ahead of the competition and achieve his goals.</li><li><strong>Jack Dorsey, co-founder of Twitter</strong>: Jack Dorsey is also known for his early morning routine, waking up at 5:30 am. He has mentioned in interviews that waking up early allows him to have a clear mind and a positive attitude, helping him tackle important tasks and decisions before the demands of the day set in.</li></ol><p>These examples show how waking up early can help successful individuals get ahead and achieve their goals. By starting their day earlier, they are able to prioritize their tasks, focus on their personal development, and lead a more productive and fulfilling life.</p><p>In conclusion, waking up early is a habit that can have a profound impact on your life. From improved personal development to better physical health, there are countless benefits to starting your day earlier. Whether you’re a student, an entrepreneur, or just someone looking to improve their morning routine, waking up early can help you lead a more productive, fulfilling, and healthy life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3525d6e9298" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can No-Code Replace Traditional Web Development?]]></title>
            <link>https://karakhanyans.medium.com/can-no-code-replace-traditional-web-development-e8deadedf2ad?source=rss-632aa3793a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8deadedf2ad</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[no-code]]></category>
            <dc:creator><![CDATA[Serg]]></dc:creator>
            <pubDate>Fri, 03 Feb 2023 05:28:53 GMT</pubDate>
            <atom:updated>2023-02-03T05:28:53.546Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QUwTLw16zsRlAWrR" /><figcaption>Photo by <a href="https://unsplash.com/@nateggrant?utm_source=medium&amp;utm_medium=referral">Nate Grant</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>No-code development has taken the web development industry by storm, providing a much-needed change from traditional web development methods. It has been around for quite some time now and is quickly gaining popularity among non-technical individuals, businesses, and organizations.</p><p>So, what exactly is no-code development? In simple terms, it’s a method of creating web applications without having to write any code. Instead, users can use visual interfaces and drag-and-drop functionalities to design and build websites and web applications. The idea behind no-code development is to make web development accessible to people who don’t have any technical coding skills.</p><p>No-code development is not a completely new concept. It has been around for a while, but with recent advancements in technology and increased demand, no-code development has become more mainstream. Today, there are a wide range of no-code development tools available, each with its own unique features and functionalities.</p><h4>Why No-Code Development is Gaining Popularity</h4><p>The rise of no-code development is driven by a number of factors, including the increasing demand for web applications and the shortage of skilled web developers. With no-code development, businesses can build custom applications quickly and easily, without having to hire a large team of developers. This can significantly reduce the time, effort, and cost associated with traditional web development.</p><p>Another factor contributing to the popularity of no-code development is the increasing number of non-technical individuals who want to build their own web applications. With no-code development, people with little to no coding experience can still build and launch their own websites and web applications. This makes it easier for individuals and small businesses to get online and start making a presence for themselves.</p><h4>The Benefits of No-Code Development</h4><p>There are several benefits to using no-code development, including:</p><ol><li>Increased efficiency: No-code development enables businesses to build custom web applications quickly and easily, without having to wait for a team of developers to complete the work. This can result in a faster time to market and reduced development time.</li><li>Cost savings: No-code development eliminates the need for businesses to hire a large team of developers, which can significantly reduce the cost of web development.</li><li>Accessibility: No-code development makes web development accessible to individuals and businesses who don’t have any technical coding skills. This enables them to build their own websites and web applications, without having to rely on others.</li><li>Customization: No-code development tools offer a wide range of customization options, allowing businesses to build custom web applications that meet their specific needs.</li><li>Scalability: No-code development allows businesses to easily scale their web applications as their needs change, without having to start from scratch or hire additional developers.</li></ol><h4>Can No-Code Replace Traditional Web Development?</h4><p>While no-code development is a game changer in the web development industry, it’s not yet advanced enough to completely replace traditional web development methods. There are still some limitations to no-code development, such as the lack of control over certain elements of the application, and the limited options for customization.</p><p>Additionally, traditional web development methods still offer a greater level of control and customization, as well as the ability to build more complex applications. For these reasons, traditional web development methods are still a necessary part of the web development process.</p><p>However, no-code development is becoming increasingly popular, and its popularity is only going to grow as technology continues to advance. With its many benefits, no-code development is an excellent option for businesses and individuals who want to build simple to moderate web applications without having to invest a lot of time and money into traditional web development.</p><h4>Conclusion</h4><p>In conclusion, no-code development is a powerful tool that has the potential to revolutionize the web development industry. It offers a range of benefits, including increased efficiency, cost savings, accessibility, customization, and scalability. However, it is not yet advanced enough to completely replace traditional web development methods, especially when it comes to building more complex applications.</p><p>In the end, the choice between traditional web development and no-code development will depend on the specific needs of the business or individual. While no-code development is a great option for simple to moderate applications, traditional web development may still be necessary for more complex projects. Ultimately, the best approach will be a combination of both methods, leveraging the strengths of each to build high-quality web applications that meet the specific needs of the user.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8deadedf2ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You Have to Love the Process]]></title>
            <link>https://karakhanyans.medium.com/you-have-to-love-the-process-339ee12ce247?source=rss-632aa3793a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/339ee12ce247</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Serg]]></dc:creator>
            <pubDate>Tue, 01 Nov 2022 03:46:42 GMT</pubDate>
            <atom:updated>2022-11-01T03:46:42.952Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bmcygrHT1ZqkjI68" /><figcaption>Photo by <a href="https://unsplash.com/@goian?utm_source=medium&amp;utm_medium=referral">Ian Schneider</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When I first felt that I love the process more than the result, I realized that it makes me better at dealing with failures. In the end, who cares about the outcome if you enjoy the process of getting to it, and opposite, if you do not enjoy the process, you will not get the joy of success too.</p><blockquote>If you do not love the process you’re up to, you’ve already lost. {…} I love the idea of getting to bying the jets more than buying the jets. {…} - Gary Vaynerchuk</blockquote><blockquote>This article is not meant to be a motivational post, the content of it is just based on my personal observations and experience.</blockquote><p>We all love when our hard work pays off, but we never know what will be the result in the end, and concentrating too much on the end result, without enjoying the process can disappoint and make us quit. Why? Well, because we are all impatient and want immediate success.</p><p>When you go to the gym, after the first workout you will see no change. After the second workout, you will see no change. But if you concentrate on the process and constantly do your best by enjoying it, it will be paid off in the end. You will see the changes in your body.</p><p>The process can be too long to wait till the end to get the reward and we may never get it. Considering all this, we must start to love the process no matter the result.</p><p>This article is not about “not having the goals”, it’s the opposite. You have to know where you are going and have fun going there. And if you learn how to love the process, failing at the end will not disappoint you, and succeeding will be doubled, as you enjoyed the whole process.</p><p>But how to do that, in this impatient world, where we see a lot of successful people around and want to compete? Well, that question has the answer in it.</p><h3>Never Compete</h3><p>Never compare yourself with others. First of all, we are all different. You didn’t start equal. You will not end up equal. And you do not measure success equally. For some success means money, for others, it’s power or freedom or accomplishing a goal. Ride your own ride.</p><h3>Be Patient</h3><p>Slow down. You need to stop expecting immediate results in what you do and learn to be patient. Impatience is the direct route to depression. Do it slowly, but constantly. Consistency is your friend in this route.</p><h3>Reward Yourself for Small Achievements</h3><p>Divide the process into small milestones, and give yourself a reward after completing each of them. Rewarding yourself for small accomplishments can go a long way. If you are in the process of weight loss, do a “Cheat day” and enjoy your beloved cake once in a while. You’ve earned that, fluffy.</p><p>In recent months I started to feel depressed, lacked the will to do anything, was lazy, and was in a constant bad mood because the business that I had been doing for the past 5 years started to go down. I began to see problems in finding new clients, in leadership, and in relationships with employees. That was the trigger that reminded me to not concentrate too much on the outcome and to return to loving the process. It helps to not give up.</p><p>Love what you do, do it constantly, and you’ll get your rewards. If you don’t get it in the end, well, you at least enjoyed the process and didn’t ruin your life by doing something you hate.</p><p>Follow me on Instagram: <a href="https://www.instagram.com/karakhanyans/">https://www.instagram.com/karakhanyans/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=339ee12ce247" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Love to the Motherland or Ulysses Syndrom?]]></title>
            <link>https://karakhanyans.medium.com/love-to-the-motherland-or-ulysses-syndrom-89fa51463c73?source=rss-632aa3793a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/89fa51463c73</guid>
            <category><![CDATA[immigration]]></category>
            <category><![CDATA[armenia]]></category>
            <category><![CDATA[love]]></category>
            <category><![CDATA[relocation]]></category>
            <category><![CDATA[motherland]]></category>
            <dc:creator><![CDATA[Serg]]></dc:creator>
            <pubDate>Mon, 01 Aug 2022 08:32:10 GMT</pubDate>
            <atom:updated>2022-08-01T08:35:39.852Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JKvB3G1Am-Ljlqmv" /><figcaption>Photo by <a href="https://unsplash.com/@lyovon?utm_source=medium&amp;utm_medium=referral">Levon Vardanyan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>I like it here, I like a lot here, almost everything, but I don’t love anything here, and I don’t like a lot at home, but I <strong>love</strong> it.</blockquote><blockquote>- Evgeny Grishkovets</blockquote><h3>Unexplainable inner love</h3><p>It’s been 1995. The dark and cold (literally) period for our country. We were exhausted by a strong earthquake in Spitak, the collapse of the Soviet Union, and the war with Azerbaijan.</p><p>I’ve been two years, and my sister 6 months old, when my family decided that we need to leave the country, to search for a better life.</p><p>I remember nothing about that moving, obviously, but I remember that in 1997, after two years, we came for a vacation, for one month. I was already 4 years old, an active kid who annoyed everyone with many questions. That trip was a discovery of my motherland for me.</p><p>My first amazement was, that everyone speaks Armenian, wherever you go, whoever you meet` speaks Armenian. I met my grandparents and my relatives for the first time at my conscious age. Discovery one after another, and when the time to return came, I asked my mom, — “If our country is this beautiful, full of lights, why do we have to leave it?”. Yes, 4 years old me was very impressed with Yerevan nights, which were full of beautiful lights.</p><p>For the next 8 years, we have never been to Armenia.</p><h3>Homecoming</h3><p>We were moving a lot—city after city, school after school. And after 10 years of constant moving, we decided to return and continue our life here. Again new school, new friends, “new” city, but this time our city. It was hard at first, I had to learn to read and write in our language, gain new friends, and integrate into society, with my “Russian accent”. But I did it. <br>I have successfully graduated the school, served in the army, and graduated the university.</p><p>At the age of 22, after graduating the university, I decided to visit my father in Russia and spend a couple of months with him ( ah yes, he still lives there, we see each other a few months a year, it’s a curse of my generation ). It took me 4 months to understand that I want to return. Life in Russia was so different from what I used to live in, I hated it. I returned <strong>home</strong> again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E91FGy5FWM3MRtiu" /><figcaption>Photo by <a href="https://unsplash.com/@lyovon?utm_source=medium&amp;utm_medium=referral">Levon Vardanyan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>During writing this, I am asking myself, why I was trying to escape the country again and again. :D</blockquote><h3>Discovery</h3><p>During the pandemic, in 2020, I got a job at a German startup, which required me to relocate. You can read the details in my other article.</p><p><a href="https://karakhanyans.medium.com/how-i-moved-to-germany-during-pandemic-e390a045bb2">How I moved to Germany during Pandemic</a></p><p>It wasn’t a good idea to move during the pandemic. Rainy and dark December, closed cafes and restaurants, nowhere to go, nothing to do, just a foreign country, where you are alone. <a href="https://www.youtube.com/watch?v=d27gTrPPAyk">Legal alien</a>.</p><p>I moved with the idea in my mind that this is temporary. 3 years was the deadline I set for myself.</p><p>When the strict rules of pandemics got removed, I started to travel a lot. I loved traveling even before moving, and now, when it became easier, life couldn’t be better.</p><p>I was enjoying life in Germany, with a longing for Armenia. <br>I was visiting Armenia often, every 3–4 months, but it wasn’t enough to fill the emptiness. I was missing my family, friends, and life here a lot.</p><p>I gained a lot of friends and amazing colleagues in Germany. I wish I can meet them often.</p><p>I liked how law-abiding Germans are. Their amazing public transport, their medicine ( daily visits to the doctor is a different story :D ), their ability to have a law for every aspect of their citizen&#39;s life, and when I say “every aspect” I mean it. Their big parks, clean streets ( they really wash the streets with foam ), bike routes, and <strong>beer</strong> gardens :). Looks ideal from the side, isn’t it? You, as a citizen, are protected in Germany, from your employer, from any kind of health problems, your insurance will cover everything.</p><p>One day I asked myself, are all these material things combined can be enough for an exchange of living away from your motherland, family, and friends? Is it the life that I dreamed of? The answer was obvious to me.</p><p>So what is that, love to the motherland or <a href="https://en.wikipedia.org/wiki/Ulysses_syndrome">Ulysses Syndrom</a>?</p><p>They have all these things, but they miss one thing, we say “<em>շունչ չկա մեջները</em>”, which means “there is no life in there, there is no spirit”. I wish one day we can do a lot of things, like Germany, without losing the spirit.</p><p>After spending 18 months in Germany, I returned to my lovely country, forever. I will never leave you again, my poor little Armenia.</p><blockquote>I liked a lot in Germany, almost everything, but I don’t love anything there, and I don’t like a lot in Armenia, but I <strong>love</strong> it.</blockquote><blockquote>- Sergey Karakhanyan</blockquote><p>Follow me on Instagram: <a href="https://www.instagram.com/karakhanyans/">https://www.instagram.com/karakhanyans/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89fa51463c73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I moved to Germany during Pandemic]]></title>
            <link>https://karakhanyans.medium.com/how-i-moved-to-germany-during-pandemic-e390a045bb2?source=rss-632aa3793a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/e390a045bb2</guid>
            <category><![CDATA[relocation]]></category>
            <category><![CDATA[germany]]></category>
            <category><![CDATA[covid]]></category>
            <category><![CDATA[armenia]]></category>
            <dc:creator><![CDATA[Serg]]></dc:creator>
            <pubDate>Sun, 28 Mar 2021 16:44:08 GMT</pubDate>
            <atom:updated>2022-07-31T09:04:53.909Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I moved to Germany during the Pandemic</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N8_hNWRFy7F7wBjl" /><figcaption>Photo by <a href="https://unsplash.com/@purzlbaum?utm_source=medium&amp;utm_medium=referral">Claudio Schwarz | @purzlbaum</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the middle of 2020, I got an interview suggestion from one of the German fast-growing startups to join their team. Once we started the interview, I got the strict condition, “You need to relocate for this position”. I am the kind of person, who loves his country despite all and plans to live life there. But on the other hand, it’s Germany, a growing startup with a lot of new opportunities, connections, and of course, people. It’s a chance to get a blue card and travel through Europe without a visa and restrictions. Are you getting these chances often? As <a href="https://www.eminem.com/">Eminem</a> said once “<a href="https://www.youtube.com/watch?v=_Yhyp-_hX2s"><em>Would you capture it? Or just let it slip?</em></a><em>” </em>And... I said no. After saying warm words to each other we ended the call.</p><p>As you may guess from the title of this article, it wasn’t a final decision.<br>After thinking a bit about the opportunity I thought, “Why not? Why not try, I love new challenges…”. Anyway, if I don’t like Germany I can return anytime.</p><p>I dropped a message to my future boss saying that I changed my mind and that if I pass the interview I will agree to relocate. We discussed all the edges of our cooperation, I passed the interview, and coding challenge and we signed the contract.</p><blockquote><em>We forgot about an important detail: It’s 2020. It’s COVID19. It’s lockdown.</em></blockquote><p>By making an agreement that we will cooperate remotely until the conditions will allow us to relocate, we started preparation. I have collected all my documents, diplomas, certificates, and all needed for this process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XucrU9j6cqskgrkC" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The most interesting part starts now.<br>First of all, after getting all my documents and pre-confirmation from the FEA of Germany I needed to get an appointment at the embassy. But, the embassy is closed, due to pandemics, I need to wait.</p><p>It took a few months for me to get an appointment in the embassy and then around 3 weeks to get our visas.</p><p>I moved.</p><p>A similar process started here, to get the blue card, but it was already stressless as I knew that I am here already and nothing can interfere to get it.</p><p>I think I will continue to share about our adventures here, but for now, I definitely need to learn German.</p><p>Tschüss!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e390a045bb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EnvClient for Laravel 6+]]></title>
            <link>https://medium.com/geekculture/envclient-for-laravel-6-b6a5cd99f339?source=rss-632aa3793a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6a5cd99f339</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[env]]></category>
            <dc:creator><![CDATA[Serg]]></dc:creator>
            <pubDate>Fri, 31 Jan 2020 08:22:14 GMT</pubDate>
            <atom:updated>2021-03-23T21:41:45.292Z</atom:updated>
            <content:encoded><![CDATA[<h4>Manage and validate environmental variables with artisan console commands, environmental rules, and facades</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iltqXe2DhhunGU_a" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_source=medium&amp;utm_medium=referral">Christopher Gower</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Github</strong>: <a href="https://github.com/lionix-team/envclient">https://github.com/lionix-team/envclient</a></p><p><strong>Packagist: </strong><a href="https://packagist.org/packages/lionix/envclient">https://packagist.org/packages/lionix/envclient</a></p><h3>Installation</h3><pre>composer require lionix/envclient</pre><h3>Artisan commands</h3><p>SignatureDescriptionenv:get {key}Prints .env variable valueenv:set {key} {value}Sets .env variable if validation rules are passedenv:checkCheck all env variables for validnessenv:emptyPrint empty .env variablesmake:envrule {name}Create a new .env validation rules</p><h3>Basic usage</h3><p>Set an environment variable using env:set artisan command.</p><pre>php artisan env:set EXAMPLE_ENV_VARIABLE &quot;example value&quot;</pre><p>The command will modify your environment file by replacing or adding the given key to it.</p><h3>Validate environment variables</h3><p>If you want to apply validation rules to environmental variables before env:set command will modify the file you will have to publish command package configuration files.</p><pre>php artisan vendor:publish --provider=&quot;Lionix\EnvClient\Providers\EnvClientServiceProvider&quot; --tag=&quot;config&quot;</pre><p>The command will create config/env.php</p><pre>&lt;?php</pre><pre>return [</pre><pre>/**<br>     * Validation classes which contain environment rules<br>     * applied by env artisan commands.<br>     * <br>     * Add your validation classes created by <br>     * `php artisan make:envrule` command to apply their rules<br>     * <br>     * @var array<br>     */<br>    &quot;rules&quot; =&gt; [<br>        \App\Env\BaseEnvValidationRules::class<br>    ]<br>];</pre><p>and app/Env/BaseEnvValidationRules.php</p><pre>&lt;?php</pre><pre>namespace App\Env;</pre><pre>use Lionix\EnvValidator;</pre><pre>class BaseEnvValidationRules extends EnvValidator<br>{<br>    /**<br>     * Validation rules that apply to the .env variables.<br>     *<br>     * @return array<br>     */<br>    public function rules() : array<br>    {<br>        return [<br>            //<br>        ];<br>    }<br>}</pre><p>By adding validation rules into rules method return value you will apply them to env:set command.</p><pre>...<br>public function rules() : array<br>{<br>    return [<br>        &quot;DB_CONNECTION&quot; =&gt; &quot;required|in:mysql,sqlite&quot;<br>    ];<br>}<br>...</pre><p>This way if you try to set an invalid value to the DB_CONNECTION variable with env:set command, the console will print out an error</p><pre>$ php artisan env:set DB_CONNECTION SomeInvalidValue<br>The selected DB_CONNECTION is invalid.</pre><p>If your environment file was modified you can run env:check command which will check all variables for validness and print out the results.</p><pre>$ php artisan env:check<br>The selected DB_CONNECTION is invalid.</pre><h3>Create a new environmental validation rules</h3><h3>Run the make:envrule command</h3><p>By default, the script will generate a class in App/Env namespace.</p><h4>Example:</h4><pre>php artisan make:envrule DatabaseEnvRules</pre><p>app/Env/DatabaseEnvRules.php</p><pre>&lt;?php</pre><pre>namespace App\Env;</pre><pre>use Lionix\EnvValidator;</pre><pre>class DatabaseEnvRules extends EnvValidator<br>{<br>    /**<br>     * Validation rules that apply to the .env variables.<br>     *<br>     * @return array<br>     */<br>    public function rules() : array<br>    {<br>        return [<br>            //<br>        ];<br>    }<br>}</pre><h3>Specify validation rules:</h3><pre>...<br>public function rules() : array<br>{<br>    return [<br>        &quot;DB_CONNECTION&quot; =&gt; &quot;requried|in:mysql,sqlite,pgsql,sqlsrv&quot;<br>        &quot;DB_HOST&quot; =&gt; &quot;requried&quot;,<br>        &quot;DB_PORT&quot; =&gt; &quot;requried|numeric&quot;,<br>        &quot;DB_DATABASE&quot; =&gt; &quot;requried&quot;,<br>        &quot;DB_USERNAME&quot; =&gt; &quot;requried&quot;,<br>        &quot;DB_PASSWORD&quot; =&gt; &quot;requried&quot;<br>    ];<br>}<br>...</pre><h3>Apply the rules:</h3><p>You can add the DatabaseEnvRules class to env.php configuration file at the rules key. That way all the rules specified in the class will affect package artisan commands.</p><p>config/env.php</p><pre>&lt;?php</pre><pre>return [</pre><pre>/**<br>     * Validation classes which contain environment rules<br>     * applied by env artisan commands.<br>     * <br>     * Add your validation classes created by <br>     * `php artisan make:envrule` command to apply their rules<br>     * <br>     * @var array<br>     */<br>    &quot;rules&quot; =&gt; [<br>        \App\Env\BaseEnvValidationRules::class<br>        \App\Env\DatabaseEnvRules::class // &lt;- our database rules<br>    ]<br>];</pre><p>Or you can use Lionix\EnvClient Facade to validate the input with given validation rules:</p><pre>...<br>$client = new \Lionix\Envclient();<br>$client<br>    -&gt;useValidator(new \App\Env\DatabaseEnvRules())<br>    -&gt;update($databaseCredintnails);</pre><pre>if ($client-&gt;errors()-&gt;isNotEmpty()) {<br>    // handle errors<br>} else {<br>    // success, the variables are updated<br>}<br>...</pre><h3>Facades</h3><h3>Lionix\EnvClient</h3><h4>Properties:</h4><ul><li>protected $getter : <em>Lionix\EnvClient\Interfaces\EnvGetterInterface</em></li><li>protected $setter : <em>Lionix\EnvClient\Interfaces\EnvSetterInterface</em></li><li>protected $validator : <em>Lionix\EnvClient\Interfaces\EnvValidatorInterface</em></li></ul><h4>Methods:</h4><ul><li>void : __construct()<br>Create a new instance of EnvClient using default dependencies</li><li>self : useGetter(<em>Lionix\EnvClient\Interfaces\EnvGetterInterface</em> $getter)<br>Set client getter dependency</li><li>self : useSetter(<em>Lionix\EnvClient\Interfaces\EnvSetterInterface</em> $setter)<br>Set setter dependency</li><li>self : useValidator(<em>Lionix\EnvClient\Interfaces\EnvValidatorInterface</em> $validator)<br>Set validator dependency merging current errors with the validator errors</li><li>array : all()<br>Get all env variables from the environmental file</li><li>bool : has(<em>string $key</em>)<br>Check if the environmental file contains the key</li><li>mixed : get(<em>string $key</em>)<br>Get the env variable using the key (returns the output of Illuminate\Support\Env get method)</li><li>self : set(<em>array $values</em>)<br>Set the environmental variables at runtime if validation rules passed</li><li>self : save()<br>Save previously set variables to the environmental file</li><li>self : update()<br>If validation rules passed then set and save variables to the environmental file</li><li>bool : validate(<em>array</em> $values)<br>Check values validness and retrieve passed status</li><li>Illuminate\Support\MessageBag : errors()<br>Get all validation errors occurred during the class lifetime</li></ul><h3>Lionix\EnvGetter</h3><h4>Methods:</h4><ul><li>void : __construct()<br>Create a new instance of EnvGetter</li><li>mixed : get(<em>string</em> $key)<br>Get the env variable using the key (returns the output of Illuminate\Support\Env get method)</li><li>array : all()<br>Get all env variables from the environmental file</li><li>bool : has(<em>string</em> $key)<br>Check if the environmental file contains the key</li></ul><h3>Lionix\EnvSetter</h3><h4>Properties:</h4><ul><li>protected $variablesToSet : <em>array</em></li></ul><h4>Methods:</h4><ul><li>void : __construct()<br>Create a new instance of EnvSetter</li><li>void : set(<em>array</em> $values)<br>Merge given values with variablesToSet property</li><li>void : save()<br>Save all variables previously set by the set method to the environmental file</li><li>protected string : sanitize(<em>string</em> $value)<br>Sanitize input values</li></ul><h3>Lionix\EnvValidator</h3><h4>Properties:</h4><ul><li>protected $errors : <em>Illuminate\Support\MessageBag</em></li></ul><h4>Methods:</h4><ul><li>void : __construct()<br>Create a new instance of EnvValidator</li><li>array : rules()<br>Returns class validation rules</li><li>bool : validate(<em>array</em> $values)<br>Validate given values</li><li>Illuminate\Support\MessageBag : errors()<br>Get validator errors</li><li>void : mergeErrors(<em>Illuminate\Support\MessageBag</em> $errors)<br>Merge given MessageBag with current errors</li></ul><h3>Credits:</h3><ul><li><a href="https://github.com/vaawebdev">Stas Vartanyan</a></li><li><a href="https://lionix-team.com/">Lionix Team</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6a5cd99f339" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/envclient-for-laravel-6-b6a5cd99f339">EnvClient for Laravel 6+</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>