#### Category : null

I’m trying to create new data. I have the error massage if I submit this page. Please, give me advice. thank you for all. if i delete $Product -> SKU =$this->SKU; on AdminAddProductComponent.php, the error has gone. my web.php <?php namespace AppHttpLivewire; use AppHttpLivewireUserUserDashboardComponent; use AppHttpLivewireAdminAdminDashboardComponent; use AppHttpLivewireAdminAdminCategoryComponent; use AppHttpLivewireAdminAdminAddCategoryComponent; use AppHttpLivewireAdminAdminEditCategoryComponent; use AppHttpLivewireAdminAdminProductComponent; ..

I’m trying to charge a customer in my Laravel app but it keeps saying $customer is null. Any idea what’s wrong? The error: Call to a member function checkout() on null refers to this line return$customer->checkout… However calling echo $id returns the customer ID so I see no issue why findBillable returns a null .. Read more foreach ($task as $task1) {$parent=DB::select(‘select parent_wbs_id from projwbs where wbs_id= "$task1->wbs_id"’); foreach ($parent as $parent1){ DB::table(‘tasks’)->insert([ [‘id’=>$task1->task_id, ‘text’=>$task1->task_name, ‘start_date’=>$task1->act_start_date, ‘duration’=>round($days), ‘parent’=>$parent1->parent_wbs_id,’progress’=>1.0] ]); } } My parent select query has where clause in which it is checking wbs_id from for each loop of task and getting parent_wbs_id accordingly. Now, the question is– It is not ..

I have a problem, when entering two IDs from pesanans table but not input/null, so I want to enter two or more ids so that they are not null, how do I do that? Pesanan Table Pembayaran Table The Controller $insert = DB::table(‘payment_history’)->insert($arr); $pembayaran = DB::table(‘pembayarans’)->insert([ ‘kode_pembayaran’=>$request->data[‘order_id’], ‘nomor_faktur’ =>rand(), ‘type_pembayaran’=>$request->data[‘payment_type’], ‘status_kode’ =>$request->data[‘status_code’], ‘user_id’=>Auth::user()->id, ‘pesan_id’=>$request->pesan_id, ‘pesanan_id’=>$request->pesanan_id, ..

my laravel insert function in my controller is looking for a "created_by" column which I do not have. Model: class HmsBbrCategory extends Model { public $timestamps = false; protected$table = ‘hms_bbr_category’; protected $fillable = [ "id", "category_id", "category_name", "category_description" ]; } Controller: public function store(Request$request) { $validator = Validator::make($request->all(), [ ‘category_name’=>’required|max:191’, ‘category_description’=>’required|max:191’, ]); ..

I am trying to add two columns: id and category_id and I need both to be the same value $category = new HmsBbrCategory;$category->id = increments(); $category->category_id = id+1;$category->category_name = $request->input(‘category_name’);$category->category_description = $request->input(‘category_description’);$category->save(); return response()->json([ ‘status’=>200, ‘message’=>’Category Added!’, ]); as you can see, both columns return null, tried adding two lines but ..

I am starting with Laravel ; sorry if the question is really basic but couldn’t find an answer yet : I have a basic form in a view ; the user can choose a picture and upload it. No problem there. If the user hasn’t choosen a picture, there is one by default displayed. No ..

I’ve added link to script from another site: <div data-get-fit-index-lk="">&nbsp;</div> <script src="https://reservi.ru/widget-fit1c.v2/js/config.js" data-fit-salon-id="xxxx"> </script> It embeds page with functions of calendar and planning . So i’ve got a problem. First it was error about route, so I’ve added route::any (there was only ‘get’). And after logging into embedded page with this script (it has own ..

values of columns that is empty returns null. How to I make turn the null to zero so that if the value is null it returns zero. public function getThumbsUpAttribute($value){ return$value !== null ? $value : 0; } public function videos() { // return VideoViewsLikes::all();$rec_videos = Videos::orderBy(‘videos.created_at’, ‘DESC’)->where(‘videos.publish’, 1) ->leftJoin(‘video_views_likes’, ‘videos.vid_id’, ‘=’, ‘video_views_likes.vid_id’) ..