And you learn all that from laracast or just laravel documentation?

|
Adetollar 2021-11-07 20:30:23
To me, laravel is language on its own
bryan_king 2021-11-07 20:31:05
Adetollar 2021-11-07 20:29:52
I have never touched core PHP in my life… But I use laravel daily

You learnt everything php and oop with laravel ??

Adetollar 2021-11-07 20:31:31
bryan_king 2021-11-07 20:31:05
You learnt everything php and oop with laravel ??

I learnt laravel only!

bryan_king 2021-11-07 20:32:31
Adetollar 2021-11-07 20:31:31
I learnt laravel only!

Interesting. Did it teach how to declare variables and php data types ?

Adetollar 2021-11-07 20:34:55
bryan_king 2021-11-07 20:32:31
Interesting. Did it teach how to declare variables and php data types ?

Yes it did

Adetollar 2021-11-07 20:35:08
Got to know more on the job though, that I must admit
bryan_king 2021-11-07 20:35:50
Adetollar 2021-11-07 20:34:55
Yes it did

And you learn all that from laracast or just laravel documentation ??

bryan_king 2021-11-07 20:36:02
Adetollar 2021-11-07 20:35:08
Got to know more on the job though, that I must admit

Cool

Adetollar 2021-11-07 20:36:59
bryan_king 2021-11-07 20:35:50
And you learn all that from laracast or just laravel documentation ??

Tutorials, research, searching for answers when stuck and working with seniors

bryan_king 2021-11-07 20:38:34
Adetollar 2021-11-07 20:36:59
Tutorials, research, searching for answers when stuck and working with seniors

That is still u learning php. The user was asking if laravel documentation was enough

Adetollar 2021-11-07 20:42:48
bryan_king 2021-11-07 20:38:34
That is still u learning php. The user was asking if laravel documentation was enough

Well.. if you say so… Laravel documentation only is not enough

itsAxton 2021-11-07 21:23:27
laravel_discuss-99178.jpg
trying to access operator device’s serial number,

but when i do operator->device->serie

it gives error to serie

itsAxton 2021-11-07 21:23:46
laravel_discuss-99179.jpg
this is what the dd is showing
Bhuvi100 2021-11-07 21:25:14
itsAxton 2021-11-07 21:23:27
trying to access operator device’s serial number,

but when i do operator->device->serie

it gives error to serie

$operator->device seems to be one to many or many to many

Bhuvi100 2021-11-07 21:25:57
itsAxton 2021-11-07 21:23:46
this is what the dd is showing

$operator->device is a collection here

itsAxton 2021-11-07 21:26:08
Bhuvi100 2021-11-07 21:25:14
$operator->device seems to be one to many or many to many

yes

itsAxton 2021-11-07 21:26:30
Bhuvi100 2021-11-07 21:25:57
$operator->device is a collection here

how to access to serial number ?

Bhuvi100 2021-11-07 21:26:40
Use another foreach
itsAxton 2021-11-07 21:26:58
ooof, i was trying to access it on my blade file
Bhuvi100 2021-11-07 21:27:12
foreach ($operator->device as $device) {
dd($device->serie);
}
itsAxton 2021-11-07 21:27:30
hmm,thanks
Bhuvi100 2021-11-07 21:27:58
Your naming conventions seem to be matching
Bhuvi100 2021-11-07 21:28:26
It’s okay for yourself, but when someone else is reading your code, they will be confused for sure
Bhuvi100 2021-11-07 21:29:39
In this case, $operator->devices seems to be the suitable one
itsAxton 2021-11-07 21:30:59
thank you*
itsAxton 2021-11-07 21:34:45
it worked
Bhuvi100 2021-11-07 21:38:50
Adetollar 2021-11-07 20:31:31
I learnt laravel only!

Alot of things you do when working with vanilla PHP is already done by Laravel, still knowing how it works under the hood is a great advantage

Bhuvi100 2021-11-07 21:39:16
Sometimes, the way Laravel works may not suit your needs
Bhuvi100 2021-11-07 21:39:44
And you may need to do something on your own with vanilla PHP
Bhuvi100 2021-11-07 21:41:02
And BTW if you dont know OOP concepts well, learning Laravel is just waste of time
Bhuvi100 2021-11-07 21:41:30
You may do some basic stuff using tutorials, but you cant do anything more than that
Bhuvi100 2021-11-07 21:41:41
Until you learn it well
Adetollar 2021-11-07 22:20:37
Bhuvi100 2021-11-07 21:41:30
You may do some basic stuff using tutorials, but you cant do anything more than that

According to you

2021-11-07 22:20:43
Bhuvi100 2021-11-07 21:38:50
Alot of things you do when working with vanilla PHP is already done by Laravel, still knowing how it works under the hood is a great advantage

Exactly, when diving into laravel, we keep creating/practicing with laravel which leads us to go through either documentation or stackoverflow or any other resources, which helps us understanding more efficiently.

I’ve seen many php users not doing laravel things in laravel itself. They code in core php in laravel.

2021-11-07 22:22:51
No doubt some advance things needs opps concept to be cleared, but it comes easier when we go through laravel first.
|