How to open terminal in MAC OS

Shortcut key to open terminal in mac os to run terminal command

 

how to add css class using javascript

want to dissable my anchor tag on click that button

 

Remove public form URL in Laravel

I have install laravel on my localhost I want to remove Public form url such as http://example.com/ public to http://example.com to access base site

 

Php code to genereate random number

How to generate random unique number in php

 

Create Pagenation in Laravel

How can add pagination in Larave in view blade

 

how to create public funciton in Laravel controller

public funciton funciton_name()

{

//your code goes here;

}

 

{{$str1 = str_replace('\\','-',$str);

 

Pagenation in Laravel

In Controller funtion:
public function {

$variable = DB::table('table_name')->pageinate(number_of_record);
return view('page_n

 

Calculate difference between two dates using Carbon and Blade

I want to display the difference of time in posting related to current time such as you have posted this blog 15 min ago