Skip to content

Instantly share code, notes, and snippets.

Avatar
🇾🇪
yo

Dhaifallah DevDhaif

🇾🇪
yo
View GitHub Profile
View how_to_install_laravel_globally_in_ubuntu.md

How to install Laravel globally in Ubuntu

===================================================================

Open your terminal using Ctrl+Alt+T and type the following commands

Step 1: Install Laravel

composer global require "laravel/installer"
@DevDhaif
DevDhaif / html
Created Mar 10, 2022
Component / Code
View html
<script src="https://cdn.tailwindcss.com"></script>
<div class="min-h-screen bg-gray-800 py-6 px-8
flex flex-col justify-center relative overflow-hidden items-center sm:py-12
dark:bg-gray-700 ">
<!-- Component: -->
<div id="component" class="">
<p class="px-8 text-center py-2 bg-green-500 text-white
dark:bg-green-50 dark:text-green-900
font-medium text-lg rounded-md
@DevDhaif
DevDhaif / Geolocation leaflet,react
Created Mar 7, 2022
Get geolocation (lat,lan) with leaflet ,reactjs
View Geolocation leaflet,react
import {MapContainer,Marker,Popup,TileLayer } from 'react-leaflet'
//Component
function CreateListing() {
//Default coordinates
const[formData,setFormData]=useState({
latitude:15.508457,
longitude:32.522854
View use case diagram.drawio
<mxfile host="65bd71144e">
<diagram id="B-s54CXeZMHqbnamUVDq" name="Page-1">
<mxGraphModel dx="745" dy="648" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<object placeholders="1" c4Name="System name" c4Type="SystemScopeBoundary" c4Application="Software System" label="&lt;font style=&quot;font-size: 16px&quot;&gt;&lt;b&gt;&lt;div style=&quot;text-align: left&quot;&gt;%c4Name%&lt;/div&gt;&lt;/b&gt;&lt;/font&gt;&lt;div style=&quot;text-align: left&quot;&gt;[%c4Application%]&lt;/div&gt;" id="2">
<mxCell style="rounded=1;fontSize=11;whiteSpace=wrap;html=1;dashed=1;arcSize=20;fillColor=none;strokeColor=#666666;fontColor=#333333;labelBackgroundColor=none;align=left;verticalAlign=bottom;labelBorderColor=none;spacingTop=0;spacing=10;dashPattern=8 4;metaEdit=1;rotatab