Use a js or no-js variant depending on the availability of JavaScript, e.g. no-js:hidden or js:bg-blue-500.
const plugin = require('tailwindcss/plugin');
module.exports = {| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| apt-get install pkg-config libmagickwand-dev -y | |
| cd /tmp | |
| wget https://pecl.php.net/get/imagick-3.4.3.tgz | |
| tar xvzf imagick-3.4.3.tgz |
| function isIE() { | |
| var ua = window.navigator.userAgent; | |
| var msie = ua.indexOf('MSIE '); | |
| var trident = ua.indexOf('Trident/'); | |
| return (msie > 0 || trident > 0); | |
| } | |
| if (isIE()) { | |
| document.getElementById('ie-notice').style.display = 'block'; |
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| apt-get install pkg-config libmagickwand-dev -y | |
| cd /tmp | |
| wget https://pecl.php.net/get/imagick-3.4.4.tgz | |
| tar xvzf imagick-3.4.4.tgz |
| <?php | |
| namespace App\Traits; | |
| trait FormattedDate | |
| { | |
| public function initializeFormattedDate() | |
| { | |
| $this->append('formatted_created_at'); | |
| $this->append('formatted_created_at_date'); |
| axios.interceptors.response.use(response => { | |
| return response; | |
| }, error => { | |
| if (error.response.status === 401) { | |
| Swal.fire({ | |
| title: 'Session expired', | |
| text: 'Please sign in again!', | |
| type: 'error', | |
| }).then(result => { | |
| if (result.value) { |
| MIX_JS_DEBUG="${APP_DEBUG}" |
| /* is not a touch device */ | |
| @media (hover: hover) { | |
| body { text-rendering: optimizeLegibility; } | |
| } | |
| /* is a touch device */ | |
| @media (hover: none) { | |
| body { text-rendering: optimizeSpeed; } | |
| } |
| { | |
| "rules": { | |
| "@PSR2": true, | |
| "ordered_imports": { | |
| "sort_algorithm": "length" | |
| }, | |
| "array_syntax": { | |
| "syntax": "short" | |
| }, | |
| "no_unused_imports": true, |
| namespace App\Providers; | |
| use DB; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Bootstrap any application services. | |
| * |