This file contains 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> |
This file contains 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 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 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 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 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 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 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
@extends('layouts.app') | |
@section('content') | |
<div class="row justify-content-center"> | |
<div class="col-6"> | |
<div class="card"> | |
<div class="card-header"> | |
Feedback Form | |
</div> | |
<div class="card-body"> |
This file contains 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
@extends('layouts.app') | |
@section('content') | |
<div class="row justify-content-center"> | |
<div class="col-10"> | |
<div class="card"> | |
<div class="card-header"> | |
Feedbacks list | |
</div> | |
<div class="card-body"> |
This file contains 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 | |
class File extends Model | |
{ | |
protected $fillable = [ | |
'name', 'type', 'extension', 'user_id' | |
]; | |
public static $image_ext = ['jpg', 'jpeg', 'png', 'gif']; | |
public static $audio_ext = ['mp3', 'ogg', 'mpga']; | |
public static $video_ext = ['mp4', 'mpeg']; |
NewerOlder