How do I sort posts both by posts created_at and comments created_at?

What I would like to do is have my view display recent posts but also have a post be at the top if it recently had a comment or reply. I am stumped...
09

json_encode()

I wonder what this code means: echo json_encode($message); I have it in the end of my controller. Is it to pop up...
01

Laravel Pagination not working

I am trying to paginate records, but it shows me error. public function index(){ $posts = Post::get(); return view('index')...
02

Laravel API guest middleware

I am using Laravel Passport for API, there is some required not authenticated like register in those controller constructor p...
00

Configure a route to point to a php url like "/in.php"

I have a server that receives data from a popular service and for which the initial route was just a plain php file myserver.com/in.php...
07

Supervisor wont run laravel echo server file but if I cd to it I can run it manually

I can't get supervisor to run the echo server on my Ubuntu 16.04 AWS EC2 instance but it runs fine on my Homestead Ubuntu 16.04 VM. The error I get...
00

multipe user roles to user

hi I am new to laravel and trying to build a user management system for learning I want admin to create user with multiple roles but I dont...
01

Directory Generation problem

HI, everyone! I have a problem with my uploader system.In my website, I have a general uploader. Users can upload files on any content kind...
00

Passport: How do you use the personal access and password grant client it creates?

When you install passport it creates two clients. "personal access" and "password grant" Both of these don't have...
00

Can't post comments after completing Laravel 5.4 episode 19

I get the following error when trying to post a comment: I. Error SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a...
08

Laravel 5.5 return back to registration form if conditions is not met

Hello. I need help returning user back to registration form if a condition is not met in a table, before processing the register method. **G...
09

How to protect app with generator who create tokens that expired

I need a extra field in login page where users can put token when they username expired. Only when enter that token can normally use the app. Token...
00

Socialite, Ajax and CORS problem

hi, i'm building "one single page" app (laravel v5.4.30) and i'm combining Socialite and Ajax to retrieve user's data from Linedin and Me...
02

Importing 50k+ rows to database from CSV

Hey all, Hoping I can get some advice here on the best way to import large-ish CSVs into the database without running into timeout issues....
14

Route not defined for logout

I want to log users out but I cant redirect back to login page I want to use login route Route::get('/', function () { re...
04

Laravel CMS

Hi everyone. At work, we use Perch Runway & WordPress for our CMS but I'm keen to move away to a laravel based cms. Just wondered if the...
02

Mix and Critical CSS

Has anyone successfully created a way to generate critical css using laravel's mix? I think I know how to get it done with elixr, just using anothe...
03

I am thoroughly confused with socket.io, laravel-echo, redis and laravel echo server

I am trying to build an app and api(iOS and Android) with Laravel 5.4. I need to implement some real time notifications because of that like ETA....
04

Choose current year by Java script

I have year values in select box On top I added on div container onload="myFunction()" {!! Form::select('godina', $nlg ,nu...
00

laravel and request XHR Ajax

Hello! it's a while that I suffer on a script and I go around in circles without knowing what to do! I specify that I am a beginner in Laravel! my...
04