Hi guys, any help on using Laravel Passport having two different users table?

|
rebory 2020-04-26 16:32:42
rethdaro 2020-04-26 16:31:46
{{Auth::user()->name}} is working but {{Auth::user()->photo}} not show anything,.. how can please

show your table screenshot

rethdaro 2020-04-26 16:34:07
rebory 2020-04-26 16:32:42
show your table screenshot

laravel_discuss-34923.jpg
here I have data in photo field but dd NULL

rebory 2020-04-26 16:34:53
rethdaro 2020-04-26 16:34:07
here I have data in photo field but dd NULL

not structure data screenshot

rethdaro 2020-04-26 16:36:27
laravel_discuss-34925.jpg

rebory 2020-04-26 16:37:52
rethdaro 2020-04-26 16:36:27

if you are logged in as admin thire is not data

rebory 2020-04-26 16:38:08
//their is no data
rethdaro 2020-04-26 16:38:26
rebory 2020-04-26 16:38:08
//their is no data

okay πŸ™‚

skys215 2020-04-26 16:38:27
giorbismiguel 2020-04-26 16:28:08
You can use the DRY concept if you don’t like to repeat the code to send json to the view, create a BaseController

Not me

rebory 2020-04-26 16:39:19
rethdaro 2020-04-26 16:38:26
okay πŸ™‚

try to put another user image name copy paste in your photo field

skys215 2020-04-26 16:39:35
rebory 2020-04-26 16:29:33
i try to fetch first() record from table exp: title, description and direct display in two form inputs Input names Title and description -> but problem is when data is empty it show error Trying to get property ‘title’ of non-object

Use ?? If you are using php7

rebory 2020-04-26 16:39:48
rebory 2020-04-26 16:30:14

@skys215 i need your help

rebory 2020-04-26 16:41:14
skys215 2020-04-26 16:39:35
Use ?? If you are using php7

laravel_discuss-34934.jpg

skys215 2020-04-26 16:42:06
rebory 2020-04-26 16:39:48
@skys215 i need your help

Your code?

rebory 2020-04-26 16:43:02
skys215 2020-04-26 16:42:06
Your code?

laravel_discuss-34936.jpg

skys215 2020-04-26 16:43:39
And blade?
rebory 2020-04-26 16:44:16
laravel_discuss-34938.jpg

rebory 2020-04-26 16:45:23
laravel_discuss-34939.jpg

skys215 2020-04-26 16:45:53
Use $about??$about->section1
rebory 2020-04-26 16:45:57
why it show error on null
skys215 2020-04-26 16:47:08
In other words, check if $about is null or not before using it
rebory 2020-04-26 16:47:56
skys215 2020-04-26 16:47:08
In other words, check if $about is null or not before using it

in blade?

skys215 2020-04-26 16:50:55
Yes
rebory 2020-04-26 16:51:50
skys215 2020-04-26 16:50:55
Yes

isset() is better option for me

Yannickshadownet 2020-04-26 16:52:15
rebory 2020-04-26 16:47:56
in blade?

In your controller before return view
Do dd ($about);

rebory 2020-04-26 16:53:06
Yannickshadownet 2020-04-26 16:52:15
In your controller before return view
Do dd ($about);

it show null

rebory 2020-04-26 16:53:27
so how to handle in inputs when i render it
rebory 2020-04-26 16:53:42
for update or create first record
Yannickshadownet 2020-04-26 17:01:13
rebory 2020-04-26 16:53:06
it show null

Your request return null

rebory 2020-04-26 17:02:01
rebory 2020-04-26 16:44:16

@Yannickshadownet so how i handle it without isset

Yannickshadownet 2020-04-26 17:14:45
$about= About::take(1)->get();
Yannickshadownet 2020-04-26 17:15:13
Yannickshadownet 2020-04-26 17:14:45
$about= About::take(1)->get();

Use eloquent

2020-04-26 17:35:35
laravel_discuss-34955.jpg

2020-04-26 17:35:50
laravel_discuss-34956.jpg

2020-04-26 17:36:06
laravel_discuss-34957.jpg

2020-04-26 17:36:10
whats wrong
skys215 2020-04-26 17:38:15
Comments and comments
2020-04-26 17:39:02
ohh fuckπŸ˜„
2020-04-26 17:39:27
skys215 2020-04-26 17:38:15
Comments and comments

thnxxx man❀️

mohamed abuassi 2020-04-26 17:49:23
Guys i need tutorial for restful api advance
2020-04-26 20:13:16
guys how to pass data to bootstrap model for example i want to open model for different item and the model contain the item i clicked
Asish K Antony 2020-04-26 21:48:45
2020-04-26 20:13:16
guys how to pass data to bootstrap model for example i want to open model for different item and the model contain the item i clicked

so are you using ajax to load data

cayetanohosma 2020-04-26 21:50:03
HI guys! Anyone knows any good tutorial about how to create packages in Laravel? Right now, I’m using Laravel 7, but I guess that shouldn’t be much more differences between versions, should it?
2020-04-27 00:26:14
Hi guys, any help on using Laravel Passport having two different users table?
2020-04-27 01:53:35
Hi guys, any help on create product with image ?
Begroups 2020-04-27 02:04:18
Help pls
Begroups 2020-04-27 02:04:41
laravel_discuss-34981.jpg

Begroups 2020-04-27 02:05:13
I want to build component like this who will display when i add an audio by input
Begroups 2020-04-27 02:05:54
And i will can play audi without register in folder server.
Im not using vuejs
Begroups 2020-04-27 02:06:00
Only jquery and laravel
Gabby_Json 2020-04-27 02:57:06
laravel_discuss-34985.jpg
Pls help me… Why this error
|