Laravel - More effiecient way to count attributes.

Hello, I have a page where I want to count the number of Posts, Users and comments. But currently, i'm doing it like this. and It looks a bit odd....
01

Add item to nested collection

Hi, I have a multi level collection returned from eloquent, this is (short) example: { "id": 1, "creat...
00

Post tags sync with additional data like slug.

Am building a blog post with tags. On the tags table the tags are posting correctly but its additional slug are not posting. This is the co...
17

Ajax post error

I am getting error on saving data with Ajax,but without ajax it works. and at console it says : 500 (Internal Server Error)...
10

How, exactly, can I distribute Homestead with my project (Homestead on a per project basis)

I've been able to follow the instructions so far on configuring Homestead on a per project basis, and now have multiple Laravel projects with their...
01

Pull a belongsTo relation in Blade

I am trying to show task title into blade using belongsTo Relation. In Tinker its working Fine but in blade I am trying to show its not....
11

Laravel 5.5 Session::put not work

Laravel Version: 5.5 PHP Version: 7.2 Description: I write a function for login by ajax. Auth::loginUsi...
04

Error 419 unknown status on sending json to store function via ajax

Hi all, I'm trying to save an object throuhg an ajax (axios ) request to a Controller. client part; axios...
06

Problem with webpack and modules availability

Hi, I have a problem importing npm modules and then using it on my code. Some of them return, for example, "ReferenceError: Chart is not defin...
00

Testing api - DELETE request gives 404 response

Hi I am trying to test one of my api endpoints which is working in the browser but I can't get the test to pass as it returns a 404 from the...
02

Quicken contact number

Managed by the third party experts, the number is the one stop solution for updating transactions details instantly. The users who need the hap can...
00

two-factor SMS authentication workflow in laravel

I want to make a SMS 2-factor authentication system but I do not know what is workflow in this case and which methods should be used. I want...
01

Can MIddleware use app()->bind

I'm trying to have middleware inject class instance in controller. I tried this: Middleware: public func...
03

relationship create not working as expected.

I'm working on a laravel 5.5 application, and after debugging for an hour I've stumbled across the following issue when building up an object. I ca...
01

using sessions with dingo api and jwt

I'm using the Dingo API package with JWT and I also want to use Socialite in order to store OAuth1 credentials for a different service I need my us...
01

Scope Problem in User Model

Hi everyone, I have problem making a scope in Laravel. User.php <?php namespace App; use Illuminate\Foundation\Auth\User...
02

Two different register

I want to create two different forms for register (different fields) and one (common) form for login (email and password). Tutorials ? Tips?...
01

Lumen facade problem

i have added this to bootstrap/app.php $app->withFacades(); $app->register(Telegram\Bot\Laravel\TelegramServiceP...
00

Generate a secured url

Hello, is there a possibility to generate a limited lifetime url to a page/content which you normally only can access if you are an authenti...
01

Make eloquent model for subtype.

I'm creating a school platform where students, teachers,... can login using their credentials. To reduce duplicate data I did not make a separate t...
02