MVC Structure - API wrappers, object formatters, and general helpers

Hi all, I'm having trouble determining exactly how to structure my application. The most common answer is 'whatever suits your needs', but I...
01

Ajax call with Laravel form

Hello can someone help me because I wanted to use ajax in my laravel form, when everytime I hit 'CREATE POST' button, the table contains all my pos...
13

got this error "htmlspecialchars() expects parameter 1 to be string, object given" when i try to json_decode in blade file

here is my response data Collection {#478 ▼ #items: array:5 [▼ 0 => modifyHistory {#479 ▼ #attributes: array:8 [▼ "id"...
07

Spark Condition Multi Level Access Based on Payment Plan

I am getting pretty far into my application and now I have a dilemma. I want to have multiple layers of Access. So I know spark has the subscribe...
00

Data showing twice

Hi there, I am having a problem with my data... somewhere its looping my data twice because in my view I get the same actone two times. I can't fig...
01

Script - GET a Number Based on Highest Last Number

I have an interesting problem, one that I've never run across before but wonder if anyone else might've. I have two fields, one is a drop do...
01

Trigger an artisan command when endpoint is hit then another when that is complete

Hiya LaraFolks, I am looking to trigger an artisan command when an end point is hit and then another when that command is complete. h...
03

When Upload a laravel project in live server Show this error in error log.

[19-Apr-2018 17:22:13 America/New_York] PHP Parse error: syntax error, unexpected '?' in /home/xrwuavjz/social.r25n.com/vendor/laravel/framework/s...
03

Seeding with Spatie/permissions

Hi ive created a CreateUsers seeder as below: DB::table('users')->insert([ 'id' => 1, 'name' => 'A...
02

Domain is used instead of APP_URL

I have tried to change app_url in ENV file but it is being ignored. Instead Laravel uses whatever I config Apache to set as base domain (for exampl...
06

Approach for a multi step form

I have a multi step form using bootstrap and jQuery. The multi step form is for a user to buy a product. There are 4 steps: - Step 1 is for the use...
00

Does the user need to choose a plan after he become an invite to a team ?

I tested spark and tried to add Spark::useStripe()->noAdditionalTeams(); But nothing helps, the user must choose a plan when he becomes an invit...
00

Polymorphic relationship with custom pivot attributes

Hello, I have the following scenario which I cannot solve. Three Models are involved: Address, Company and Worker...
01

Call another controller method from controller and return route from it

Hey, is it possible to call another controller method and return a route directly in it? I have a check for date query string, if it's missing I re...
13

.inputrc key binding not working in php artisan tinker

I am currently using GIT Bash on windows 10 with custom key bindings in the etc/.inputrc file. This all works fine. However when I am working with...
00

Slow MySQL query with Laravel Eloquent

I'm using Laravel Eloquent and debuging why this query is taking so long: select count(*) as aggregate from custom_products whe...
10

$model->fresh() returning null in PHPUnit

I'm trying to get a fresh copy of a model, but the fresh() function is returning null. Has anyone come across this before? Code below:...
06

Help with dynamic string engine

Hi, I'm building a dynamic string engine where people can type normal text combined with predefined variables and conditions in javascript....
00

portfolio friendly project

Hey there, Noob question but really interested in figuring this out. I am going through the various tutorials and learning a lot about moder...
02

Always prepend table name in queries?

I'm already extending a few eloquent related classes, so I would have no trouble doing this as well, but it occurred to me it may be an option alre...
06