Posts

Steps after get cloned from github Laravel Project

Image
  Clone your project . Go to the folder application using cd command on your cmd or terminal. Run composer install on your cmd or terminal. Copy .env.example file to .env on the root folder. ... Open your project Run php artisan key:generate. Run php artisan migrate. Run php artisan serve.

Email Validation in JS

  function ValidateEmail(mail) { if (/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(myForm.emailAddr.value)) { return (true) } alert("You have entered an invalid email address!") return (false) }   function ValidateEmail(email) { var mailformat = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; if(email.match(mailformat)){ alert ("valid"); } }

How to export Epic from Jira

Image
  https://community.atlassian.com/t5/Jira-questions/export-epics-and-stories-in-a-csv/qaq-p/669071

Flow chart diagram maker

 https://online.visual-paradigm.com/app/diagrams/#diagram:proj=0&type=SequenceDiagram&gallery=/repository/99dba51c-1791-41d7-aa5b-de23b2d2f32c.xml&name=Delete%20Course

Remove anything from table's column in mysql using query

Image
    If you want to remove anything from your table column values. Suppose in yourtable have column name email and all email values have ,(comma). Example : abc@gmail.com, UPDATE YourTable SET ` email ` = REPLACE(` email `, ',' , '' ) WHERE ` email ` like '%,%' ;  

CI4 (Codeigniter 4) redirect function or method

as per CI 4 use return redirect()->to( 'url' ); if you are using route then use return redirect()->route( 'named_route' );

Cron Job Command

 wget -q -O – your_website/pull_gold_rates.php >/dev/null 2>&1