laravel-recipes

Many, many snippets of Laravel

Github星跟蹤圖

Laravel Recipes

Contents

  • Origin Story (and Creative Commons)
  • Installing Laravel Recipes
  • How to Edit Existing Recipes
  • How to Create New Recipes

Origin Story (and Creative Commons)

I created laravel-recipes.com with the intention of having a site with hundreds of little "how-tos" explaining every aspect of Laravel. From the beginning tasks to more advanced techniques. It was going to be amazing.

And it was.

But I didn't realize how huge an undertaking this would be. I created almost 300 recipes before this realization hit me. After much head-scratching I decided to open this up to the community at large.

I struggled to find the perfect license for this. I looked at GPL and others, but since this site not only contains code but also content that could be used in a variety of mediums. I settled on the Creative Commons license.

Which means you can share, change, adapt laravel-recipes in any way and redistribute in any format, for any purpose (even commercially) as long as you give appropriate credit and share alike.

Creative Commons Details

Installing Laravel Recipes

Here's a quick start guide:

  1. Clone the ChuckHeintzelman/laravel-recipes repository from github
  2. Update bootstrap/start.php and set up an environment override
  3. Add app/config/YOURENV/database.php and configure it
  4. Run artisan migrate to set up the databases
  5. Run artisan recipe:sync to sync your database with the docs
  6. Point your web browser at laravel-recipes/public and enjoy

How to Edit Existing Recipes

Editing an existing recipe is easy. Just find the recipe in the docs/recipes directory tree and make changes there.

NOTE Never change Id or Position in the header of the markdown document containing the recipe.

When finished making the changes first do a:

artisan recipe:scan

This will tell you if there any problems with the recipe file. Once verified, you can update your local database with:

artisan recipe:sync

If that works successfully, clear your application's cache (artisan cache:clear) and make sure it looks correct on your local install. When it does, create a pull request to get your change merged into the project.

How to Create New Recipes

TODO

主要指標

概覽
名稱與所有者ChuckHeintzelman/laravel-recipes
主編程語言PHP
編程語言PHP (語言數: 4)
平台
許可證
所有者活动
創建於2014-05-03 01:02:32
推送於2016-04-11 11:01:19
最后一次提交2016-04-11 11:01:18
發布數0
用户参与
星數104
關注者數5
派生數25
提交數49
已啟用問題?
問題數4
打開的問題數1
拉請求數7
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?