Skip to content

Commit

Permalink
Laravel 5 Belgeleri Eklendi
Browse files Browse the repository at this point in the history
  • Loading branch information
sineld committed Jan 27, 2015
1 parent 2ca602f commit 1e63793
Show file tree
Hide file tree
Showing 53 changed files with 5,329 additions and 3,889 deletions.
36 changes: 3 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,5 @@
# Laravel 4 Türkçe Dokümantasyon
# Laravel Documentation

Nedir?
-------------
## Contribution Guidelines

Laravel etkileyici ve zarif sözdizimine sahip bir web uygulama çatısıdır (framework'tür). Geliştiriciliğin gerçekte eğlenceli, üretken deneyimlere dayanarak yerine getirilmesi gerektiğine inanır. Laravel birçok web uygulamasında kullanılan yetkilendirme, rotalama, oturum yönetimi ve kaşeleme gibi ortak görevleri kolaylaştırarak geliştiriciliğin zorluklarını ortadan kaldırmak amacını gütmektedir.

Laravel, geliştiriciler için, uygulama işlevselliğinden ödün vermeden geliştirme aşamasını memnuniyet verici hale getirmeyi amaç edinmiştir. En iyi kodu mutlu geliştiriciler yazar. Bu hedef için Ruby on Rails, ASP.NET MVC, ve Sinatra dilleri de dahil olmak üzere, diğer çatılardaki güzel özellikler bir araya getirilmeye çalışılmıştır.

Laravel büyük ve kapsamlı uygulamalar için gereken araçları içeren erişilebilir, aynı zamanda güçlü bir çatıdır. Mükemmel ters kontrol kapsayıcısı, etkileyici göç sistemi ve sağlam yerleşik ünite test desteği size geliştirmeyi amaçladığınız uygulama için gerekli araçları sağlayacaktır.

### Çeviri

[Laravel 4 Türkçe Dokümantasyonu](http://laravel.gen.tr/docs), İngilizce bilmeyen kullanıcıların da istifade edebilmesi amacıyla [Laravel Türkiye Forumları](http://forum.laravel.gen.tr/) kullanıcılarından oluşan gönüllü çeviri ekibi tarafından yapılmış çevirileri içermektedir.

#### Çeviri Ekibi

Katılım Sırasına Göre

* [sineld](https://github.com/sineld)
* [mecit](https://github.com/mecit)
* [smh](https://github.com/smhayhan)
* [Aristona](https://github.com/Aristona)
* [KenMilabel](https://github.com/KenMilabel)
* [usirin](https://github.com/usirin)
* [serginari](https://github.com/serginari)
* [candelibas](https://github.com/candelibas)
* [ersinkandemir](https://github.com/ersinkandemir)
* [ekrembk](https://github.com/ekrembk)
* [harunyasar](https://github.com/harunyasar)
* [hkan](https://github.com/hkan)

Çeviriye katkıda bulunmak isterseniz bu repo'yu fork edip, değişiklikleri yaptıktan sonra pull-request edebilirsiniz.

[Çeviri bilgi forumu](http://forum.laravel.gen.tr/viewtopic.php?id=125)
If you are submitting documentation for the **current stable release**, submit it to the corresponding branch. For example, documentation for Laravel 4.2 would be submitted to the `4.2` branch. Documentation intended for the next release of Laravel should be submitted to the `master` branch.
132 changes: 118 additions & 14 deletions artisan.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,140 @@
# Artisan CLI

- [Giriş](#introduction)
- [Kullanım](#usage)
- [Introduction](#introduction)
- [Usage](#usage)
- [Calling Commands Outside Of CLI](#calling-commands-outside-of-cli)
- [Scheduling Artisan Commands](#scheduling-artisan-commands)

<a name="introduction"></a>
## Giriş
## Introduction

Artisan, Laravel içerisinde gelen CLI'ın (Command-line Interface) adıdır. Artisan size uygulamanızı geliştirirken birçok yardımcı komut sağlar. Artisan, güçlü Symfony Console bileşeni üzerinden geliştirilmiştir.
Artisan is the name of the command-line interface included with Laravel. It provides a number of helpful commands for your use while developing your application. It is driven by the powerful Symfony Console component.

<a name="usage"></a>
## Kullanım
## Usage

#### Tüm Kullanılabilir Komutların Listelenmesi
#### Listing All Available Commands

Tüm Artisan komutlarının bir listesini görmek için `list` komutunu kullanabilirsiniz:
To view a list of all available Artisan commands, you may use the `list` command:

php artisan list

#### Bir Komut için Yardım Ekranının Görüntülenmesi
#### Viewing The Help Screen For A Command

Tüm komutların özel bir "yardım" ekranı vardır ve komut hakkındaki argüman sırası ile ayarlar gibi bilgilerin açıklanmasını sağlar. Bir yardım ekranını görüntülemek için komut adından önce `help` yazın:
Every command also includes a "help" screen which displays and describes the command's available arguments and options. To view a help screen, simply precede the name of the command with `help`:

php artisan help migrate

#### Yapılandırma Ortamının Belirtilmesi
#### Specifying The Configuration Environment

`--env` anahtarını kullanarak bir komut çalıştırılırken kullanılacak olan yapılandırma ortamını belirtebilirsiniz:
You may specify the configuration environment that should be used while running a command using the `--env` switch:

php artisan migrate --env=local

#### Güncel Laravel Sürümünüzün Gösterilmesi
#### Displaying Your Current Laravel Version

Ayrıca Laravel yüklemenizin güncel sürümünü de `--version` seçeneğini kullanarak görebilirsiniz:
You may also view the current version of your Laravel installation using the `--version` option:

php artisan --version
php artisan --version

<a name="calling-commands-outside-of-cli"></a>
## Calling Commands Outside Of CLI

Sometimes you may wish to execute an Artisan command outside of the CLI. For example, you may wish to fire an Artisan command from an HTTP route. Just use the `Artisan` facade:

Route::get('/foo', function()
{
$exitCode = Artisan::call('command:name', ['--option' => 'foo']);

//
});

You may even queue Artisan commands so they are processed in the background by your [queue workers](/docs/master/queues):

Route::get('/foo', function()
{
Artisan::queue('command:name', ['--option' => 'foo']);

//
});

<a name="scheduling-artisan-commands"></a>
## Scheduling Artisan Commands

In the past, developers have generated a Cron entry for each console command they wished to schedule. However, this is a headache. Your console schedule is no longer in source control, and you must SSH into your server to add the Cron entries. Let's make our lives easier. The Laravel command scheduler allows you to fluently and expressively define your command schedule within Laravel itself, and only a single Cron entry is needed on your server.

Your command schedule is stored in the `app/Console/Kernel.php` file. Within this class you will see a `schedule` method. To help you get started, a simple example is included with the method. You are free to add as many scheduled jobs as you wish to the `Schedule` object. The only Cron entry you need to add to your server is this:

* * * * * php /path/to/artisan schedule:run 1>> /dev/null 2>&1

This Cron will call the Laravel command scheduler every minute. Then, Laravel evalutes your scheduled jobs and runs the jobs that are due. It couldn't be easier!

### More Scheduling Examples

Let's look at a few more scheduling examples:

#### Scheduling Closures

$schedule->call(function()
{
// Do some task...

})->hourly();

#### Scheduling Terminal Commands

$schedule->exec('composer self-update')->daily();

#### Manual Cron Expression

$schedule->command('foo')->cron('* * * * *');

#### Frequent Jobs

$schedule->command('foo')->everyFiveMinutes();

$schedule->command('foo')->everyTenMinutes();

$schedule->command('foo')->everyThirtyMinutes();

#### Daily Jobs

$schedule->command('foo')->daily();

#### Daily Jobs At A Specific Time (24 Hour Time)

$schedule->command('foo')->dailyAt('15:00');

#### Twice Daily Jobs

$schedule->command('foo')->twiceDaily();

#### Job The Runs Every Weekday

$schedule->command('foo')->weekdays();

#### Weekly Jobs

$schedule->command('foo')->weekly();

// Schedule weekly job for specific day (0-6) and time...
$schedule->command('foo')->weeklyOn(1, '8:00');

#### Monthly Jobs

$schedule->command('foo')->monthly();

#### Limit The Environment The Jobs Should Run In

$schedule->command('foo')->monthly()->environments('production');

#### Indicate The Job Should Run Even When Application Is In Maintenance Mode

$schedule->command('foo')->monthly()->evenInMaintenanceMode();

#### Only Allow Job To Run When Callback Is True

$schedule->command('foo')->monthly()->when(function()
{
return true;
});
Loading

0 comments on commit 1e63793

Please sign in to comment.