mostafalaravel
1 week ago

Is it a bug ? "http:" and "https:" strings are removed from controller results event if they exists in DB

Posted 1 week ago by mostafalaravel

Laravel 5.8 PHP 7.2 PostgeSQL 10.10

I have a problem with "http:" and "https", these two strings (only and only with that case) are removed from all results of all models !

in DB each field having : "http:" or "https:" when I return it's data through controller I see the content except these two strings! ("http:" and "https")!

for example ,

In table trainings the row id=7 have that field value: title => 'training http: test after adding the permission:'

as you can see "http:" exists

also it exists when : dd(App\training::find(7));

exists: true
  +wasRecentlyCreated: false
  #attributes: array:15 [▼
    "id" => 7
    "title" => "training http: test after adding the permission:"
    "begin_date" => "2019-11-05 00:00:00"
    "end_date" => "2019-11-05 00:00:00"
    "created_at" => "2019-11-05 15:19:35"
    "updated_at" => "2019-11-08 15:28:31"
    "level_id" => 1
    "certified" => true
    "external_urls" => "[{"url": null, "name": ""}]"
    "certification_number" => "AZD557AZD7"
    "certification_expired_date" => "2019-07-13"
    "intern" => true
    "certification_body_name" => "name"
    "external_trainer_name" => null
    "external_trainer_company_name" => null
  ]
  #original: array:15 [▶]
  #changes: []

but from the controller "http:" is removed !

{
  "id": 7,
  "title": "training l test after adding the permission:",
  "begin_date": "2019-11-05 00:00:00",
  "end_date": "2019-11-05 00:00:00",
  "created_at": "2019-11-05 15:19:35",
  "updated_at": "2019-11-08 1 ...

Please sign in or create an account to participate in this conversation.