All Questions
16 questions
1
vote
1
answer
165
views
I want to search posts on basis of tags in Laravel 8
I have stored tags of posts in a database like
["trending","toppost","tags"]
and I need to create an API to find posts on basis of tags search
In Postman, I use to send ...
0
votes
1
answer
156
views
Laravel Uncaught Type Error (Cannot set property elements of #<HTMLFormElement> which has only a getter)
function makeSerializable(elem) {
return $(elem).prop('elements', $('*', elem).addBack().get());
}
---------------------------------------------------
function newPost(){
var form_name = '#...
0
votes
2
answers
123
views
Laravel - refreshing posts
I'm trying to make refresh option in my Laravel project. I made a public function refresh() in my CarsController. The idea is to make created_at get current time because my cars are ordered by orderBy(...
1
vote
1
answer
5k
views
Laravel - voyager BREAD
I started my simple laravel project with posts. First I created my auth, than my posts and everything works fine. But I installed voyager admin panel(without dummy) in my project and I add BREAD to ...
5
votes
2
answers
3k
views
Get recent wordpress posts in Laravel
I have a Wordpress site and a Laravel site and I want to display recent wordpress posts in the footer of Laravel site. How can I do this without having my wordpress database information in my config/...
1
vote
2
answers
6k
views
"Class 'App\Models\Post' not found"
I'm trying to let my users made posts in my social media website. I already have a 'App\Models\Post'. How do I solve it??
Also the error appears when I try to submit the post, and the trouble is in ...
0
votes
2
answers
218
views
how to fetch commented name on posts in laravel 5.4
i followed the convention to avail the required data with compact method to view
Schema User Table
id,name,email,password
Schema post Table
id,user_id,title,body,photo
Schema comment Table
id,...
0
votes
0
answers
31
views
how to fetch commented name on posts in laravel
i followed the convention to avail the required data with compact method to view
Schema User Table
id,name,email,password
Schema post Table
id,user_id,title,body
Schema comment Table
id,post_id,...
0
votes
1
answer
90
views
Laravel 'many to many' user associates with many posts?
In PostsController
public function store()
{
$this->validate(request(), [
'title' => 'required',
'body' => 'required'
]);
auth()->user(...
0
votes
1
answer
10k
views
User Submitted Posts Store function using Laravel
So in addition to my prior topic (thank you guys for helping) routes with compact
I am now facing troubles with my store function, I am getting the error : "Trying to get property of non-object.
...
1
vote
3
answers
161
views
User Submitted Posts using Laravel
I am trying to build an application which it will contain an admin dashboard where the admin will be able to CRUD Posts but also he will be able just to see User Submitted Posts.
On the other hand the ...
1
vote
3
answers
7k
views
How to display Posts via the Category in laravel
This is my first laravel Application, and my first database based application so please be patient with me !!
I will try to be specific!!
Categories Table:
Id
Name
Timestamps
Posts table:
Id
title
...
0
votes
1
answer
62
views
define a policy for Comments deleting that checks comment author or post author (laravel)
How can you enable both the author of the post and the author of a comment to delete it?
I mean, the author of the posts can delete every comment under his posts, while the author of a comment can ...
0
votes
1
answer
385
views
Laravel Migration for Followers / Following
I am setting up a migration for user followers. I want to use this to check if a user is following another user and if he is enabled to see and comment on the publisher posts.
I am doing this based ...
0
votes
1
answer
74
views
ACL in laravel 5.1 , delete post abilities on each post shown in user page
I have an user page where I show all the posts by that user.
This page can be accessed by other users more or less like instagram.
Now the point is I want to show in every single post in that page a ...
1
vote
1
answer
3k
views
Laravel OrderBy comments in posts
I have post and comments tables where of course comments belongs to posts.
I want to sort posts now with eloquent by amount of comments.
How can i do that in laravel?
I tried to order by date using:
...