<div class="row">
                                                                    <div class="col-sm-12 form-group">
                                                                        <textarea name="ans_content" placeholder="Your Answer" required></textarea>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-12">
                                                                        <button type="submit" class="btn btn-default btn-submit">SUBMIT ANSWER</button>
                                                                    </div>
                                                                </div>
                                                            </form>
                                                            <?php 
        }
    }
} else {
    if (Illuminate\Support\Facades\Auth::check()) {
        if ($user_id != $question_user_id) {
            ?>
                                                            <form class="answer-form" method="post" action="{{url('/user/post_answer')}}">
                                                                {!! csrf_field() !!}
                                                                <input type="hidden" name="question_id" value="<?php 
            echo $question_id;
            ?>
">
                                                                <input type="hidden" name="user_id" value="<?php 
            echo $user_id;
            ?>
">
                                                                <h2>Leave An Answer</h2>
                                                                <!--                                                    <div class="row">
                                                                                                                        <div class="col-sm-4 form-group">
예제 #2
0
 function multiAuth($guard = null)
 {
     return Illuminate\Support\Facades\Auth::guard($guard);
 }
예제 #3
0
파일: config.php 프로젝트: anlutro/l4-core
<?php

/**
 * Laravel 4 Core
 *
 * @author   Andreas Lutro <*****@*****.**>
 * @license  http://opensource.org/licenses/MIT
 * @package  l4-core
 */
return ['enable-routes' => true, 'route-prefix' => null, 'queue-reminder-mail' => false, 'login-remember' => false, 'redirect-login' => '/', 'login-message' => null, 'support-email' => null, 'enable-home-link' => function () {
    return Illuminate\Support\Facades\Auth::check();
}, 'regenerate-csrf' => true];