Will report that error?

|
Snowflex1 2020-01-17 17:17:44
2020-01-17 17:15:56
Great! Additional security turned off for writing !?

turned off, yeah. will find a way to turn it on without issues when i’m done building the application

jumzeey 2020-01-17 17:30:44
What’s up devs, I have a laravel problem
jumzeey 2020-01-17 17:31:02
Now the thing is, I have a layout.blade.php file, I extended to all my other pages
jumzeey 2020-01-17 17:31:24
But a page, which is meant to show the content of a blog isn’t displaying the CSS of the layout.blade.php file, but it is displaying the content
jumzeey 2020-01-17 17:31:40
Basically the layout file contains the navigation and navigation link, the content of the navigation is showing in the page , but the style of the navigation isn’t showing, like as if I created an HTML page without linking it’s CSS
2020-01-17 17:35:34
jumzeey 2020-01-17 17:31:40
Basically the layout file contains the navigation and navigation link, the content of the navigation is showing in the page , but the style of the navigation isn’t showing, like as if I created an HTML page without linking it’s CSS

Check the network calls for the css file. If it’s loading / giving any error / not in.

Chrome/Firefox > Developer Tools > Network

Lynda Lyn 2020-01-17 17:41:31
laravel_discuss-24596.jpg

Lynda Lyn 2020-01-17 17:41:51
Need help please
2020-01-17 17:42:34
Lynda Lyn 2020-01-17 17:41:51
Need help please

I think you should check in master blade which variable you are using

Lynda Lyn 2020-01-17 17:44:03
2020-01-17 17:42:34
I think you should check in master blade which variable you are using

I use myposts

Akshay Bhardwaj 2020-01-17 17:52:42
Lynda Lyn 2020-01-17 17:44:03
I use myposts

Send my post in compact

tudor_besliu 2020-01-17 18:23:43
Hi guys. Can someone explain me more simplified what is Horizon. It’s a monitor only or management tool also
tudor_besliu 2020-01-17 18:23:52
can queues work without Horizon ?
tudor_besliu 2020-01-17 18:24:40
How monitor queues without Horizon – if I am on Windows and don’t want to install any VM …
StanleyMasinde 2020-01-17 18:29:19
Lynda Lyn 2020-01-17 17:41:31

1. Variable names are case sensitive.

2. You have to pass data from a controller. I normally do this
return view(‘view name’, $data)
$data is an assoc array. In your case.
[‘MyPosts’ => $postVariable]

In your view the posts will be contained in $MyPosts.

StanleyMasinde 2020-01-17 18:30:55
tudor_besliu 2020-01-17 18:24:40
How monitor queues without Horizon – if I am on Windows and don’t want to install any VM …

I’m afraid no.

2020-01-17 18:36:22
Lynda Lyn 2020-01-17 17:44:03
I use myposts

Maybe camelcase is yor mistake

MatPk 2020-01-17 19:43:19
laravel_discuss-24614.jpg

MatPk 2020-01-17 19:43:19
laravel_discuss-24613.jpg

MatPk 2020-01-17 19:43:19
laravel_discuss-24612.jpg

MatPk 2020-01-17 19:43:19
laravel_discuss-24611.jpg
why my “polymorphic” relation does not work and tells me
can not convert array to string
MatPk 2020-01-17 19:44:22
MatPk 2020-01-17 19:43:19

anyone knows?

skys215 2020-01-17 19:47:56
MatPk 2020-01-17 19:43:19

which row has erro cannot convert array?

MatPk 2020-01-17 19:48:21
skys215 2020-01-17 19:47:56
which row has erro cannot convert array?

last img
$likeable->likes

skys215 2020-01-17 19:49:03
MatPk 2020-01-17 19:48:21
last img
$likeable->likes

I think it’s not here

MatPk 2020-01-17 19:50:22
skys215 2020-01-17 19:49:03
I think it’s not here

when i delete it, the error doesn’t happened

skys215 2020-01-17 19:51:31
just adding
$likeable->likes
will report that error?
skys215 2020-01-17 19:51:42
try dd($likeable->likes);
saimon_e 2020-01-17 19:53:18
Article class have a typing error (auhtor instead of author)
MatPk 2020-01-17 19:55:56
skys215 2020-01-17 19:51:42
try dd($likeable->likes);

just shows errors

MatPk 2020-01-17 19:56:06
saimon_e 2020-01-17 19:53:18
Article class have a typing error (auhtor instead of author)

which sentence?

MatPk 2020-01-17 19:56:45
hmmm yes. but it is not about morph relation bro
saimon_e 2020-01-17 19:58:22
Show error message pls
MatPk 2020-01-17 19:59:25
saimon_e 2020-01-17 19:58:22
Show error message pls

laravel_discuss-24628.jpg

saimon_e 2020-01-17 20:01:57
Maybe you have to save() $link
saimon_e 2020-01-17 20:01:59
$like
MatPk 2020-01-17 20:05:01
saimon_e 2020-01-17 20:01:57
Maybe you have to save() $link

good tip but i did not try to save them. I’m just calling likes relation and it is going to show me errors

saimon_e 2020-01-17 20:06:52
What happens if you replace $likeable->likes; with dd($likeable->likes);?
MatPk 2020-01-17 20:07:07
MatPk 2020-01-17 19:59:25

i tried and just shows this

saimon_e 2020-01-17 20:07:09
You see the collection on output?
MatPk 2020-01-17 20:07:35
saimon_e 2020-01-17 20:07:09
You see the collection on output?

nope

saimon_e 2020-01-17 20:10:22
Ok the problem maybe is table structure
saimon_e 2020-01-17 20:11:02
When you have a morph table (the likes table in this case) he must have likeable_id and likeable_type
saimon_e 2020-01-17 20:11:25
Type is Article::class and id is obv the id
saimon_e 2020-01-17 20:11:57
Show migration file dude
MatPk 2020-01-17 20:12:15
saimon_e 2020-01-17 20:11:25
Type is Article::class and id is obv the id

Schema::create(‘likes’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->tinyInteger(‘user_id’);
$table->morphs(‘likeable’);
$table->timestamps();
});

MatPk 2020-01-17 20:12:25
it is okay
saimon_e 2020-01-17 20:13:07
Yep ok then when you save a like into article u can do this: $article->likes()->save($like);
MatPk 2020-01-17 20:13:38
saimon_e 2020-01-17 20:13:07
Yep ok then when you save a like into article u can do this: $article->likes()->save($like);

yes i tried and the same problem

MatPk 2020-01-17 20:14:23
laravel_discuss-24644.jpg

|