Error on click of submit button in form

I get the following error when I click on the submit button of my form (1/1) FatalThrowableError Call to a member function prepare() on null...
03

Shift time calculation based on given times

$nightStart = '22:00'; $nightEnd = '07:00'; $workers = array( '0' => array( 'name' => 'Lyons', 'start' => '1...
01

XML/DOM Eating My Characters and I don't Understand Why

I'm using the PHP DOM Document Parser Object, and I'm importing a Wikipedia XML template. For hours I was using substr() and my answers were coming...
00

Laravel 5.5 layout.app not found

Help me to solve this issue. C:\xampp\htdocs\cm2\vendor\laravel\framework\src\Illuminate\View\FileViewFinder.php /** * Find the given view in the l...
06

Need some advice on what's best solution to implement Import Class for all Models

I want to create a Import class which provides functionality which i can use in all of my controllers. I came up with some ideas, but I have...
03

Creating a summary table with error

I'm collecting yearly statistic from a daily data table. The daily table structure as below: Date | Product | Value ---- | ------- | ----- 2...
02

Model Factory: Referencing a foreign key

How would I reference a 'foreign key' on another table, eg. have the 'user_id' field on the Post factory use the 'id' field on the User table?...
11

Append html with laravel data after ajax success

I have this div: @foreach($bids as $b) <div class="bids notice notice-lg"> &...
15

Image Validation Error

Hello , I'm new to Laravel , and I created a form with an Image to be saved , I've created a Request to validate the Image type but the Issue is wh...
04

Relationship User->Service->Bill

Hello, im trying to list only the Bills of the user logged in. I have on the database (oneToMany) User hasMany Services(users_id-FK) Services hasMa...
06

A library to build command line applications using PHP

Hello, I know that there is Symfony/Console library to make command line apps, and it's the one used to build Artisan commands. I have a goo...
00

What happen when you don't put parenthesis '()' when calling a function from the other class?

I'm new Laravel and also new to PHP. I have a role function in User model (eloquent stuff) and when using...
02

Request to review a package

Hi, I just published an exceptional package, [the first piece I published among lots of draft and under-development code pieces] I was wonde...
01

Laravel not throwing error saving

Hi, im developing my first project, and when i try to save a service it does not save. It just refresh the create page. Create View...
17

What's wrong here?

This condition in one row is not working properly : $model = ($request->segment(2) == "....") ? //a model : ($re...
05

Ajax request Laravel 5.5

Hello everyone. I have a simple question, I am trying to send ajax request, but I receive empty response. here is my code <...
03