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
// Using Redis + Cache replacement for laravel | |
// composer require swayok/alternative-laravel-cache | |
// | |
<?php | |
namespace App\Http\Controllers; | |
use App\Models\Data; | |
use Illuminate\Http\Request; |
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
<template> | |
<!-- Table --> | |
<div class="relative overflow-x-auto shadow-md sm:rounded-lg mt-4 ring-1 ring-black ring-opacity-5 "> | |
<table | |
class="w-full text-sm text-left text-gray-500 dark:text-gray-400 table-auto min-w-full divide-y divide-gray-300 dark:divide-gray-700"> | |
<thead class="text-xs text-gray-600 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-300"> | |
<tr class="hover:bg-gray-50 dark:hover:bg-gray-600"> | |
<th scope="col" class="p-4"> | |
# | |
</th> |
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
<template> | |
<nav v-if="pagination && pagination.totalItems" class="flex items-center justify-between pt-4" aria-label="Table navigation"> | |
<span class="text-sm font-normal text-gray-500 dark:text-gray-400">Showing <span | |
class="font-semibold text-gray-900 dark:text-white">{{ pagination?.startIndex + 1 }} - {{ pagination?.endIndex + 1 | |
}}</span> of <span class="font-semibold text-gray-900 dark:text-white">{{ pagination?.totalItems }}</span></span> | |
<ul class="inline-flex items-center -space-x-px"> | |
<li> | |
<a href="#" | |
@click="pagination?.currentPage !== pagination?.startPage ? setPage(pagination?.currentPage - 1) : $event.preventDefault()" | |
:class="{ 'z-10 px-3 py-2 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white' : pagination?.currentPage === |
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 | |
<?php | |
namespace App\Process; | |
use App\Models\Model; | |
class Generate | |
{ |
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
//index | |
<div class="form-group mb-2"> | |
<span v-for="(question, index) in questions.questions"> | |
<p><li>{{ question.en }}</li></p> | |
<div class="rating"> | |
<input type="radio" :id="'star-' + index + '-5'" v-model="question.value" :value="5" /> | |
<label class="star" :for="'star-' + index + '-5'" title="Awesome" aria-hidden="true"></label> | |
<input type="radio" :id="'star-' + index + '-4'" v-model="question.value" :value="4" /> | |
<label class="star" :for="'star-' + index + '-4'" title="Great" aria-hidden="true"></label> |
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
<!doctype html> | |
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- CSRF Token --> | |
<meta name="csrf-token" content="{{ csrf_token() }}"> | |
<title>{{ config('app.name', 'PE Mall') }}</title> |
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
.class1 { | |
@charset "UTF-8"; | |
/*! | |
* Bootstrap v4.5.0 (https://getbootstrap.com/) | |
* Copyright 2011-2020 The Bootstrap Authors | |
* Copyright 2011-2020 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
*/ |
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
[root@chips:~]# chown -R www-data:www-data . | |
[root@chips:~]# find . -type f -exec chmod 644 {} \; | |
[root@chips:~]# find . -type d -exec chmod 755 {} \; | |
[root@chips:~]# chgrp -R www-data storage bootstrap/cache | |
[root@chips:~]# chmod -R ug+rwx storage bootstrap/cache |