php artisan route:cache
This command will generate a cached version of our routes.
Once the routes are cached, Laravel
will use the cached version instead of parsing and compiling the routes on each request, which helps to improve the overall performance of your application
When we make changes to our routes, we need to regenerate it to reflect the updated routes
php artisan route:clear
This command will remove the cached routes, and the application will revert to parsing and compiling the routes dynamically<meta name="viewport" content="width=device-width, initial-scale=1">
width=device-width
- sets the width of the viewport to be equal to the width of the device's screen. This ensures that the webpage adapts and fills the entire width of the device, regardless of its specific screen size or resolution. CSS media query
works properly with any device by setting device width to viewport
initial-scale=1
- sets the initial zoom level when the webpage is first loaded. A value of 1 means that the webpage will be displayed at a 1:1 ratio, without any zooming or scaling applied<?php
$alpha = range('A', 'Z');
for( $i = 0; $i < 26; $i++ ) {
for( $k = 26; $k > $i ; $k-- ){
echo $alpha[$i];
}
echo "\n";
}
result
AAAAAAAAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDDDDD
EEEEEEEEEEEEEEEEEEEEEE
FFFFFFFFFFFFFFFFFFFFF
GGGGGGGGGGGGGGGGGGGG
HHHHHHHHHHHHHHHHHHH
IIIIIIIIIIIIIIIIII
JJJJJJJJJJJJJJJJJ
KKKKKKKKKKKKKKKK
LLLLLLLLLLLLLLL
MMMMMMMMMMMMMM
NNNNNNNNNNNNN
OOOOOOOOOOOO
PPPPPPPPPPP
QQQQQQQQQQ
RRRRRRRRR
SSSSSSSS
TTTTTTT
UUUUUU
VVVVV
WWWW
XXX
YY
Zgit config --global user.name "სახელი გვარი"
მოცემული ბრძანებით მივუთითებთ ჩვენს სახელს და გვარს
git config --global user.email "MY_NAME@example.com"
მოცემული ბრძანებით მივუთითებთ ჩვენს ელფოსტას
git config --list
მოცემული ბრძანებით გვიჩვენებს კონფიგურაციის ყველა პარამეტრსgit init
დირექტორიაში გადასასვლელად ვიყენებთ
cd (ფაილის დასახელებას ვწერთ)
იმისათვის რომ ვნახოთ ფაილების ჩამონათვალი გარკვეულ დირექტორიაში ვიყენებთ ამ ბრძანებას: ls
და ls -la
after
insert
and logs into log
tableDROP TRIGGER IF EXISTS after_student_insert;
DELIMITER $$
CREATE TRIGGER after_student_insert BEFORE INSERT
ON students
FOR EACH ROW
BEGIN
INSERT INTO log (description)
VALUES ('One student inserted');
END$$
DELIMITER ;
LAST_DAY
takes date and returns the last date of the month.
In the example the result is 28
because the year is not leap yearSELECT
LAST_DAY('2021-02-15')
The localStorage and sessionStorage properties allow to save key/value pairs in a web browser.
localStorage:
localStorage object stores data with no expiration date.The data will not be deleted when the browser is closed, and will be available the next day, week, or year.
sessionStorage:
The Session storage
— Session storage uses the sessionStorage object to store data on a temporary basis, for a single browser window or tab.
Difference between localStorage and sessionStorage:
Session storage is destroyed once the user closes the browser whereas, Local storage stores data with no expiration date.
JSON.stringify()
function...
$.ajax({
url: '/api/page/delete',
type: 'DELETE',
data: JSON.stringify({
'id': id,
'_token': ' {{ csrf_token() }} '
}),
Then parse the result to reach data item:
success: function(result) {
parsed_result = JSON.parse(result)
items = parsed_result.data.items
}