Created
July 15, 2014 07:24
-
-
Save syossan27/e81e621087587ac08d1f to your computer and use it in GitHub Desktop.
GithubにあるLaravel関連のプロジェクトをちょびっとまとめてみた ref: http://qiita.com/syossan27/items/1c4bd8fcd1019c2a4dff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php artisan generate:migration create_post_table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Laravel | |
<div class="control-group"> | |
{{ Form::label('input01', __('validation.attributes.input01'), array('class' => 'control-label') )}} | |
<div class="controls"> | |
<div class="input-prepend input-append"> | |
<span class="add-on">@</span> | |
{{ Form::text('input01', 'myname', (Input::get('input01', Input::old('input01')), array('class' => 'input-xlarge')) }} | |
<span class="add-on">$</span> | |
</div> | |
<p class="help-block">This is an help text</p> | |
</div> | |
</div> | |
// Bootstrapper | |
echo Form::prepend_append( | |
Form::control_group( | |
Form::label('input01', __('validation.attributes.input01')), | |
Form::xlarge_text('input01'), | |
(Input::get('input01', Input::old('input01', 'myname'))), | |
$validation->errors->get('input01'), | |
Form::block_help('This is an help text') | |
), | |
'@', '$' | |
); | |
// Former | |
Former::xlarge_text('input01', 'Text input') | |
->blockHelp('This is an help text') | |
->prepend('@')->append('$') | |
->value('myname') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Excel::create('Laravel Excel', function($excel) { | |
$excel->sheet('Excel sheet', function($sheet) { | |
$sheet->setOrientation('landscape'); | |
}); | |
})->export('xls'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment