Contents:
Can anyone recommend me a good log viewer package?
What do you mean by get method?
IS this correct way?
Can anyone recommend me a good log viewer package?
What do you mean by get method?
IS this correct way?
hypernxf 2020-12-28 11:27:11
In order for the field to be efficient, simply add an index to the “email” field
hypernxf 2020-12-28 11:27:31
2020-12-28 11:24:34
Can anyone recommend me a good log viewer package? I am using multiple channels to differentiate the logs. 😊
log viewer as in to view laravel.log?
2020-12-28 11:28:29
yeah, and to see logs for logs/email/email.log also
hypernxf 2020-12-28 11:28:45
hm….
2020-12-28 11:28:58
like email, I have multiple channels log
hypernxf 2020-12-28 11:29:00
I use Laravel Telescope
hypernxf 2020-12-28 11:29:32
But not sure if it contains multiple channels. though I can see my email content in Telescope too
hypernxf 2020-12-28 11:29:59
You can give that a try. It’s an official package by Laravel so I believe it should work quite seamlessly
2020-12-28 11:30:20
let’s see how it works
hypernxf 2020-12-28 11:31:10

hypernxf 2020-12-28 11:31:23
these are some of the info being shown in Telescope
2020-12-28 11:35:02
yep!
2020-12-28 11:35:20
it seems workable
…. 2020-12-28 11:53:24
hypernxf 2020-12-28 11:13:11
platform?
I am sorry I mean framework
hypernxf 2020-12-28 11:54:21
You are in Laravel group chat so I would recommend Laravel 😀
pranavsense 2020-12-28 12:08:18
hypernxf 2020-12-28 11:22:15
I think TOP 1 is an MSSQL concept. Correct me if i’m wrong., If you are looking at returning the first result. you can probably use LIMIT 1.
yeah my bad, ill try with limit
and no i named my model wrong but thats not an issue its working fine
pranavsense 2020-12-28 12:09:05
hypernxf 2020-12-28 11:27:11
In order for the field to be efficient, simply add an index to the “email” field
i have only one column named email should i add primary and index to it or leave it as normal column
hypernxf 2020-12-28 12:15:29
if you want to add as primary key i would recimmend add as unique key instead
ksaipov 2020-12-28 12:18:34
excuse me but how i can insert data to DB with get method i could not find about it&
hypernxf 2020-12-28 12:23:25
What do you mean by get method?
pranavsense 2020-12-28 12:25:27
->get is to fetch results
just use DB::create([key=>value])
just use DB::create([key=>value])
segungreat 2020-12-28 12:25:38
ksaipov 2020-12-28 12:18:34
excuse me but how i can insert data to DB with get method i could not find about it&
Do u mean by getting data from the db or http request method
ksaipov 2020-12-28 12:26:18
segungreat 2020-12-28 12:25:38
Do u mean by getting data from the db or http request method
insert to database
ksaipov 2020-12-28 12:26:35
like <form action=”” method=”get”>
pranavsense 2020-12-28 12:36:14
pranavsense 2020-12-28 12:25:27
->get is to fetch results
just use DB::create([key=>value])
just use DB::create([key=>value])
same thing just get data from Request method or request(‘input_name’)
ksaipov 2020-12-28 12:37:25

ksaipov 2020-12-28 12:37:35
i wanted to say about it
ksaipov 2020-12-28 12:37:52

ksaipov 2020-12-28 12:38:04
2nd pic is controller
pranavsense 2020-12-28 12:38:07
“`DB::table(‘table_name’)->create([‘column_name’ => request(‘input_name’)]);
ksaipov 2020-12-28 12:38:20
IS this correct way??
pranavsense 2020-12-28 12:38:32
ksaipov 2020-12-28 12:37:25
$request->input_name in your case
ksaipov 2020-12-28 12:39:40
i wanted all() because all of them requireed
pranavsense 2020-12-28 12:39:40
ksaipov 2020-12-28 12:38:20
IS this correct way??
you need to define values as per table columns, also all() will give you every input including csrf token if you using it
ksaipov 2020-12-28 12:40:52
pranavsense 2020-12-28 12:39:40
you need to define values as per table columns, also all() will give you every input including csrf token if you using it
i am using get method if post method then i need csrf