Wednesday, July 12, 2023

How to align all li on one line

 HTML

<UL class="fruit-prop">
    <LI>Apple</LI>
    <LI>Orange</LI>
    <LI>Banana</LI>
    <LI>Mango</LI>
</UL>
CSS
ul.fruit-prop {
display: table; width: 100%; text-align: center; } ul.fruit-prop > li {
display: table-cell; }
SCSS
ul {
  &.fruit-prop {
display: table; width: 100%; text-align: center; > li { display: table-cell; } } }

Tuesday, July 11, 2023

Print sql query in Laravel

 Use the following code to print query in Laravel, There are following way to print query in Laravel

1.    \DB::enableQueryLog();

2.    dd(\DB::getQueryLog());

3.    User::where('user_id', $iserId)->toSql();