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
<div style="width: 960px;"> | |
<iframe | |
width="600" | |
height="450" | |
src="https://www.google.com/maps?q=${lat.value},${lng.value}&hl=es;z=14&output=embed" | |
style="border:0;" | |
allowfullscreen="" | |
loading="lazy"> | |
</iframe> | |
</div> |
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
# start sail | |
sail up | |
# open in other terminal and start sail shell (from docker container) | |
sail shell | |
# change storage permissions | |
chmod -R 777 /var/www/html/storage | |
chown -R www-data:www-data /var/www/html/storage | |
# restart sail app | |
exit |
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
<script lang='ts' setup> | |
const { width, height } = useWindowSize() | |
const { public: { showDebugger, siteURL, sanityEnv } } = useRuntimeConfig() | |
const source = computed(() => `${siteURL} - ${sanityEnv} - ${width.value}x${height.value} - ${navigator.userAgent} - ${navigator.language}`) | |
const { copy } = useClipboard({ source }) | |
</script> | |
<template> | |
<div v-if="showDebugger" class="fixed bottom-5 left-5 z-50 flex items-center space-x-2 rounded-full bg-black px-2.5 py-1 font-mono text-xs font-medium text-white border-2 border-blue-500"> |
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
<!-- BEGIN: JS Assets--> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js" | |
integrity="sha512-aVKKRRi/Q/YV+4mjoKBsE4x3H+BkegoM/em46NNlCqNTmUYADjBbeNefNxYV7giUp0VxICtqdrbqU7iVaeZNXA==" | |
crossorigin="anonymous" referrerpolicy="no-referrer"></script> | |
<!-- END: JS Assets--> | |
<script> | |
function onChangeSelect(url, id, name) { | |
$.ajaxSetup({ | |
headers: { |
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\User; | |
use Illuminate\Validation\Rule; | |
use Illuminate\Foundation\Http\FormRequest; | |
class UpdateUserRequest 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
<!-- 1 --> | |
<!-- add your costum validation in function boot --> | |
<!-- location file : app/Providers/AppServiceProvider.php --> | |
<!-- Don't forget to add : use Illuminate\Support\Facades\Validator --> | |
/** | |
* Bootstrap any application services. | |
* | |
* @return void | |
*/ |
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
<!-- jsfiddle : https://jsfiddle.net/yakser/7ove0ky8/2/ --> | |
<!-- in production, please install Tailwind CSS instead of CDN --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<!-- Tailwind CSS CDN --> |