How to Save Data With User Auth id In Table Using Laravel Ajax

I have to save data in a database table with userid using laravel ajax. Can anyone please help me to solve this issue my controller code public function store(Request $request) { $rearcameras = new Rearcameras(); $rearcameras->user_id = auth()->id(); $rearcameras->name = $request->name; $rearcameras->size = $request->size; $rearcameras->type = $request->type; return $this->sendResponse($rearcameras->toArray(), ‘Command Send Successfully successfully.’); } and…

Details

Facing some issues when tryiing to create secrets in kubernetics

I need to store some passwords and usernames in the secrets.YAML .but after the deployment getting this error .so unable to build the secret and access it in the pods. Attaching the deployment.yaml and secretes .yaml below. –Secrets.yaml apiVersion: v1 kind: Secret metadata: name: mysecret data: CassandraSettings__CassandraPassword: [[ .Environment ]]-abcd-cassandra-password —Deployment.yaml env: – name: Password…

Details

1 dimenstional convolution error in using tensorflow

I am studying 1d convolution using tensorflow. Code: import numpy as np import tensorflow as tf \#####raw data, input length is 24, and feature_len is 6 batch = np.ceil((np.random.rand(24, 6)*10))-5 \#####filter for convoltion, filter width is 3, filter input dim is 6, output dim is 18 eye_filter = tf.constant(np.eye(3*6).reshape(3,6,18).reshape(3,6,18)) \#####here error happened conv = tf.nn.conv1d(input=batch,…

Details

Python Web Scraping: how to retrieve an ‘href’ according to the content in the last tag

<td valign=”top” align=”left”><a href=”/Archives/edgar/data/1696969/000169696919000025/0001696969-19-000025-index.htm”>GM Financial Automobile Leasing Trust 2017-1</a></td> <td valign=”top” align=”left”><a href=”/Archives/edgar/data/1696969/000169696919000025/0001696969-19-000025.txt”>[text]</a> <a href=”/Archives/edgar/data/1696969/000169696919000025/0001696969-19-000025-index.htm”>[html]</a></td> In this example, I want to get the link ‘/Archives/edgar/data/1696969/000169696919000025/0001696969-19-000025.txt’ from the second tag, using the string ‘GM Financial Automobile Leasing Trust 2017-1’ in the first tag. Is there any way in Python that I can do so? Here is…

Details