<?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: mostafalaravel</title>
    <description>The latest articles on DEV Community by mostafalaravel (@mostafalaravel).</description>
    <link>https://dev.to/mostafalaravel</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%2F359466%2F5ec4aa77-caff-402c-9ac9-1d67d9ac78eb.png</url>
      <title>DEV Community: mostafalaravel</title>
      <link>https://dev.to/mostafalaravel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mostafalaravel"/>
    <language>en</language>
    <item>
      <title>Laravel local scopes: easy, simple and clear.</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Fri, 12 Mar 2021 13:41:34 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/laravel-local-scopes-easy-simple-and-clear-mka</link>
      <guid>https://dev.to/mostafalaravel/laravel-local-scopes-easy-simple-and-clear-mka</guid>
      <description>&lt;p&gt;&lt;strong&gt;Scopes&lt;/strong&gt; allow you to define prebuilt &lt;code&gt;scopes&lt;/code&gt;(filters) that you can use either every time your query a model with a specific method chain (Local Scope).&lt;/p&gt;

&lt;p&gt;Let's take this example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$newBlackCars = Car::where('type' , 'like' , 'manual')-&amp;gt;where('color' , 'like' , 'black')-&amp;gt;get();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The request above will return all black cars where the &lt;code&gt;type&lt;/code&gt; is manual.&lt;/p&gt;

&lt;p&gt;But what if we could make it more simple and shorter? &lt;/p&gt;

