<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hamidreza Hassani</title>
    <description>The latest articles on DEV Community by Hamidreza Hassani (@hamidreza2005).</description>
    <link>https://dev.to/hamidreza2005</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F467567%2F109822d4-3e10-4bc8-b741-a98196d8cd74.jpeg</url>
      <title>DEV Community: Hamidreza Hassani</title>
      <link>https://dev.to/hamidreza2005</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hamidreza2005"/>
    <language>en</language>
    <item>
      <title>HOW TO HANDLE API ERRORS IN LARAVEL</title>
      <dc:creator>Hamidreza Hassani</dc:creator>
      <pubDate>Sat, 14 Nov 2020 05:20:39 +0000</pubDate>
      <link>https://dev.to/hamidreza2005/how-to-handle-api-errors-in-laravel-4lcn</link>
      <guid>https://dev.to/hamidreza2005/how-to-handle-api-errors-in-laravel-4lcn</guid>
      <description>&lt;p&gt;Hi Guys .&lt;br&gt;
as you know Laravel can handle error as well. but when you develop an API you will know that it's not good for API exceptions. so if we want to handle api errors in best way we should write a code and put it in &lt;code&gt;app\Exceptions\Handler.php&lt;/code&gt;. and if we want to use that code in another project we have to copy that and paste in our project . so I decided to create a package &lt;code&gt;laravel-api-error-handler&lt;/code&gt;. &lt;br&gt;
this package can handle your api error easily.&lt;br&gt;
you must only determine what handler handle what error; and all of things are OK!&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vJ70wriM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/hamidreza2005"&gt;
        hamidreza2005
      &lt;/a&gt; / &lt;a href="https://github.com/hamidreza2005/laravel-api-error-handler"&gt;
        laravel-api-error-handler
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      a useful package for handle your exception when you are developing a API
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>laravel</category>
    </item>
    <item>
      <title>How to Get Location from IP in Laravel</title>
      <dc:creator>Hamidreza Hassani</dc:creator>
      <pubDate>Mon, 21 Sep 2020 07:01:05 +0000</pubDate>
      <link>https://dev.to/hamidreza2005/how-to-get-location-from-ip-in-laravel-53op</link>
      <guid>https://dev.to/hamidreza2005/how-to-get-location-from-ip-in-laravel-53op</guid>
      <description>&lt;p&gt;Hi Guys&lt;br&gt;
some weeks age i had been working on my Project and i had to get location from client's ip . so I searched in github and Packagist for a package that can get location from IP but there is no one . so I decided to develop a package with name laravel-ip.&lt;br&gt;
this Package can get location by 3 Drivers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.ipinfo.io/"&gt;ipinfo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.ipapi.com/"&gt;ipapi&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.geojs.io/"&gt;geojs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;and also You can Block some clients by ip,country and whatever you want and you can choose what ips can access to your site (I added this Feature for Pepole who deploy their Project on host and don't wanna someone see their website).&lt;/p&gt;

&lt;p&gt;as I am lazy 😅😅 and i become tired to write all my README.md here Please see my github repository . &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is my first Package and i will be happy if you downlaod it and tell me it's Bugs if you found one&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/hamidreza2005/laravel-ip"&gt;https://github.com/hamidreza2005/laravel-ip&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>ip</category>
      <category>laravelip</category>
    </item>
  </channel>
</rss>
