What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-06 16:54:23
add_meta_box
/** * Calls the class on the post edit screen. */ function call_someClass() { new someClass(); } if ( is_admin() ) { add_action( 'load-post.php', 'call_someClass' )... Add solution -
Other 2021-11-06 15:44:10
register_rest_field query parameter
public function __construct() { // Make sure you add those numbers at the end of the line, or it won't work add_filter( 'rest_opps_query', array( $this, 'get_opps_by_state' ), 10, 2 ); } public function get_opps_by_state( $args, $req... Add solution -
PHP 2021-11-03 06:58:10
email send using queue with attachment laravel
<?php namespacde App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; class SendMailWithAttachment extends Mailable implements ShouldQueue { use ... Add solution -
PHP 2021-11-01 20:03:18
laravel auth user in constructor
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Support\Facades\Auth; use App\Http\Controllers\Controller; class ProjectController extends Controller { /** * All of the current user's projects. */ protected $proj... Add solution -
PHP 2021-10-30 02:34:15
Laravelda urlga requestlarni cheklash
//Buni siz kontrollerga qo`yishingiz kerak eng tepasiga // Auth bu saytda regdan o`tsa degani throttle esa keladigan zaproslarni cheklash degani // Ya'ni 1 daqiqada 20 ta so`rov yubrish mumkun. // 20 tadan o`tib ketsa juda ko`p so`rovlar degan ingilizcha... Add solution -
PHP 2021-10-30 01:32:12
Laravelda cortollerga keladigan zaproslarni cheklash
//Buni siz kontrollerga qo`yishingiz kerak eng tepasiga // Auth bu saytda regdan o`tsa degani throttle esa keladigan zaproslarni cheklash degani // Ya'ni 1 daqiqada 20 ta so`rov yubrish mumkun. // 20 tadan o`tib ketsa juda ko`p so`rovlar degan ingilizcha... Add solution
Best helpers
Ranking is empty