<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Laravel | Muharrem Tığdemir</title>
	<atom:link href="/category/laravel/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Carpe Diem!!</description>
	<lastBuildDate>Sat, 05 Dec 2015 17:16:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
<site xmlns="com-wordpress:feed-additions:1">120145533</site>	<item>
		<title>Mysql General Error 1364 Field Doesn&#8217;t Have Default Value</title>
		<link>/mysql-general-error-1364-field-doesnt-have-default-value/</link>
					<comments>/mysql-general-error-1364-field-doesnt-have-default-value/#comments</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Sat, 05 Dec 2015 17:16:02 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[homestead]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[mysql]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=630</guid>

					<description><![CDATA[<p>Hi All, Since I&#8217;ve updated my homestead to 0.3.0 and mysql version is upgrade to 5.7.4. From that moment, my old projects has been started to throw problems which is Mysql General Error 1364 Field doesn&#8217;t have default value. Even migrations was not working, there has to be a problem. After my first research I&#8217;ve [&#8230;]</p>
<p>The post <a href="/mysql-general-error-1364-field-doesnt-have-default-value/">Mysql General Error 1364 Field Doesn’t Have Default Value</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hi All,</p>
<p>Since I&#8217;ve updated my homestead to 0.3.0 and <a href="http://3.125.49.171/category/mysql/">mysql</a> version is upgrade to 5.7.4. From that moment, my old projects has been started to throw problems which is <strong>Mysql General Error 1364 Field doesn&#8217;t have default value</strong>.</p>
<p>Even migrations was not working, there has to be a problem. After my first research I&#8217;ve found a solution for Php <a href="http://3.125.49.171/category/laravel/">Laravel</a> Projects there is a &#8220;strict&#8221; parameter for mysql connection, when I set it true migrations worked well.. But, in some cases, I let the mysql to set default value such as integer fields are sets to &#8216;0&#8217; and varchar fields are empty strings etc.. I need to use default values as before..</p>
<p><span id="more-630"></span></p>
<p>Finally, I solved my problem it&#8217;s all about <a href="http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sql-mode-strict">SQL Mode Strict</a></p>
<pre class="lang:mysql decode:true" title="Sql Mode">select @@sql_mode;
</pre>
<p>If the result includes <strong>STRICT_TRANS_TABLES</strong> parameters Mysql engine expect default parameters for field, otherwise you have to set that.</p>
<p>Open terminal at the below command or find your my.ini/my.cnf file</p>
<pre class="lang:sh decode:true">sudo nano /etc/mysql/my.cnf</pre>
<p>Add at the below line after [mysqld]</p>
<pre class="lang:mysql decode:true">sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"</pre>
<p>Try again..</p>
<p>Muharrem Tığdemir</p><p>The post <a href="/mysql-general-error-1364-field-doesnt-have-default-value/">Mysql General Error 1364 Field Doesn’t Have Default Value</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/mysql-general-error-1364-field-doesnt-have-default-value/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">630</post-id>	</item>
		<item>
		<title>Laravel Eloquent Model Events</title>
		<link>/laravel-eloquent-model-events/</link>
					<comments>/laravel-eloquent-model-events/#respond</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Sun, 01 Feb 2015 16:04:19 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[eloquent model events]]></category>
		<category><![CDATA[eloquent model trigger]]></category>
		<category><![CDATA[laravel model events]]></category>
		<category><![CDATA[laravel model trigger]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=537</guid>

					<description><![CDATA[<p>Hi All , In this post , I&#8217;ll talk about Eloquent Model Events. Looks Like Database Trigger Isn&#8217;t it? When I read the documentation , I said &#8220;Mysql already doing this so..&#8221;. Personally, still I prefer to use Mysql Triggers for database operations. It&#8217;s more faster and guaranteed. But day by day NoSQL solutions or Hybrid database solutions [&#8230;]</p>
<p>The post <a href="/laravel-eloquent-model-events/">Laravel Eloquent Model Events</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hi All ,</p>
<p style="padding-left: 30px;">In this post , I&#8217;ll talk about <em>Eloquent Model Events</em>.</p>
<h3>Looks Like Database Trigger Isn&#8217;t it?</h3>
<p style="padding-left: 30px;">When I read the documentation , I said &#8220;Mysql already doing this so..&#8221;. Personally, still I prefer to use Mysql Triggers for database operations. It&#8217;s more faster and guaranteed. But day by day NoSQL solutions or Hybrid database solutions like using MongoDB and Mysql together becoming as a popular solutions.  Also each NoSQL database is different, but MongoDB doesn&#8217;t support  actually stored procedures or triggers. In that case , we need to handle this kind of situations.</p>
<p style="padding-left: 30px;">If you are interested in MySQL-NoSQL Hybrid Solution with Laravel. You can check <a href="https://github.com/jenssegers/laravel-mongodb#mysql-relations" target="_blank">this </a>package by <a title="Jenssegers" href="https://github.com/jenssegers" target="_blank">Jessenger</a>.</p>
<h3>For More</h3>
<p style="padding-left: 30px;"><a title="Laravel" href="http://3.125.49.171/category/laravel/" target="_blank">Laravel </a>site has a simple usage example for <strong>Eloquent Model Events</strong> for &#8220;Validation&#8221;. In real projects , we have to validate every input , when model &#8220;updating&#8221; and &#8220;creating&#8221; its very important. So, Model Events is amazingly useful for this job. You can check the JeffreyWay Model Validation package from <a title="Laravel Model Validation" href="https://github.com/JeffreyWay/Laravel-Model-Validation" target="_blank">github</a>.  This package supports model based validation rules.</p>
<p style="padding-left: 30px;">Generaly, we need to delete photos , avatars , attachments from FTP too or Logging Model actions<strong>. </strong> We can add more usages examples depends on situation. Let&#8217;s see abilities of Model Events.</p>
<p style="padding-left: 30px;"><span id="more-537"></span></p>
<h3>Event Types</h3>
<ul style="list-style-type: circle;">
<li><code>Creating<span style="font-size: 16px; line-height: 24px;"> </span></code></li>
<li><code>Created</code></li>
<li><code>Updating</code></li>
<li><code>Updated</code></li>
<li><code>Saving</code></li>
<li><code>Saved</code></li>
<li><code>Deleting<span style="font-size: 16px; line-height: 24px;"> </span></code></li>
<li><code>Deleted<span style="font-size: 16px; line-height: 24px;"> </span></code></li>
<li><code>Restoring</code></li>
<li><code>Restored</code></li>
</ul>
<h3>&#8220;Talk is cheap Show me the code&#8221;..</h3>
<p>Let&#8217;s make a little scenario. I have  &#8220;Users&#8221;  , &#8220;Photos&#8221; and &#8220;Comments&#8221; with following Relations.</p>
<ul>
<li style="padding-left: 30px;">User Has Many Photo</li>
<li style="padding-left: 30px;">User Has Many Comment</li>
<li style="padding-left: 30px;">Photo Has Many Comment</li>
</ul>
<p><strong>Example 1 : </strong> I want to delete file of Photo from FTP when Model Deleted.</p>
<pre class="lang:php decode:true"> protected static function boot() {
        parent::boot();
        static::deleted(function(Photo $photo) {
            // Get the Real Photo Path
            $filename = public_path('photos/'.$photo-&gt;url);
            if (File::exists($filename)) {
                File::delete($filename);
            } else {
                return false;
            }
        });
    }
</pre>
<p>&nbsp;</p>
<p><strong>Example 2 : </strong>Let&#8217;s say I need to Log all update actions or versioning from Comment Model.</p>
<pre class="lang:php decode:true" title="Updated Model Logging">protected static function boot() {
    parent::boot();    
    static::updated(function(Comment $comment){
         Log::info($comment-&gt;user_id." updated at ".$comment-&gt;updated_at);
         //local.INFO: 1 updated at time
    });
}</pre>
<p><em>You can check the storage/laravel.log file.</em></p>
<p>&nbsp;</p>
<p><strong>Example 3 :</strong> I want to update Total Photo Comment when new Comment created.</p>
<p><span style="color: #00ffff;"><span style="color: #000000;"><strong>NOT</strong><strong>E</strong></span><em><span style="color: #000000;"><strong>  :</strong></span><span style="color: #ff0000;"> This can be do it by MySQL trigger.</span></em></span></p>
<pre class="lang:php decode:true" title="Comment Boot">    protected static function boot() {
        parent::boot();
        static::created(function(Comment $comment) {
            //Created Comment
            echo "Created Comment : " . $comment;
            //Total Comment Belongs To Photo
            $total_comment = Photo::find($comment-&gt;photo_id)-&gt;comments()-&gt;count();
            //Print Total Photo
            echo "&lt;/br&gt;Total Comment : " . $total_comment;
            //Update total Comment of Photo
            echo "&lt;br&gt; Update Status : " . Photo::where('id', $comment-&gt;photo_id)
                    -&gt;update(array('total_comment' =&gt; $total_comment));
        });
    }</pre>
<p>&nbsp;</p>
<p>Most useful things in this example Depency Injection. When I call the static::created function. It&#8217;s comming with Created &#8220;Comment Model&#8221;. Now, i&#8217;m able to reach functions which is belongs to Comment Model like &#8220;photos()&#8221;</p>
<p>As a Result Following SQL executed.</p>
<pre class="lang:mysql decode:true">insert into `comments` (`text`, `user_id`, `photo_id`, `updated_at`, `created_at`) values ('Test Comment', '1', '9', '2015-02-01 11:32:12', '2015-02-01 11:32:12')

select count(*) as aggregate from `comments` where `comments`.`photo_id` = '9'

update `photos` set `total_comment` = '26', `updated_at` = '2015-02-01 11:32:12' where `id` = '9'</pre>
<p>&nbsp;</p>
<p>Happy Coding..</p>
<p>Muharrem Tığdemir</p>
<p>&nbsp;</p><p>The post <a href="/laravel-eloquent-model-events/">Laravel Eloquent Model Events</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/laravel-eloquent-model-events/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">537</post-id>	</item>
		<item>
		<title>Laravel 4 Paylaşımlı Host Komut (Shared Host Command)</title>
		<link>/laravel-4-paylasimli-host-komut-shared-host-command/</link>
					<comments>/laravel-4-paylasimli-host-komut-shared-host-command/#respond</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Tue, 15 Apr 2014 08:38:31 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[laravel]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=452</guid>

					<description><![CDATA[<p>Merhaba Arkadaşlar , Laravel projenizi henüz paylaşımlı host&#8217;a yüklemediyseniz. Laravel Paylaşımlı Host&#8217;ta yayınlamak. ile ilgili yazımı okuyabilirsiniz. Projemiz&#8217;i teknik olarak internete açtık. Ancak , şimdi içerikleri nasıl dolduracağız. Migration&#8217;ları seed&#8217;leri boşuna mı yazdık? &#8216;Hayat &#8220;http://localhost&#8221; da çok güzeldi.&#8217; peki ya şimdi.. Bana göre Laravel&#8217;i üst seviyelere taşıyan ve önüzmüzdeki yıllarda daha popüler olmasını sağlayacak özellikleri  : Composer [&#8230;]</p>
<p>The post <a href="/laravel-4-paylasimli-host-komut-shared-host-command/">Laravel 4 Paylaşımlı Host Komut (Shared Host Command)</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Arkadaşlar ,</p>
<p style="padding-left: 30px;">Laravel projenizi henüz paylaşımlı host&#8217;a yüklemediyseniz. <a title="Laravel 4 Paylaşımlı Host Yayın(Shared Host Publish)" href="http://3.125.49.171/laravel-4-paylasimli-host-yayinshared-host-publish/" target="_blank">Laravel Paylaşımlı Host&#8217;ta yayınlamak.</a> ile ilgili yazımı okuyabilirsiniz.</p>
<p style="padding-left: 30px;">Projemiz&#8217;i teknik olarak internete açtık. Ancak , şimdi içerikleri nasıl dolduracağız. Migration&#8217;ları seed&#8217;leri boşuna mı yazdık? &#8216;Hayat &#8220;<strong>http://localhost</strong>&#8221; da çok güzeldi.&#8217; peki ya şimdi..</p>
<p style="padding-left: 30px;">Bana göre Laravel&#8217;i üst seviyelere taşıyan ve önüzmüzdeki yıllarda daha popüler olmasını sağlayacak özellikleri  : Composer , Bundle , Eloquent , Migratin , Seed vs.. bunlar başta olmak üzere geliştirilen opensource kütüphaneleri entegre çalışması. Eloquent hariç tüm bu özellikler bildiğiniz üzere konsol bağlantısı gerektiriyor veya tutorial&#8217;dan öyle gördük.</p>
<p style="padding-left: 30px;">
<h3 style="padding-left: 30px;">VPS&#8217;imiz , SSH&#8217;ımız yok ölelim mi?</h3>
<p style="padding-left: 30px;">Tabi ki hayır.. Ozaman &#8216;Talk is easy show me the code!&#8217; diyosunuz.. <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p style="padding-left: 30px;"><span id="more-452"></span></p>
<h4 style="padding-left: 30px;">Command Routing</h4>
<ul>
<li>
<pre class="lang:php decode:true">//Author muharremtigdemir.com
Route::get('command/{username}/{password}/{command}' , 'CommandController@getIndex');</pre>
<p>Yukarıdaki routing&#8217;i  app/routes.php ye ekleyin.</li>
</ul>
<h4 style="padding-left: 30px;">Command Controller</h4>
<ul>
<li>
<pre class="lang:php decode:true">&lt;?php
//Author muharremtigdemir.com
use Symfony\Component\Console\Output\StreamOutput;

class CommandController extends Controller {

    private $file = 'foo.txt'; //Sonuçların geçici yazılacağı dosya

    public function getIndex($username, $password, $command) {

        if ($username == 'username' &amp;&amp; $password == 'password') {//İsim ve Şifrenizi değiştirin!!

            echo '--------CommandResult---------&lt;br&gt;';

            $stream = fopen($this-&gt;file, 'w');
            Artisan::call($command, array('test'), new StreamOutput($stream));

            $this-&gt;printResult();//Print and Clean Result
        } else {
            App::abort(404);//Controller saklayalım
        }
    }

    private function printResult() {
        $file_handle = fopen($this-&gt;file, "r");

        while (!feof($file_handle)) {
            $line_of_text = fgets($file_handle);
            print $line_of_text . "&lt;BR&gt;";
        }
        fclose($file_handle);

        $this-&gt;cleanResult();//Clean Result File
    }

    private function cleanResult()
    {
       $file_handle = fopen($this-&gt;file, "w");
       fwrite($file_handle,"Welcome Home Honey !!! This is muharremtigdemir.com");
       fclose($file_handle);
    }
}</pre>
<p><strong> NOT :</strong> Sonuçlar stream oluştuğu için log tutarak sonuçları dosyaya yazdırıp temizledim(fire and forget). Eğer sonuçları direkt browser da göstermenin yolunu biliyorsanız. Lütfen benimlede paylaşın <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></li>
</ul>
<p>Kodlarımız hazır sonuçları görelim..</p>
<ul>
<li>
<h5>Php artisan help :</h5>
</li>
</ul>
<p><strong>URL</strong><strong>:</strong><span style="text-decoration: underline;">localhost:8000/command/username/password/help</span></p>
<figure id="attachment_453" aria-describedby="caption-attachment-453" style="width: 300px" class="wp-caption aligncenter"><a href="http://3.125.49.171/wp-content/uploads/2014/04/console_help.jpg"><img data-attachment-id="453" data-permalink="/laravel-4-paylasimli-host-komut-shared-host-command/console_help/" data-orig-file="/wp-content/uploads/2014/04/console_help.jpg" data-orig-size="845,732" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="console_help" data-image-description="" data-image-caption="&lt;p&gt;console_help&lt;/p&gt;
" data-medium-file="/wp-content/uploads/2014/04/console_help-300x259.jpg" data-large-file="/wp-content/uploads/2014/04/console_help.jpg" decoding="async" loading="lazy" class="size-medium wp-image-453" alt="console_help" src="http://3.125.49.171/wp-content/uploads/2014/04/console_help-300x259.jpg" width="300" height="259" srcset="/wp-content/uploads/2014/04/console_help-300x259.jpg 300w, /wp-content/uploads/2014/04/console_help.jpg 845w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-453" class="wp-caption-text">console_help</figcaption></figure>
<p>&nbsp;</p>
<ul>
<li>
<h5>php artisan route :</h5>
</li>
</ul>
<p><strong>URL: </strong><span style="text-decoration: underline;">localhost:8000/command/username/password/route</span></p>
<figure id="attachment_455" aria-describedby="caption-attachment-455" style="width: 300px" class="wp-caption aligncenter"><a href="http://3.125.49.171/wp-content/uploads/2014/04/route_command.jpg"><img data-attachment-id="455" data-permalink="/laravel-4-paylasimli-host-komut-shared-host-command/route_command/" data-orig-file="/wp-content/uploads/2014/04/route_command.jpg" data-orig-size="976,499" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="route_command" data-image-description="" data-image-caption="&lt;p&gt;route_command&lt;/p&gt;
" data-medium-file="/wp-content/uploads/2014/04/route_command-300x153.jpg" data-large-file="/wp-content/uploads/2014/04/route_command.jpg" decoding="async" loading="lazy" class="size-medium wp-image-455" alt="route_command" src="http://3.125.49.171/wp-content/uploads/2014/04/route_command-300x153.jpg" width="300" height="153" srcset="/wp-content/uploads/2014/04/route_command-300x153.jpg 300w, /wp-content/uploads/2014/04/route_command.jpg 976w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-455" class="wp-caption-text">route_command</figcaption></figure>
<ul>
<li>
<h5>php artisan key:generate</h5>
</li>
</ul>
<p style="padding-left: 30px;"><strong>URL: </strong>localhost://command/username/password/key:generate</p>
<p style="padding-left: 30px;"><a href="http://3.125.49.171/wp-content/uploads/2014/04/key_generate.jpg"><img data-attachment-id="454" data-permalink="/laravel-4-paylasimli-host-komut-shared-host-command/key_generate/" data-orig-file="/wp-content/uploads/2014/04/key_generate.jpg" data-orig-size="507,108" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="key_generate" data-image-description="" data-image-caption="" data-medium-file="/wp-content/uploads/2014/04/key_generate-300x63.jpg" data-large-file="/wp-content/uploads/2014/04/key_generate.jpg" decoding="async" loading="lazy" class="size-medium wp-image-454 aligncenter" alt="key_generate" src="http://3.125.49.171/wp-content/uploads/2014/04/key_generate-300x63.jpg" width="300" height="63" srcset="/wp-content/uploads/2014/04/key_generate-300x63.jpg 300w, /wp-content/uploads/2014/04/key_generate.jpg 507w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p style="padding-left: 30px;"><strong>Sonuç :</strong> Bu controller sayesinde aslında sadece Laravel&#8217;in ssh komutlarına ulaşmış oluyoruz.</p>
<p style="padding-left: 30px;"><strong>Önemli: Console ve komutlarla işiniz bittiğinde routing&#8217;i ve controller&#8217;ı deaktif etmenizi tavsiye ederim. Güvenlik önemlidir!!</strong></p>
<p style="padding-left: 30px;">
<p>Muharrem Tığdemir</p><p>The post <a href="/laravel-4-paylasimli-host-komut-shared-host-command/">Laravel 4 Paylaşımlı Host Komut (Shared Host Command)</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/laravel-4-paylasimli-host-komut-shared-host-command/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">452</post-id>	</item>
		<item>
		<title>Laravel 4 Paylaşımlı Host Yayın(Shared Host Publish)</title>
		<link>/laravel-4-paylasimli-host-yayinshared-host-publish/</link>
					<comments>/laravel-4-paylasimli-host-yayinshared-host-publish/#comments</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Thu, 10 Apr 2014 08:43:57 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[laravel 4]]></category>
		<category><![CDATA[laravel yayın]]></category>
		<category><![CDATA[publish]]></category>
		<category><![CDATA[shared host]]></category>
		<category><![CDATA[yayın]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=441</guid>

					<description><![CDATA[<p>Merhaba Arkadaşlar , Bugün itibari ile ilk Laravel 4 projemi yayına hazırladım. Her proje için VPS ve SSH bağlantısı malum biraz lüks olabiliyor. Aşağıdaki adımları takip ederseniz. Projenizi paylaşımlı hostta ssh bağlantısı olmadan yayınlayabilirsiniz. Öncelikle bu konuda birçok yöntem olduğunu belirteyim. Ben güvenli ve basit olanı tercih ediyorum. Bu işlem Rewreite Rule kullanılarak da elbette [&#8230;]</p>
<p>The post <a href="/laravel-4-paylasimli-host-yayinshared-host-publish/">Laravel 4 Paylaşımlı Host Yayın(Shared Host Publish)</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Arkadaşlar ,</p>
<p style="padding-left: 30px;">Bugün itibari ile ilk Laravel 4 projemi yayına hazırladım. Her proje için VPS ve SSH bağlantısı malum biraz lüks olabiliyor. Aşağıdaki adımları takip ederseniz. Projenizi paylaşımlı hostta ssh bağlantısı olmadan yayınlayabilirsiniz.</p>
<p style="padding-left: 30px;">Öncelikle bu konuda birçok yöntem olduğunu belirteyim. Ben güvenli ve basit olanı tercih ediyorum. Bu işlem Rewreite Rule kullanılarak da elbette yapılabilir. Ancak bütün kodlarımızı sere serpe ziyaretçilere sunmak istemiyoruz..</p>
<p style="padding-left: 30px;"><span id="more-441"></span></p>
<ul>
<li>Laravel projenizdeki<strong> /public</strong> klasörünün bütün dosyalarını , <strong>/public_html</strong> veya<strong> /www  </strong>içine kopyalayın.</li>
</ul>
<figure id="attachment_442" aria-describedby="caption-attachment-442" style="width: 273px" class="wp-caption aligncenter"><a href="http://3.125.49.171/wp-content/uploads/2014/04/laravel_shared.jpg"><img data-attachment-id="442" data-permalink="/laravel-4-paylasimli-host-yayinshared-host-publish/laravel_shared/" data-orig-file="/wp-content/uploads/2014/04/laravel_shared.jpg" data-orig-size="343,376" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="laravel_shared" data-image-description="" data-image-caption="&lt;p&gt;laravel_shared_host&lt;/p&gt;
" data-medium-file="/wp-content/uploads/2014/04/laravel_shared-273x300.jpg" data-large-file="/wp-content/uploads/2014/04/laravel_shared.jpg" decoding="async" loading="lazy" class="size-medium wp-image-442" src="http://3.125.49.171/wp-content/uploads/2014/04/laravel_shared-273x300.jpg" alt="laravel_shared_host" width="273" height="300" srcset="/wp-content/uploads/2014/04/laravel_shared-273x300.jpg 273w, /wp-content/uploads/2014/04/laravel_shared.jpg 343w" sizes="(max-width: 273px) 100vw, 273px" /></a><figcaption id="caption-attachment-442" class="wp-caption-text">laravel_shared_host</figcaption></figure>
<ul>
<li>Root dizinine yeni bir klasör oluşturun. Benimki &#8216;portal&#8217; olacak.</li>
<li>App , vendor , bootstrap vs.. yani public dışında ki bütün dosyaları portal klasörünün içine kopyalayın.</li>
</ul>
<p><a href="http://3.125.49.171/wp-content/uploads/2014/04/root-folder.jpg"><img data-attachment-id="445" data-permalink="/laravel-4-paylasimli-host-yayinshared-host-publish/root-folder/" data-orig-file="/wp-content/uploads/2014/04/root-folder.jpg" data-orig-size="268,324" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="root folder" data-image-description="" data-image-caption="" data-medium-file="/wp-content/uploads/2014/04/root-folder-248x300.jpg" data-large-file="/wp-content/uploads/2014/04/root-folder.jpg" decoding="async" loading="lazy" class="size-medium wp-image-445 aligncenter" src="http://3.125.49.171/wp-content/uploads/2014/04/root-folder-248x300.jpg" alt="root folder" width="248" height="300" srcset="/wp-content/uploads/2014/04/root-folder-248x300.jpg 248w, /wp-content/uploads/2014/04/root-folder.jpg 268w" sizes="(max-width: 248px) 100vw, 248px" /></a></p>
<p>&nbsp;</p>
<p style="padding-left: 30px;">Son durumda yukarıdaki bir dosya yapısına sahip olacaksınız. Sonuç olarak public klasörünü yayına almış olduk ve Kaynak kodlarımız root dizininde gözden ve gönülden uzak kaldı <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<ul>
<li>Son olarak<strong> /public_html</strong> veya <strong>/www</strong> klasöründeki index.php dosyasını açıyoruz.</li>
<li>
<pre class="lang:php decode:true">/*Before*/
require __DIR__.'/../bootstrap/autoload.php';
$app = require_once __DIR__.'/../bootstrap/start.php';

/*After*/
require __DIR__.'/../portal/bootstrap/autoload.php';
$app = require_once __DIR__.'/../portal/bootstrap/start.php';</pre>
<p>Dosya yolunu yukarıdaki gibi değiştrin. Benim klasör ismim portal&#8217;dı.</li>
</ul>
<p>&nbsp;</p>
<h4>GUNCELLEME</h4>
<p>Eğer file upload kullanıyor ve dosya yolunu düzenlemezseniz veya public_path() komutunu kullanıyor iseniz , yukarıda bahsettiğim çözümde hata alacaksınız. Çözüm için , &#8220;bootstrap/paths.php&#8221; dosyasındaki &#8216;public&#8217;  değerini değiştirmelisiniz.</p>
<pre class="lang:default decode:true">	/*
	|--------------------------------------------------------------------------
	| Public Path
	|--------------------------------------------------------------------------
	|
	| The public path contains the assets for your web application, such as
	| your JavaScript and CSS files, and also contains the primary entry
	| point for web requests into these applications from the outside.
	|
	*/
	'public' =&gt; __DIR__.'/../public',

      
        /*SHARED HOST FIX*/
	'public' =&gt; __DIR__.'/../../public_html',


</pre>
<p>Benim yayın klasörüm &#8220;public_html&#8221; klasörünüze göre değişikliği yaparsanız sorun çözülecektir.</p>
<p><a title="Hardik Dangar" href="https://www.facebook.com/hardikdangar.f">Thanks Hardik Dangar</a></p>
<p>Muharrem Tığdemir</p><p>The post <a href="/laravel-4-paylasimli-host-yayinshared-host-publish/">Laravel 4 Paylaşımlı Host Yayın(Shared Host Publish)</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/laravel-4-paylasimli-host-yayinshared-host-publish/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">441</post-id>	</item>
		<item>
		<title>Laravel 4 Migration Seed Faker Database</title>
		<link>/laravel-migration-seed-faker-database/</link>
					<comments>/laravel-migration-seed-faker-database/#respond</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Thu, 20 Mar 2014 08:17:28 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[faker]]></category>
		<category><![CDATA[fzaninotto]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[seed]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=421</guid>

					<description><![CDATA[<p>Merhaba Arkadaşlar , Bu yazımda Laravel 4  de proje şablonu oluşturuken kullanabileceğimiz , Migration , Seed ve Faker araçlarını birarada kullanarak yeni bir projenin temellerini oluşturacağım. Henüz Laravel 4 kurulumunu yapmadıysanız. Hızlı kurulumu için bu yazıyı okuyun. Laravel 4 ile ilgili basit ipuçları ve Faker hakkında ayrıntılı bilgi için bu yazıyı okuyabilirsiniz. Migration Migration aracının [&#8230;]</p>
<p>The post <a href="/laravel-migration-seed-faker-database/">Laravel 4 Migration Seed Faker Database</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Arkadaşlar ,</p>
<p style="padding-left: 30px;">Bu yazımda Laravel 4  de proje şablonu oluşturuken kullanabileceğimiz , Migration , Seed ve Faker araçlarını birarada kullanarak yeni bir projenin temellerini oluşturacağım.</p>
<p style="padding-left: 30px;">Henüz Laravel 4 kurulumunu yapmadıysanız. Hızlı kurulumu için <a href="http://uptimerobot.com/">bu yazıyı okuyun</a>.</p>
<p style="padding-left: 30px;">Laravel 4 ile ilgili basit ipuçları ve Faker hakkında ayrıntılı bilgi için <a href="http://3.125.49.171/laravel-4-icin-tavsiye-ipucu">bu yazıyı okuyabilirsiniz.</a></p>
<h3 style="padding-left: 30px;">Migration</h3>
<p>Migration aracının bize sağlıdığı en iyi özellik şema tasarımının kolayca oluşturulabilmesi , ORM yapasına uygun kolonları eklemesi timestamp( &#8216;created_at&#8217; , &#8216;updated_at&#8217;) verileri ve proje içinde çalışırken artık bizi database&#8217;e bakma yükünden kurtarması. Migration dosyaları &#8216;app/database/migrations&#8217; klasörü altında bulunuyor.</p>
<ul>
<li>
<pre class="lang:php decode:true" title="Mİgration">&lt;?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateProduct extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() {
        Schema::create('product', function(Blueprint $table) {
            $table-&gt;increments('pid');
            $table-&gt;string('title');
            $table-&gt;text('description');
            $table-&gt;timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down() {
        Schema::drop('product');
    }

}</pre>
<p>MySQL deki bütün veri tiplerini ve özelliklerini şema oluştururken kullanmak mümkün integer , bigint , text ,enum vs.. Ayrıntılı bilgi için <a title="Laravel Adding Columns" href="http://laravel.com/docs/schema#adding-columns">buraya bakabilirsiniz.</a></li>
<li>
<pre class="lang:sh decode:true ">php artisan migrate</pre>
<p>Yukarıdaki komut ile migrations klasörü altındaki dosyaları okuyrak database de tablolar ve alanları oluşturduk.</li>
</ul>
<h3 style="padding-left: 30px;">Seed ve Faker</h3>
<p style="padding-left: 30px;">Migration ile şemamızı oluşturduk ve database hazır ama boş <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Bize gerçek olmayan veriler(Dummy Data) lazım. Seed Class&#8217;ı bu konuda yardımımıza koşuyor. Buna ek olarak rastgele ve anlamlı yazı , resim , websitesi , email vs. ihtiyazcınız olabiliecek birçok veri tipini de &#8216;Faker&#8217; ile üretebilirsiniz.</p>
<p style="padding-left: 30px;"><a title="Faker " href="https://github.com/fzaninotto/Faker">Faker kurulumu , desteklediği veriler için buraya bakınız.</a></p>
<ul>
<li>Kullanım kolayladığı sağladığı için ben öncelikle modelin oluşturulması gerektiğini düşünüyorum. İsterseniz model olmadan da insert methodu ile database&#8217;i doldurabilirsiniz.</li>
<li>
<pre class="lang:php decode:true" title="Product Model">&lt;?php

/**
 * An Eloquent Model: 'Products'
 *
 * @property integer $pid
 * @property string $title
 * @property string $description
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 */
class Product extends \Eloquent {
    protected $table = 'product';
    protected $fillable = [];
}</pre>
<p>Yukarıdaki kodları &#8216;app/models&#8217; altına Product ismi ile kaydedebilirsiniz.</li>
<li>
<pre class="lang:default decode:true">&lt;?php

// Composer: "fzaninotto/faker": "v1.3.0"
use Faker\Factory as Faker;

class CompanyTableSeeder extends Seeder {

    public function run()
    {
        $faker = Faker::create();
        foreach(range(1, 100) as $index)
        {
            Product::create([  
                'title' =&gt; $faker-&gt;title,
                'description' =&gt; $faker-&gt;text(400),
            ]);
        }

        $this-&gt;command-&gt;info('Products table seeded!');
    }

}</pre>
<p>Seeder dan 100 tane rastgele anlamlı veriyi database&#8217;e eklemesini istedik.</li>
<li>
<pre class="lang:default decode:true">&lt;?php

class DatabaseSeeder extends Seeder {

	/**
	 * Run the database seeds.
	 *
	 * @return void
	 */
	public function run()
	{
             Eloquent::unguard();
             $this-&gt;call('ProductTableSeeder');

	}

}</pre>
<p>&#8216;app/database//seeds/DatabaseSeeder.php&#8217; yukarıdaki kodlara $this-&gt;call methodu ile yeni oluşturduğumuz seeder çağırdık.</li>
<li>
<pre class="lang:sh decode:true ">php artisan db:seed</pre>
<p>Evettt tamamdır. Tam 100 tane anlamlı verimiz oldu. Bu şekilde projenize stres testi yapabilir ve optimizasyon sorunlarını çözebilirsiniz. Artık boş ve anlamsız verilerle web projesi oluşturmaya son!! <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></li>
</ul>
<p style="padding-left: 30px;">Bir dahaki Laravel yazımızda görüşmek dileğiyle..</p>
<p style="padding-left: 30px;">Muharrem Tığdemir</p><p>The post <a href="/laravel-migration-seed-faker-database/">Laravel 4 Migration Seed Faker Database</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/laravel-migration-seed-faker-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">421</post-id>	</item>
		<item>
		<title>Laravel 4 Routing Resorce-Controller-Farkı</title>
		<link>/laravel-4-routing-resorce-controller-farki/</link>
					<comments>/laravel-4-routing-resorce-controller-farki/#respond</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Tue, 25 Feb 2014 09:40:17 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[larvel 4]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[routing]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=406</guid>

					<description><![CDATA[<p>Merhaba Arkadaşlar , Laravel yazı dizilerime routing ile devam ediyorum. Daha önce bir php framework kullandıysanız routing size yabacı olmasa gerek. Benim değinmek istediğim nokta Resource ve Controller routing tasarım farkı ve neden tercih edilmesi hakkında olacak. Temel routing ile ilgili daha ayrıntılı bilgiyi Laravel sitesinden alabilirsiniz. Get Routing Route::get('/', function() { return 'Hello World!! [&#8230;]</p>
<p>The post <a href="/laravel-4-routing-resorce-controller-farki/">Laravel 4 Routing Resorce-Controller-Farkı</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Arkadaşlar ,</p>
<p style="padding-left: 30px;">Laravel yazı dizilerime routing ile devam ediyorum. Daha önce bir php framework kullandıysanız routing size yabacı olmasa gerek. Benim değinmek istediğim nokta Resource ve Controller routing tasarım farkı ve neden tercih edilmesi hakkında olacak.</p>
<p style="padding-left: 30px;">Temel routing ile ilgili daha ayrıntılı bilgiyi <a title="Laravel" href="http://laravel.com/docs/routing" target="_blank">Laravel </a>sitesinden alabilirsiniz.</p>
<h3 style="padding-left: 30px;">Get Routing</h3>
<ul>
<li>
<pre class="lang:php decode:true">Route::get('/', function()
{
    return 'Hello World!! Muharrem Tigdemir';
});</pre>
<p>Get methodu iki parametre alıyor. URI ve fonksiyon. <a href="http://localhost" target="_blank">http://localhost</a></p>
<p><strong><em>Routing Parametreler</em></strong></li>
<li>
<pre class="lang:php decode:true">Route::get('test/{id}', function($id)
{
    return 'Test Value : '.$id;
});</pre>
</li>
</ul>
<p style="padding-left: 60px;"><a href="http://localhost/test/4" target="_blank">http://localhost/test/4</a></p>
<h3 style="padding-left: 30px;">Post Routing</h3>
<ul>
<li>
<pre class="lang:default decode:true">Route::post('post/test', function($id)
{
    return 'Post'. $id;
});</pre>
<p>Get ile aynı kullanıma sahip post yapısı.  <a href="http://localhost/post/test" target="_blank">http://localhost/post/test</a></li>
</ul>
<h3 style="padding-left: 30px;">Any Routing</h3>
<p style="padding-left: 30px;">Evet temel Routing öğrendik peki Route:controller ve Route:Resource farkı ne? Bunu anlayabilmek için öncelikle birer route tanımlayarak çıktılarını inceleyelim.</p>
<ul>
<li>
<pre class="lang:default decode:true">Route::controller('test' , 'TestController');

Route::resource('photo', 'PhotoController');</pre>
<p>Ben yukarıdaki iki routing&#8217;i tanımladım.</li>
<li>
<pre class="lang:default decode:true ">php artisan route</pre>
<p>Konsoldan yukarıdaki komutu yazdığımızda</li>
</ul>
<figure id="attachment_407" aria-describedby="caption-attachment-407" style="width: 300px" class="wp-caption aligncenter"><a href="http://3.125.49.171/wp-content/uploads/2014/02/route.jpg"><img data-attachment-id="407" data-permalink="/laravel-4-routing-resorce-controller-farki/route/" data-orig-file="/wp-content/uploads/2014/02/route.jpg" data-orig-size="677,510" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="route" data-image-description="" data-image-caption="&lt;p&gt;Laravel Route&lt;/p&gt;
" data-medium-file="/wp-content/uploads/2014/02/route-300x225.jpg" data-large-file="/wp-content/uploads/2014/02/route.jpg" decoding="async" loading="lazy" class="size-medium wp-image-407" alt="Laravel Route" src="http://3.125.49.171/wp-content/uploads/2014/02/route-300x225.jpg" width="300" height="225" srcset="/wp-content/uploads/2014/02/route-300x225.jpg 300w, /wp-content/uploads/2014/02/route.jpg 677w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-407" class="wp-caption-text">Laravel Route Resource ve Controller</figcaption></figure>
<p style="padding-left: 30px;">Yukarıdaki resimden görebileceğiniz gibi Laravel önceden tanımlı(pre-defined) fonksiyonları arıyor ve bazılarını missing olarak gösteriyor.</p>
<h4 style="padding-left: 30px;">Resource  Methodları</h4>
<ol>
<li>index</li>
<li>create</li>
<li>store</li>
<li>show</li>
<li>edit</li>
<li>update</li>
<li>destroy</li>
</ol>
<h4 style="padding-left: 30px;">Controller Methodları</h4>
<ol>
<li>getIndex</li>
<li>postSecond</li>
</ol>
<p style="padding-left: 30px;">Gerçekten lafı biraz uzattım sonuç olarak..</p>
<h3 style="padding-left: 30px;">Controller Routing</h3>
<p style="padding-left: 30px;">Eğer standartlara uygun Routing yapmak istiyorsanız Controller seçiminiz olmalı. Yeni bir method tanımlarken dikkat etmeniz gereken. Get method için fonksyionun ismi get ile başlamalı ve devam eden ilk harf büyük olmalı. Post method için fonksyion post ile başlamalı ve devam eden ilk harf büyük olmalı. Örnek Routing ve sonucu..</p>
<ul>
<li>
<pre class="lang:php decode:true">class TestController extends BaseController {
	public function getIndex()
	{
		// URL /test
		echo "Index Sayfası";
	}

	public function getMy()
	{
		// URL /test/my
		echo "My fonksyionu";
	}

	public function getMylist()
	{
		// URL /test/mylist
		echo "My List fonksyionu";
	}

	public function postProfile()
	{
	    // URL /test/profile NOT : POST
		echo "Post Method";
	}

}</pre>
</li>
</ul>
<ul>
<li>
<pre>Route::controller('test' , 'TestController');</pre>
</li>
</ul>
<h3 style="padding-left: 30px;">Resource Routing</h3>
<p style="padding-left: 30px;">Eğer CRUD işlemleri yapacağınız bir senaryo var ise seçiminiz Resource Routing olmalı.</p>
<ul>
<li>
<pre class="lang:default decode:true">Route::resource('photo', 'PhotoController');</pre>
<p>&nbsp;</li>
</ul>
<p>&nbsp;</p>
<p>Muharrem Tığdemir</p><p>The post <a href="/laravel-4-routing-resorce-controller-farki/">Laravel 4 Routing Resorce-Controller-Farkı</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/laravel-4-routing-resorce-controller-farki/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">406</post-id>	</item>
		<item>
		<title>Laravel 4 Tavsiye ve İpucu</title>
		<link>/laravel-4-icin-tavsiye-ipucu/</link>
					<comments>/laravel-4-icin-tavsiye-ipucu/#respond</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Mon, 24 Feb 2014 15:33:38 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[eklenti]]></category>
		<category><![CDATA[ipucları]]></category>
		<category><![CDATA[ipucu]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[trick]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=404</guid>

					<description><![CDATA[<p>Merhaba Arkadaşlar , Bu yazımda genel olarak Laravel kullanmanın ipuçları ve geliştirme sürecinde yardımcı olabilecek tavsiyelerden bahsedeceğim. Muhtemelen bu yazı kısa başlayıp uzayacak :)) Bende olabildiğince yeni öğrendiklerimi paylaşmaya çalışacağım.. Laravel IDE AutoComplete-Helper Github : Bu eklenti sayesinde Php Class&#8217;ları ve oluşturduğunuz Modeller IDE auto Complete özelliği ile hızınızı katlayabilirsiniz. Php programcılarında benim büyük eksik olarak [&#8230;]</p>
<p>The post <a href="/laravel-4-icin-tavsiye-ipucu/">Laravel 4 Tavsiye ve İpucu</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Arkadaşlar ,</p>
<p style="padding-left: 30px;">Bu yazımda genel olarak Laravel kullanmanın ipuçları ve geliştirme sürecinde yardımcı olabilecek tavsiyelerden bahsedeceğim. Muhtemelen bu yazı kısa başlayıp uzayacak :)) Bende olabildiğince yeni öğrendiklerimi paylaşmaya çalışacağım..</p>
<h3 style="padding-left: 30px;">Laravel IDE AutoComplete-Helper</h3>
<ul>
<li><a href="https://github.com/barryvdh/laravel-ide-helper">Github</a> : Bu eklenti sayesinde Php Class&#8217;ları ve oluşturduğunuz Modeller IDE auto Complete özelliği ile hızınızı katlayabilirsiniz.</li>
<li>Php programcılarında benim büyük eksik olarak gördüğüm dökümantasyon sorunu da bu şekilde ortadan kalkmış oluyor.
<ol>
<li><code>ide-helper:generate</code></li>
<li><code>ide-helper:models</code></li>
</ol>
</li>
</ul>
<h3 style="padding-left: 30px;">Laravel Generator</h3>
<ul>
<li><a href="https://github.com/JeffreyWay/Laravel-4-Generators">Github</a> : Sizin için otomatik kod üreten bir eklenti başlangıç seviye iseniz kullanmamanızı öneririm. Yapılan işlemi output vermesine rağmen syntax&#8217;ı öğrenmekte fayda var :))</li>
<li>Bu eklenti ile gelen generate methodları özellikle resource deneyin &#8220;kod yazan kod&#8221;  tabirine uygun bir fonksiyon :))</li>
</ul>
<ul>
<ol>
<li><code>generate:model</code></li>
<li><code>generate:controller</code></li>
<li><code>generate:seed</code></li>
<li><code>generate:view</code></li>
<li><code>generate:migration</code></li>
<li><code>generate:resource</code></li>
<li><code>generate:scaffold</code></li>
<li><code>generate:form</code></li>
<li><code>generate:test</code></li>
<li><code>generate:pivot</code></li>
</ol>
</ul>
<h3 style="padding-left: 30px;"> Laravel Faker</h3>
<ul>
<li><a href="https://github.com/fzaninotto/Faker">Github </a>: Bu eklenti sayesinde başlangıç aşamasındaki projelerde ki &#8216;dummy data&#8217; sorununu kökten çözmüş. Rastgele anlamlı değerler ile database&#8217;imizi dolduruyor. Benim datalarım çok orjinal bana uymaz demeyin <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Aşağıdaki veri tiplerinin tamamı Faker tarafında destekleniyor.</li>
</ul>
<ul>
<ol>
<li>Kişi ( İsim , Soyad , Tam isim , Ünvan) = (Fİrstname , Surname , Name , Suffix , Prefix)</li>
<li>Adres (Şehir , Sokak , Zip vs..)</li>
<li> Telefon</li>
<li>Şirket</li>
<li>Kredi Kartı</li>
<li>Lorem</li>
<li>Yazı</li>
<li>User Agent</li>
<li>Zaman</li>
<li>Şifrelemeler(MD5 , SHA1 , SHA256 , Dil , Ülke)</li>
<li>Rastgele (Sayı , yazı , değer , karakter)</li>
<li>Internet (Web sitesi , email )</li>
<li>Renkler</li>
<li>Dosya</li>
<li>Unique ID (UUID)</li>
<li>Resim</li>
<li>Barcode</li>
</ol>
<li>Ve proje tamamen ORM ve ODM destekli Doctrine , Propel ve Mandango ile kullanılabiliyor.</li>
<li> Sizcede mükemmel değil mi ? :))</li>
</ul>
<h3 style="padding-left: 30px;">Laravel URL Friendly SEO</h3>
<ul>
<li><a title="Slug Seo" href="https://github.com/cviebrock/eloquent-sluggable" target="_blank">Github</a> : Malum işimiz web seo artık sorulmadan yapılıyor. Eğer biraz araştırırsanız  laravel için birçok seo eklentisi olduğunu göreceksiniz. Peki neden bunu tercih etmeliyiz?
<ol>
<li>Static method&#8217;u model&#8217;e implement ettkiten sonra belirlediğiniz kolonlar arasında otomatik olarak Update ve Insert sırasında çalışıyor.</li>
<li>Unique slug garantisi var.</li>
<li>ORM ile tam uyumlu</li>
<li>Vee tabiki eklemesi çok kolay <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></li>
</ol>
</li>
</ul>
<h3 style="padding-left: 30px;"> Laravel Sitemap</h3>
<ul>
<li><a title="Laravel Sitemap" href="https://github.com/RoumenDamianoff/laravel-sitemap" target="_blank">Github</a> : Sitemap oluşturmak istiyorsanız , kullanılabiliecek en basit paket. Yukarıdaki seo paketinin yanında çok da güzel gidiyor. <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></li>
</ul>
<h3 style="padding-left: 30px;">Laravel Sınırsız Kategori(Nested Category)</h3>
<ul>
<li><a title="Nested" href="https://github.com/etrepat/baum" target="_blank">Github</a> : Sınırsız kategorilendirme ile başınız dertte ise Baum aradığınız cevap. Açıkcası ben işin içine kategori giriyor ise direkt baum&#8217;u entegre ediyorum. Temel ihtiyacınız bütün kodlar model ile geliyor. Laravel 4 + ORM destekli diğer modeller ile kullanırken de hiç bir sorun oluşmuyor.</li>
</ul>
<p style="padding-left: 30px;">Yukarıda belirttiğim bütün kütüphaneleri tüm özellikleri ile kullanmaya başladığınız da ne kadar hızlandığınıza inanamayacaksınız. Özellikle kendinizi tekrarlama sınırına geldiyseniz. Laravel 4&#8242; e geçme vaktiniz gelmiş demektir.</p>
<h3 style="padding-left: 30px;">Kimlere Önermiyorum?</h3>
<ul>
<li>SQL bilginiz düşük ise ORM ilişkilerini anlamak size zor gelebilir.</li>
<li>Database şema oluşturma bilginiz düşük ise altyapı kurmak zor gelebilir.</li>
<li>Dökümantasyon okumayı sevmiyosanız size zor gelebilir.(Ozaman framework kullanmazdık zaten dediniz <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /> )</li>
<li>OOP bilginiz düşük ise Model yapılarını anlamak size zor gelebilir.</li>
<li>Öğrendiğiniz ilk Framework Laravel ise diğerleri size zor gelebilir.</li>
<li>Depency Injection ve Function Chaining tabirleri size zor gelebilir.</li>
<li>Konsola uzaksanız , .net tarzı bir dil kullanıyorsanız bunlar size uzak gelebilir.</li>
</ul>
<p>&nbsp;</p>
<p><strong>NOT</strong> : Yukarıda belirttiğim maddeler kesinlikle sizi Laravel&#8217;den caydırmak amaçlı değildir. 1 haftalık bir süreçte öncelikle kendiniz bu noktalarda geliştirirseniz. Laravel&#8217;e çok daha hızlı adapte olabilirsiniz.</p>
<p>Muharrem Tığdemir</p><p>The post <a href="/laravel-4-icin-tavsiye-ipucu/">Laravel 4 Tavsiye ve İpucu</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/laravel-4-icin-tavsiye-ipucu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">404</post-id>	</item>
		<item>
		<title>Laravel 4 Artisan ve Ayarlar</title>
		<link>/laravel-4-artisan-ve-ayarlar/</link>
					<comments>/laravel-4-artisan-ve-ayarlar/#respond</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Mon, 24 Feb 2014 13:23:41 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[artisan]]></category>
		<category><![CDATA[laravel]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=397</guid>

					<description><![CDATA[<p>Merhaba Arkadaşlar  ,  Bu yazımda Laravel konsol komutları ile ilk ayarlarının düzenlemesinden bahsedeceğim.  Eğer  Laravel kurulumunu henüz yapmadıysanız ilk yazımı okumanızı tavsiye ederim. Laravel 4 Kurulumu Yazının devamında hem artisan kullanarak hemde manuel düzenlemeyi aynı anda göstereceğim. Laravel  .htacces SEO URL Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] [&#8230;]</p>
<p>The post <a href="/laravel-4-artisan-ve-ayarlar/">Laravel 4 Artisan ve Ayarlar</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Arkadaşlar  ,</p>
<p style="padding-left: 30px;"> Bu yazımda Laravel konsol komutları ile ilk ayarlarının düzenlemesinden bahsedeceğim.  Eğer  Laravel kurulumunu henüz yapmadıysanız ilk yazımı okumanızı tavsiye ederim.</p>
<p style="padding-left: 30px;"><a title="Laravel 4 XAMPP Kurulum" href="http://3.125.49.171/laravel-kurulum/">Laravel 4 Kurulumu</a></p>
<p style="padding-left: 30px;">Yazının devamında hem artisan kullanarak hemde manuel düzenlemeyi aynı anda göstereceğim.</p>
<p style="padding-left: 30px;"><strong>Laravel  .htacces SEO URL</strong></p>
<ul>
<li>
<pre class="lang:default decode:true ">Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]</pre>
<p>Yukarıdaki rewrite komutunu laravel proje klasörünüze .htaccess dosyası olarak ekleyin.</li>
</ul>
<h3 style="padding-left: 30px;">Artisan Key Generate</h3>
<ul>
<li>
<pre class="lang:default decode:true">php artisan key:generate</pre>
<p>veya app/config/app.php dosyasından &#8216;key&#8217; =&gt; &#8216;YourSecretKey!!!&#8217; değiştirin.</li>
</ul>
<h3 style="padding-left: 30px;">Artisan Make Controller</h3>
<ul>
<li>
<pre class="lang:default decode:true">php artisan make:controller CustomerController</pre>
<p>Otomatik Controller ekleyen bu komut bence çok kullanışlı. Manuel oluşturmak için , app/controller içine controller</li>
</ul>
<h3 style="padding-left: 30px;">Artisan Up Down</h3>
<ul>
<li>
<pre class="lang:default decode:true">php artisan up
php artisan down</pre>
<p>Yayındaki sitenizi bakıma aldığınızda veya update yapıyorsanız. Aradağınız komut kesinlike down ve up. Bakımda görünecek sayfanın ayarları için /app/start/global.php  App:down fonksiyonunu editleyebilirsiniz.</li>
</ul>
<h3 style="padding-left: 30px;">Artisan Routes</h3>
<ul>
<li>
<pre class="lang:default decode:true">php artisan routes</pre>
<p>Routes komutu ile bütün belirlediğiniz yönlendirmeleri auth , action , filter durumları ile ayrıntılı olarak görebilirisniz.</li>
</ul>
<figure id="attachment_399" aria-describedby="caption-attachment-399" style="width: 300px" class="wp-caption aligncenter"><a href="http://3.125.49.171/wp-content/uploads/2014/02/laravel_routes.jpg"><img data-attachment-id="399" data-permalink="/laravel-4-artisan-ve-ayarlar/laravel_routes/" data-orig-file="/wp-content/uploads/2014/02/laravel_routes.jpg" data-orig-size="677,414" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Laravel Artisan routes" data-image-description="&lt;p&gt;Laravel Artisan routes&lt;/p&gt;
" data-image-caption="&lt;p&gt;Laravel Artisan routes&lt;/p&gt;
" data-medium-file="/wp-content/uploads/2014/02/laravel_routes-300x183.jpg" data-large-file="/wp-content/uploads/2014/02/laravel_routes.jpg" decoding="async" loading="lazy" class="size-medium wp-image-399" alt="Laravel Artisan routes" src="http://3.125.49.171/wp-content/uploads/2014/02/laravel_routes-300x183.jpg" width="300" height="183" srcset="/wp-content/uploads/2014/02/laravel_routes-300x183.jpg 300w, /wp-content/uploads/2014/02/laravel_routes.jpg 677w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-399" class="wp-caption-text">Laravel Artisan Routes</figcaption></figure>
<h3 style="padding-left: 30px;">Artisan Serve Port</h3>
<ul>
<li>
<pre class="lang:default decode:true"> php artisan serve --port=80</pre>
<p>Serve methodu ile laravel projemizi yayınladığımızı önceki yazıda test etmişttik. &#8220;&#8211;port&#8221; parametresi yayın portunu değiştirebiliriz.</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Muharrem Tığdemir</p><p>The post <a href="/laravel-4-artisan-ve-ayarlar/">Laravel 4 Artisan ve Ayarlar</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/laravel-4-artisan-ve-ayarlar/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">397</post-id>	</item>
		<item>
		<title>Laravel 4 XAMPP Kurulum</title>
		<link>/laravel-kurulum/</link>
					<comments>/laravel-kurulum/#comments</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Fri, 21 Feb 2014 13:17:32 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/?p=389</guid>

					<description><![CDATA[<p>Merhaba Arkadaşlar , Bu yazımda popüler php framework&#8217;leri arasında kendi yer edinen laravel kurulumundan bahsedeceğim localhost olarak da XAMPP kullanacağım. Öncelikle Composer bilgisayrınızda kurulu değil ise; Composer Kurulumu için tıklayın. Örnek Composer Kullanımı için tıklayın. Composer kurulumunu tamamladıktan sonrası aslında oldukça basit composer bizim kurulum ve güncelleme gibi birçok işlemi yapacak. Laravel sitesine giderek veya [&#8230;]</p>
<p>The post <a href="/laravel-kurulum/">Laravel 4 XAMPP Kurulum</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Arkadaşlar ,</p>
<p style="padding-left: 30px;">Bu yazımda popüler php framework&#8217;leri arasında kendi yer edinen laravel kurulumundan bahsedeceğim localhost olarak da XAMPP kullanacağım. Öncelikle Composer bilgisayrınızda kurulu değil ise;</p>
<p style="padding-left: 30px;"><a title="Composer PHP" href="http://3.125.49.171/composer-php/" target="_blank">Composer Kurulumu için tıklayın.</a></p>
<p style="padding-left: 30px;"><a title="Composer PHP Kullanımı" href="http://3.125.49.171/composer-php-kullanimi/" target="_blank">Örnek Composer Kullanımı için tıklayın.</a></p>
<p style="padding-left: 30px;">Composer kurulumunu tamamladıktan sonrası aslında oldukça basit composer bizim kurulum ve güncelleme gibi birçok işlemi yapacak.</p>
<p style="padding-left: 30px;">Laravel sitesine giderek veya benim kullandığım son sürüm olan 4.1 versiyon<a title="Laravel Phar" href="http://laravel.com/laravel.phar" target="_blank"> laravel.phar </a>dosyasını indirin ve c:\xampp\htdocs içine kopyalayın.</p>
<p style="padding-left: 30px;"><span id="more-389"></span></p>
<p style="padding-left: 30px;">XAMPP&#8217;dan Shell açarak</p>
<ul>
<li>
<pre class="lang:default decode:true">cd c:\xampp\htdocs</pre>
</li>
</ul>
<p style="padding-left: 30px;">Komutu ile laravel.phar dosyasının olduğu dizine geçin.</p>
<ul style="padding-left: 30px;">
<li>
<pre class="lang:default decode:true ">php laravel.phar</pre>
<p>&nbsp;</li>
</ul>
<p style="padding-left: 30px;">Komutu ile resimdeki gibi kullanılabilecek fonksiyonların listesini veya help komutlarını görebilirsiniz. Bize şimdi new komutu lazım tabi <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<figure id="attachment_392" aria-describedby="caption-attachment-392" style="width: 300px" class="wp-caption aligncenter"><a href="http://3.125.49.171/wp-content/uploads/2014/02/php_laravel_phar.jpg"><img data-attachment-id="392" data-permalink="/laravel-kurulum/php_laravel_phar/" data-orig-file="/wp-content/uploads/2014/02/php_laravel_phar.jpg" data-orig-size="677,354" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="php_laravel_phar" data-image-description="" data-image-caption="&lt;p&gt;Php Laravel&lt;/p&gt;
" data-medium-file="/wp-content/uploads/2014/02/php_laravel_phar-300x156.jpg" data-large-file="/wp-content/uploads/2014/02/php_laravel_phar.jpg" decoding="async" loading="lazy" class="size-medium wp-image-392" alt="Php Laravel" src="http://3.125.49.171/wp-content/uploads/2014/02/php_laravel_phar-300x156.jpg" width="300" height="156" srcset="/wp-content/uploads/2014/02/php_laravel_phar-300x156.jpg 300w, /wp-content/uploads/2014/02/php_laravel_phar.jpg 677w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-392" class="wp-caption-text">Php Laravel</figcaption></figure>
<ul>
<li>
<pre class="lang:default decode:true">php laravel.phar new laravel_project</pre>
<p>Yukarıdaki komut ile projeyi oluşturalım new den sonra yazılan proje ismi ile yeni bir klasörde laravel framework&#8217;ü oluşturulacak.&#8221;Build something amazing&#8221; yazısını gördük..</li>
</ul>
<p><a href="http://3.125.49.171/wp-content/uploads/2014/02/new_laravel.jpg"><img data-attachment-id="391" data-permalink="/laravel-kurulum/new_laravel/" data-orig-file="/wp-content/uploads/2014/02/new_laravel.jpg" data-orig-size="677,342" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="new_laravel" data-image-description="" data-image-caption="" data-medium-file="/wp-content/uploads/2014/02/new_laravel-300x151.jpg" data-large-file="/wp-content/uploads/2014/02/new_laravel.jpg" decoding="async" loading="lazy" class="size-medium wp-image-391 aligncenter" alt="new_laravel" src="http://3.125.49.171/wp-content/uploads/2014/02/new_laravel-300x151.jpg" width="300" height="151" srcset="/wp-content/uploads/2014/02/new_laravel-300x151.jpg 300w, /wp-content/uploads/2014/02/new_laravel.jpg 677w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p style="padding-left: 60px;">
<p style="padding-left: 60px;">Son olarak projemizi yayınlamak için. öncelikle projenin dizinine geçin. Eğer PHP versiyonunuz 5.4 ve üzeri ise;</p>
<ul>
<li>
<pre class="lang:default decode:true">cd laravel_project
php artisan serve</pre>
<p>&nbsp;</li>
</ul>
<p style="padding-left: 60px;">Yukarıdaki komut ile projemizi localhost:8000 üzerinde yayınlıyoruz..</p>
<p style="padding-left: 60px;">Sonuç : &#8220;We have arrived to Laravel&#8221;</p>
<figure id="attachment_414" aria-describedby="caption-attachment-414" style="width: 300px" class="wp-caption aligncenter"><a href="http://3.125.49.171/wp-content/uploads/2014/02/laravel_arrived.jpg"><img data-attachment-id="414" data-permalink="/laravel-kurulum/laravel_arrived/" data-orig-file="/wp-content/uploads/2014/02/laravel_arrived.jpg" data-orig-size="1544,806" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="laravel_arrived" data-image-description="&lt;p&gt;laravel_arrived&lt;/p&gt;
" data-image-caption="&lt;p&gt;laravel_arrived&lt;/p&gt;
" data-medium-file="/wp-content/uploads/2014/02/laravel_arrived-300x156.jpg" data-large-file="/wp-content/uploads/2014/02/laravel_arrived-1024x534.jpg" decoding="async" loading="lazy" class="size-medium wp-image-414" alt="laravel_arrived" src="http://3.125.49.171/wp-content/uploads/2014/02/laravel_arrived-300x156.jpg" width="300" height="156" srcset="/wp-content/uploads/2014/02/laravel_arrived-300x156.jpg 300w, /wp-content/uploads/2014/02/laravel_arrived-1024x534.jpg 1024w, /wp-content/uploads/2014/02/laravel_arrived.jpg 1544w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-414" class="wp-caption-text">laravel_arrived</figcaption></figure>
<p style="padding-left: 60px;">Muharrem Tığdemir</p><p>The post <a href="/laravel-kurulum/">Laravel 4 XAMPP Kurulum</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/laravel-kurulum/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">389</post-id>	</item>
	</channel>
</rss>