skip to Main Content

I call Controller and view through route first time but it show error like this – PHP Versions

home.php //controller <?php namespace AppHttpControllers; use IlluminateHttpRequest; class home extends Controller { public function index($home) { return view('home',['home'=>$home]); } } web.php Route::get('home/{home}',[home::class,'index']); home.blade.php {{home}} ErrorException Use of undefined constant home - assumed 'home' (this will throw an Error in a…

VIEW QUESTION

Hide a custom action button on click displaying a text in WooCommerce admin orders list

I am creating woocommerce plugin to send order details via WhatsApp. Here is my plugin code add_filter( 'manage_edit-shop_order_columns', 'dvs_whatsapp_msg_list_column' ); function dvs_whatsapp_msg_list_column( $columns ) { $columns['dvs_show_whatsapp'] = 'WhatsApp'; return $columns; } add_action( 'manage_shop_order_posts_custom_column', 'dvs_whatsapp_msg_list_column_content' ); function dvs_whatsapp_msg_list_column_content( $column ) {…

VIEW QUESTION
Back To Top
Search