&lt;p&gt;Something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$blackManualCars = Car::blackManuals()-&amp;gt;get();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Yes we can! Thanks to the local scope :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Car
{
    public function scopeBlackManuals($query){
          return $query-&amp;gt;where('type' , 'like' , 'manual')-&amp;gt;where('color' , 'like' , 'black')-&amp;gt;get();
    }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To define a local scope, we add a method to the Eloquent class that begins with &lt;code&gt;scope&lt;/code&gt; then the title-cased version of the scope name. Also as you can see this method is passed a query builder &lt;em&gt;that you can modify before returning&lt;/em&gt; and of course needs to return a query builder.&lt;/p&gt;

&lt;p&gt;Also, It's possible to define &lt;code&gt;scope&lt;/code&gt; that accept parameters:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Car
{
    public function scopeBlackType($query, $type){
          return $query-&amp;gt;where('type' , 'like' , $type)-&amp;gt;where('color' , 'like' , 'black')-&amp;gt;get();
    }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you can use this like :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$blackTypeCars = Car::blacktype()-&amp;gt;get();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>laravel</category>
      <category>scopes</category>
      <category>eloquent</category>
    </item>
    <item>
      <title>Vue js: Child component's CSS is overridden by the parent  tag  &lt;h1&gt;</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Wed, 03 Mar 2021 15:44:05 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/vue-js-child-component-s-css-is-overridden-by-the-parent-tag-h1-4olj</link>
      <guid>https://dev.to/mostafalaravel/vue-js-child-component-s-css-is-overridden-by-the-parent-tag-h1-4olj</guid>
      <description>&lt;p&gt;Hello , &lt;/p&gt;

&lt;p&gt;First let me show you the parent component :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(...)
&amp;lt;div class="card-header"&amp;gt;
                            &amp;lt;h1&amp;gt;
                                &amp;lt;company-edit :id="companyId" :key="companyId"&amp;gt;&amp;lt;/company-edit&amp;gt;
                            &amp;lt;/h1&amp;gt;
&amp;lt;/div&amp;gt;

(...)


&amp;lt;style scoped&amp;gt;&amp;lt;/style&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
`&lt;br&gt;
As you can see there is no specific styles.&lt;/p&gt;

&lt;p&gt; component : &lt;/p&gt;

&lt;p&gt;`&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;div class="form-group row"&amp;gt;
        &amp;lt;label class="col-4 col-form-label pr-0" :for="'companyNameI"&amp;gt; Company name in-              
                 house&amp;lt;/label&amp;gt;
     &amp;lt;div class="col"&amp;gt;
            &amp;lt;input (...)

&amp;lt;style scoped&amp;gt;&amp;lt;/style&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;The problem is when I put &lt;code&gt;&amp;lt;company-edit&amp;gt;&lt;/code&gt; inside   &lt;code&gt;&amp;lt;h1&amp;gt;&amp;lt;/h1&amp;gt;&lt;/code&gt; tag all the content of the &lt;code&gt;&amp;lt;company-edit&amp;gt;&lt;/code&gt; is overridden by &lt;code&gt;H1&lt;/code&gt; style, and all the  form labels are on H1 style!&lt;/p&gt;

&lt;p&gt;Is  there a way to "scope" the CSS of child component ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Laravel how to apply a validation on a json_decode content ?</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Thu, 25 Feb 2021 13:21:10 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/laravel-how-to-apply-a-validation-on-a-jsondecode-content-3a39</link>
      <guid>https://dev.to/mostafalaravel/laravel-how-to-apply-a-validation-on-a-jsondecode-content-3a39</guid>
      <description>&lt;p&gt;Hello , I receive the form data via as a blob type&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$companyDetail = request()-&amp;gt;file('companyDetail');
$companyDetailJson = json_decode($companyDetail-&amp;gt;getContent(),true);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;How to apply a validation on &lt;code&gt;$companyDetailJson&lt;/code&gt; ?&lt;/p&gt;

&lt;p&gt;For example how to make : &lt;code&gt;$companyDetailJson ["director"]["name"]&lt;/code&gt;  required ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
      <category>laravel</category>
    </item>
    <item>
      <title>the route /email/resend returns : The GET method is not supported for this route</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Tue, 19 Jan 2021 10:46:31 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/the-route-email-resend-returns-the-get-method-is-not-supported-for-this-route-2fi9</link>
      <guid>https://dev.to/mostafalaravel/the-route-email-resend-returns-the-get-method-is-not-supported-for-this-route-2fi9</guid>
      <description>&lt;p&gt;After the upgrade from larave 5.8 to 6 then  to Laravel 7 , when I try to resend the password , this link &lt;code&gt;http://localhost:3000/email/resend&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;return me the error bellow :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
The GET method is not supported for this route. Supported methods: POST.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;Should I create it manually ?&lt;/p&gt;

</description>
      <category>laravel</category>
    </item>
    <item>
      <title>Every new day I have this error : failed to open stream: Permission denied</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Thu, 14 Jan 2021 10:24:26 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/every-new-day-i-have-this-error-failed-to-open-stream-permission-denied-2ibf</link>
      <guid>https://dev.to/mostafalaravel/every-new-day-i-have-this-error-failed-to-open-stream-permission-denied-2ibf</guid>
      <description>&lt;p&gt;Hello , &lt;/p&gt;

&lt;p&gt;I have this error&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The stream or file "/data/www/site.com/storage/logs/laravel-2021-01-14.log" could not be opened in append mode: failed to open stream: Permission denied
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;`&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
-rw-r--r-- 1 root        root       30833 Jan 14 09:00 laravel-2021-01-14.log

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
``&lt;/p&gt;

&lt;p&gt;When I change the directory permission it works BUT after one day I got the same error again!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to convert this sql query to Eloquent ? </title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Tue, 12 Jan 2021 12:01:15 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/how-to-convert-this-sql-query-to-eloquent-1c68</link>
      <guid>https://dev.to/mostafalaravel/how-to-convert-this-sql-query-to-eloquent-1c68</guid>
      <description>&lt;p&gt;How to convert this sql query to Eloquent ?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT user_id, company_id, MAX(date) date 
FROM careers 
GROUP BY user_id, comapany_id;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
`&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>eloquent</category>
    </item>
    <item>
      <title>Why whereHas is very slow ?</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Tue, 05 Jan 2021 12:07:08 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/why-wherehas-is-very-slow-2mmb</link>
      <guid>https://dev.to/mostafalaravel/why-wherehas-is-very-slow-2mmb</guid>
      <description>&lt;p&gt;Hello ,&lt;/p&gt;

&lt;p&gt;let me fist show you a part of my code :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;case 'first_name':
                        $eml = ($rule == 'or')
                            ? $eml-&amp;gt;orWhereHas('user', function ($q) use ($condition) {
                                $q-&amp;gt;where(
                                    'first_name','ilike','%bra%'
                                )-&amp;gt;withTrashed();
                            })
                            : $eml-&amp;gt;whereHas('user', function ($q) use ($condition) {
                                $q-&amp;gt;where(
                                     'first_name','ilike','%bra%'
                                )-&amp;gt;withTrashed();
                            });
                        break;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;The code above works but very slow , the sql output is  using  &lt;code&gt;EXISTS&lt;/code&gt; :&lt;/p&gt;

&lt;p&gt;time response 25 seconds !!!!&lt;/p&gt;

&lt;p&gt;`&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(...)
LEFT OUTER JOIN "work_regimes" 
ON              "wra1"."work_regime_id" = "work_regimes"."id" 
WHERE           EXISTS 
                ( 
                       SELECT * 
                       FROM   "users" 
                       WHERE  "emls"."user_id" = "users"."id" 
                       AND    "first_name"::text ilike ?) 
AND             "users"."is_activated" = ? 
AND             "emls"."deleted_at" IS NULL 
ORDER BY        "id" ASC
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
&lt;code&gt;&lt;br&gt;
When I replace&lt;/code&gt;EXISTS&lt;code&gt;by&lt;/code&gt;IN` the response time is very very fast 0.3 second !&lt;/p&gt;

&lt;p&gt;I replaced &lt;code&gt;whereHas&lt;/code&gt; by &lt;code&gt;wherIn&lt;/code&gt; but it's not working !&lt;/p&gt;

</description>
      <category>laravel</category>
    </item>
    <item>
      <title>How to find a child (not direct child) of a specific element by Id(parent Id)?</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Wed, 23 Dec 2020 09:44:18 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/how-to-find-a-child-not-direct-child-of-a-specific-element-by-id-22lp</link>
      <guid>https://dev.to/mostafalaravel/how-to-find-a-child-not-direct-child-of-a-specific-element-by-id-22lp</guid>
      <description>&lt;p&gt;Hello ,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;parent id="abc-1"&amp;gt;

  &amp;lt;child-1&amp;gt;
    &amp;lt;child-2&amp;gt;&amp;lt;/child-2&amp;gt;
        &amp;lt;child-3&amp;gt;
            &amp;lt;child-4 class="my-class"&amp;gt;Hey my data&amp;lt;/child-4&amp;gt;
    &amp;lt;/child-3&amp;gt;
   &amp;lt;/child-1&amp;gt;

  &amp;lt;child-5&amp;gt;&amp;lt;/child-5&amp;gt;

&amp;lt;/parent&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;I would like to get the content of the element where the class name is &lt;code&gt;my-class&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This element exists inside &lt;code&gt;parent&lt;/code&gt; with the id="abc-1" but we don't know on which level, maybe child or child of child or ... but we are sure that the class name is &lt;code&gt;my-class&lt;/code&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>VueJS: what's the best npm image resizer ?</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Mon, 21 Dec 2020 08:44:05 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/vuejs-what-s-the-best-npm-image-resizer-j8i</link>
      <guid>https://dev.to/mostafalaravel/vuejs-what-s-the-best-npm-image-resizer-j8i</guid>
      <description>&lt;p&gt;Hello , &lt;/p&gt;

&lt;p&gt;I'm looking for a tool to resize the picture before the upload.&lt;/p&gt;

&lt;p&gt;I'm using vuejs 2.6.&lt;/p&gt;

&lt;p&gt;With this tool I can (using the mouse) resize the picture move it into a frame ...&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Xdebug is installed but impossible to debug in PHPStorm and homestead</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Wed, 16 Dec 2020 08:44:43 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/xdebug-is-installed-but-impossible-to-debug-in-phpstorm-and-homestead-24kh</link>
      <guid>https://dev.to/mostafalaravel/xdebug-is-installed-but-impossible-to-debug-in-phpstorm-and-homestead-24kh</guid>
      <description>&lt;p&gt;Hello , &lt;/p&gt;

&lt;p&gt;let me first introduce my work environment;&lt;/p&gt;

&lt;p&gt;I use Vagrant, homestead and Laravel.&lt;/p&gt;

&lt;p&gt;I installed the xdebug and when I &lt;code&gt;vagrant ssh&lt;/code&gt; and &lt;code&gt;php -v&lt;/code&gt; I see this result :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vagrant@homestead:~$ php -v
PHP 7.4.10 (cli) (built: Sep  9 2020 06:36:14) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v3.0.0, Copyright (c) 2002-2020, by Derick Rethans
    with Zend OPcache v7.4.10, Copyright (c), by Zend Technologies
vagrant@homestead:~$

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;also when I &lt;code&gt;phpinfo()&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yAu-NoOt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/hwv214wjz5epp8i25zqx.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yAu-NoOt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/hwv214wjz5epp8i25zqx.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I also installed the Xdebug on my chrome browser&lt;/p&gt;

&lt;p&gt;The problem now is how to configure the PHPStrom? because I tried all tutorials and nothing happened ! &lt;/p&gt;

&lt;p&gt;my current configuration : &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Sk6G13Vw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0e0ipkh1umtzazaxy1rm.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Sk6G13Vw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0e0ipkh1umtzazaxy1rm.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KUxVcWyz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/79lvtkblq8aimrjpsf1n.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KUxVcWyz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/79lvtkblq8aimrjpsf1n.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Vue-table-2 : how to customize the filter input search?</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Tue, 15 Dec 2020 12:54:05 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/vue-table-2-how-to-customize-the-filter-input-search-5dp9</link>
      <guid>https://dev.to/mostafalaravel/vue-table-2-how-to-customize-the-filter-input-search-5dp9</guid>
      <description>&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;I'm using the matfish2/vue-table-2 (server side),&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;v-server-table
                    :columns="columns"
                    :options="options"
                    :url="'my-url/api/'"
                    ref="segmentTable"

                    @loading="onTableLoad"
                    @loaded="onTableLoaded"
            &amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;current situation : when user search (filter) something it sends requests on every keyboard type,&lt;/p&gt;

&lt;p&gt;Example: id user types &lt;code&gt;hello&lt;/code&gt; it will search for &lt;code&gt;h&lt;/code&gt; and  &lt;code&gt;he&lt;/code&gt; and &lt;code&gt;hel&lt;/code&gt; and &lt;code&gt;hell&lt;/code&gt; and &lt;code&gt;hello&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Question: how to send search request only when user type Enter  ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
      <category>vue</category>
      <category>javascript</category>
    </item>
    <item>
      <title>homestead: The setting 'xdebug.remote_connect_back' has been renamed</title>
      <dc:creator>mostafalaravel</dc:creator>
      <pubDate>Mon, 14 Dec 2020 14:34:29 +0000</pubDate>
      <link>https://dev.to/mostafalaravel/homestead-the-setting-xdebug-remoteconnectback-has-been-renamed-26g1</link>
      <guid>https://dev.to/mostafalaravel/homestead-the-setting-xdebug-remoteconnectback-has-been-renamed-26g1</guid>
      <description>&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;I try to configure xDebug on the homestead,&lt;/p&gt;

&lt;p&gt;Now I receive this message when I run &lt;code&gt;php -v&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vagrant@homestead:/$ php -v
Xdebug: [Config] The setting 'xdebug.remote_connect_back' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_connect_back (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_enable' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_port' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_port (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
PHP 7.4.10 (cli) (built: Sep  9 2020 06:36:14) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v3.0.0, Copyright (c) 2002-2020, by Derick Rethans
    with Zend OPcache v7.4.10, Copyright (c), by Zend Technologies

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;How can I fix this ? &lt;/p&gt;

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