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
| require('./bootstrap'); | |
| window.Vue = require('vue'); | |
| import VueSweetalert2 from 'vue-sweetalert2'; | |
| Vue.use(VueSweetalert2); | |
| const app = new Vue({ | |
| el: '#app', |
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 | |
| public function up() | |
| { | |
| Schema::create('feedback', function (Blueprint $table) { | |
| $table->increments('id'); | |
| $table->string('name'); | |
| $table->string('email'); | |
| $table->text('message'); | |
| $table->timestamps(); |
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 | |
| namespace App\Http\Controllers; | |
| use App\Http\Requests\FeedbackRequest; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use App\Feedback; | |
| class FeedbackController extends Controller |
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 | |
| namespace App\Http\Requests; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| use App\Rules\ValidRecaptcha; | |
| class FeedbackRequest extends FormRequest | |
| { | |
| /** |
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 | |
| namespace App\Rules; | |
| use Illuminate\Contracts\Validation\Rule; | |
| use GuzzleHttp\Client; | |
| class ValidRecaptcha implements Rule | |
| { | |
| /** |
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 | |
| /** | |
| * | |
| * Set active css class if the specific URI is current URI by fragments. | |
| * | |
| * @param string $path A specific URI | |
| * @param string $class_name Css class name, optional | |
| * @return string Css class name if it's current URI, | |
| * otherwise - empty string |
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
| @if ($paginator->hasPages()) | |
| <nav class="pagination is-centered"> | |
| @if ($paginator->onFirstPage()) | |
| <a class="pagination-previous" disabled>Previous</a> | |
| @else | |
| <a href="{{ $paginator->previousPageUrl() }}" rel="prev" class="pagination-previous">Previous</a> | |
| @endif | |
| @if ($paginator->hasMorePages()) | |
| <a class="pagination-next" href="{{ $paginator->nextPageUrl() }}" rel="next">Next</a> |
OlderNewer