Skip to main content
Maher Sakka
Main navigation
  • Home
  • Contact me
Language switcher
  • English
  • عربي
Breadcrumb
  1. Home

How to reset a User password in a Laravel project from console

We can use Tinker to change a Laravel user password from the console using theses instructions.

Start Tinker

php artisan tinker

The shell is launched

Psy Shell v0.12.9 (PHP 8.2.4 — cli) by Justin Hileman
>

Select the concerned user by email

Tags
  • Laravel
  • Read more about How to reset a User password in a Laravel project from console

How to check if email are sent correctly in a Laravel Project

You can you use tinker to check if email are sent correctly in a Laravel project.

Launch Tinker using this command

php artisan tinker

The shell is launched

Psy Shell v0.12.9 (PHP 8.2.4 — cli) by Justin Hileman
>

Now add the following code:

Tags
  • Laravel
  • Read more about How to check if email are sent correctly in a Laravel Project

How to Find Recently Modified Files in Linux

As a Linux user or administrator, you often need to track file changes—whether to debug an application, monitor system activity, or investigate a security breach. The find command is a powerful tool for this, and one of its useful options is -ctime n, which helps locate files modified within a specific timeframe.

Tags
  • Linux
  • Read more about How to Find Recently Modified Files in Linux

How to determine which Linux distribution and kernel version you are running

When connecting to a Linux server, we need to know the name of the running Linux distribution, its version number, and the kernel version number.

This is often done to determine:

Tags
  • Linux
  • Read more about How to determine which Linux distribution and kernel version you are running

How to clear Drupal cache via database

It is usually not possible to clear the Drupal cache via the site administration or via the command:

 drush cache-rebuild

In this case the only way available is to clear the cache via the database with the command

 TRUNCATE

The question now is which tables should be flushed and which ones are cached?

Tags
  • Drupal
  • Database
  • Read more about How to clear Drupal cache via database

Send an email to multiple recipients at once

If you want to send an email to multiple recipients at once, you can enter all recipient addresses, separated by commas (“,”), in one of the following fields:

  • "To"
  • "Carbon Copy" (Cc)
  • "Blind Carbon Copy" (Bcc).

In all cases, all addresses entered in these fields receive a copy of the message without retyping or re-creating it. But what is the difference between a carbon copy and a blind carbon copy?

Tags
  • Tips & Tricks
  • Read more about Send an email to multiple recipients at once

How to compress and decompress files in Linux with ZIP

To compress a directory in Linux you can use the zip command:

zip -r output_file.zip folder

You can compress multiple directories too by adding the folders' names :

zip -r output_file.zip folder1 folder2 folder3

To decompress the zipped file, use the command unzip:

Tags
  • Linux
  • Read more about How to compress and decompress files in Linux with ZIP

How to compress and extract TAR files in Linux

To compress a directory in Linux, you can use the tar command:

tar -zcvf file.tar.gz folder

To exclude a specific folder or files, use the –exclude= option with the folder name:

tar -zcvf file.tar.gz –exclude='temp' –exclude='node_modules' folder

To decompress a file, use the -x option:

Tags
  • Linux
  • Read more about How to compress and extract TAR files in Linux

How to get the size of directories in Linux

To get information about the total and available space on the Linux file system, you can use the df command.

df

The df command displays information about all mounted filesystems, including total size, space used, percentage usage, and mount point:

Tags
  • Linux
  • Read more about How to get the size of directories in Linux

How to find files that contain specific text in Linux

To search for a specific text on a Linux system, the grep command can be used according to the following syntax:

grep -iRl "text_to_search" ./

The basic parameters are:

  • i: ignore text case (uppercase or lowercase)
  • R: search recursively in subfolders files
  • l: show file names instead of parts of the file contents

The folder path to be searched is specified last.

Tags
  • Linux
  • Read more about How to find files that contain specific text in Linux

Pagination

  • Page 1
  • Page 2
  • Next page
  • Last page
Tags
  • Laravel
  • Linux
  • Drupal
  • Database
  • Tips & Tricks
  • Mobile
Recent posts
  • How to reset a User password in a Laravel project from console
  • How to check if email are sent correctly in a Laravel Project
  • How to Find Recently Modified Files in Linux
Monthly archive
  • May 2017 (2)
  • August 2018 (1)
  • October 2020 (1)
  • August 2023 (1)
  • July 2024 (2)
  • November 2024 (1)
  • July 2025 (10)
  • October 2025 (2)
Projects
  • elmanager.tn
  • 365mathex.com
  • vpop.tn
  • toufoula.tn
  • writethemoney.com
  • dinartunisien.com
RSS feed

mahersakka.com © 2024