How to get the data from controller to view when the view is loaded into the browser?

|
shubhamdhyani 2020-08-11 16:10:44
cayetanohosma 2020-08-11 16:10:20
Sorry…. My brain is full up information and I read the opposite xD!

ohh i thought you were being sarcastic

cayetanohosma 2020-08-11 16:10:45
That’s true. Always True
Ryan151995 2020-08-11 16:10:48
How rajith but condition say value and datatype hase to be not equal then its return true
cayetanohosma 2020-08-11 16:11:12
shubhamdhyani 2020-08-11 16:10:44
ohh i thought you were being sarcastic

XD! No, no… Just my brain didn’t switch from JS to PHP

cayetanohosma 2020-08-11 16:11:36
And in JS (NaN == NaN) it’s evaluated as FALSE… 😂
Pro 2020-08-11 16:13:09
!(2!==7) now it’s false 😄
Ryan151995 2020-08-11 16:14:05
Hahaha pro
rajithsam 2020-08-11 16:14:34
Ryan151995 2020-08-11 16:10:48
How rajith but condition say value and datatype hase to be not equal then its return true

How you are saying it is false?
It is strict non identical operator

Ryan151995 2020-08-11 16:17:46
I am saying data type are same in this case and values are different but !== condition say value and datatype both has to different then its return true
Ryan151995 2020-08-11 16:58:15
Ranjith thx bro my doubt is clear when you say its strict non identical operator
isofdev 2020-08-11 17:14:48
Link
2020-08-11 17:15:06
Coding High
A Place where Future Professional comes and learns new things Every day
Content That We Provide
(Books+Articles)
1. Machine learning
2. Artificial intelligence
3. Web Development (Html, CSS, JavaScript, Django, )
And Programing related content
Let’s Code
Channel Name : Coding High
Abhijeet 2020-08-11 18:46:08
I am implementing bitbucket pipeline for CI CD integration with laravel but getting below error

fatal: could not read Username for ‘https://github.com’: No such device or address

GitHub: Where the world builds softwareGitHub
GitHub is where over 83 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat…
2020-08-11 19:51:57
Ryan151995 2020-08-11 16:08:37
But its return true .

This is returning correctly true, u need to understand !== means not equal.

2020-08-11 19:52:42
Oh vinod is here 😂 sorry just saw ur name.😂
rajithsam 2020-08-11 20:13:21
Ryan151995 2020-08-11 16:58:15
Ranjith thx bro my doubt is clear when you say its strict non identical operator

Welcome 👍 Bro

shaildark 2020-08-11 22:39:42
How to get the data from controller to view when the view is loaded into the browser?
shaildark 2020-08-11 22:41:03
I’m talking about showing all the records of a particular table in view
shaildark 2020-08-11 22:42:07
I already did it without using ajax
shaildark 2020-08-11 22:47:04
Route::get(‘/Show’, ‘InformationController@showData’);

Function in the controller
public function showData()
{
$data = DB::table(‘informations’)->select(‘id’, ‘firstname’, ‘lastname’, ’email’, ‘mobile’)->get();

return view(‘showdata’)->with(‘data’, $data);

}

shaildark 2020-08-11 22:47:38
shaildark 2020-08-11 22:47:04
Route::get(‘/Show’, ‘InformationController@showData’);

Function in the controller
public function showData()
{
$data = DB::table(‘informations’)->select(‘id’, ‘firstname’, ‘lastname’, ’email’, ‘mobile’)->get();

return view(‘showdata’)->with(‘data’, $data);

}

I want to pass that $data to showdata view using Ajax
When the user goto http://127.0.0.1:8000/Show then all the records of informations table must load into the showdata view using Ajax

shaildark 2020-08-11 22:50:39
I already tried this without Ajax and it works fine, and I used foreach loop in the view to show the data
shaildark 2020-08-11 23:14:56
I already solved within 20 minutes
farhanahjam 2020-08-12 05:17:47
How to use datepicker in laravel blade file?
farhanahjam 2020-08-12 05:18:06
how to make it look nice?
flyingdragons 2020-08-12 07:09:28
farhanahjam 2020-08-12 05:17:47
How to use datepicker in laravel blade file?

Use datepicker libraries you can find plenty of them

farhanahjam 2020-08-12 07:24:07
Is it bootstrap have built in plugin for datepicker?
flyingdragons 2020-08-12 08:33:07
https://stackcoder.in/posts/url-redirects-from-called-functions-in-laravel
URL Redirects From Called Functions In Laravel

URL Redirects From Called Functions In Laravel | StackCoderStackCoder
Most of the time, you would be facing problems when you might want to redirect from called functions.
ConnectJay 2020-08-12 08:47:07
Any Laravel developer from Pune India..?
marvel_vita 2020-08-12 09:03:39
Hi there, I have an issue with getting trashed items via relationship hasmany, for example post have comments using softdelete, but when i access $post->comments it gets with already deleted comments.
flyingdragons 2020-08-12 09:04:20
Model and Controller code please
marvel_vita 2020-08-12 09:06:56
public function t_objects(){ return $this->hasMany(‘AppModelsTObject’,’application_id’,’id’); }
marvel_vita 2020-08-12 09:07:07
Its a relation code in model of parent
flyingdragons 2020-08-12 09:08:01
marvel_vita 2020-08-12 09:06:56
public function t_objects(){ return $this->hasMany(‘AppModelsTObject’,’application_id’,’id’); }

Have you included SoftDelets in model?

marvel_vita 2020-08-12 09:09:09
Sure, App/Models/TObject uses soft delete trait and deleting process is normal, when i delete, it will record current datetime to deleted_at column
marvel_vita 2020-08-12 09:09:40
But when I retrieve t_objects from application object it gets with deleted items
marvel_vita 2020-08-12 09:10:21
Sure i can set whereNull deleted_at to relation, but I think there must be the way to use it by default
flyingdragons 2020-08-12 09:11:19
But default Laravel wont fetch any softdeleted records
flyingdragons 2020-08-12 09:12:27
Please check if you have added SofDeletes in the Migration and have included inthe Model
marvel_vita 2020-08-12 09:12:38
When i retrieve TObject::get() it is ok, dont get any deleted records, but when i get via relationship, it gets with deleted
flyingdragons 2020-08-12 09:13:11
marvel_vita 2020-08-12 09:12:38
When i retrieve TObject::get() it is ok, dont get any deleted records, but when i get via relationship, it gets with deleted

I think somewhere you might have included withTrashed()

marvel_vita 2020-08-12 09:13:55
marvel_vita 2020-08-12 09:06:56
public function t_objects(){ return $this->hasMany(‘AppModelsTObject’,’application_id’,’id’); }

This code i copypasted, it is relation code

marvel_vita 2020-08-12 09:14:06
And there is no withTrashed
flyingdragons 2020-08-12 09:14:36
Hmmmm thats weired
flyingdragons 2020-08-12 09:16:45
Can you please check if anything is there is Boot() method?
flyingdragons 2020-08-12 09:17:01
marvel_vita 2020-08-12 09:13:55
This code i copypasted, it is relation code

AppServiceProvider boot() method

marvel_vita 2020-08-12 09:17:50
It’s empty
2020-08-12 10:53:59
monu 2020-08-11 11:39:45
I want real time without refresh chat

I solved this problem without any websocket…

WahidinAji 2020-08-12 10:55:29
2020-08-12 10:53:59
I solved this problem without any websocket…

reference?

2020-08-12 10:56:08
WahidinAji 2020-08-12 10:55:29
reference?

No i did it myself… I can’t afford pusher

|