PHPUnit will not use :memory: database

Ok so I'm definitely taking crazy pills, I just can't figure out which ones. No matter what I do, I cannot get PHPUnit to use the in-memory database. I've tried:...
pickab00 pickab00
1

Need some help with restaurant menu management system

So the idea is pretty basic but I am not sure how it is done or how I should continue with it. Basically I am using laravel as my backend system and I wanted to allow the r...
robsat91 robsat91
1

How to completely remove a site from Valet

Hello! I'm using Valet on my macOS Mojave. My parked direction is ~/code. The Valet deamon is running perfectly. I run "laravel new project". Then I go to...
timgavin timgavin
0

Help with booking system timezone offsets

A client ordered a booking system: they wanted a seven day schedule (Mon-Sun) that would allow for people to book an hour on each day. This system is global, so it's based...

Job never ends and keeps queue worker pinned at 100% CPU even though last line of handle() is reached

My application has several jobs to process uploaded CSV files. These files can be pretty big, so they are handled on a queue worker. All my jobs work fine, except for one,...
eternalchaos520 eternalchaos520
12

htmlspecialchars() expects parameter 1 to be string, array given

Hi Community, when I tried to cast sc_cp, sc_material, sc_grade to array in model. Store method is work perfectly by storing the data into database and the fi...

MethodNotAllowedHttpException with Laravel5.4 when uploading files bigger than 1MB online, but it works perfectly on localhost

I'm using Laravel 5.4 for my website, and I'm getting a problem when the user tries to upload files bigger than 1MB. This problem doesn't appear on localhost. The error I g...

Create URL's from UI

Hello guys, I want to create an URL shortener but I don't really know how to generate new routes from an UI. Any suggestion or article I can read?...
MarlonV MarlonV
6

check-in / check-out system

Hello Guys, I need some advice. I have a table with children. This contains a column with barcode. Think of it as an check-in checkout system, where only the barcod...
MarlonV MarlonV
1

Guidance

Hey guys, I'am stuck with my app setup. I'am building a app for a non-profit organisation. In a nutshell: Users add their kids, and kids can go to a event....

PHP How to read code TDD

Hello I do not understand how to use the "laracastsdocs.test" in the browser. I have a dev server on my network and I am able to use "php artisan serve --hos...
theUnforgiven theUnforgiven
10

Arrays, saving multiple

I have the following, and I want to save then as individual rows as they will be related to a block array:5 [▼ "name_of_blocks" => array:4 [...
Robie69 Robie69
9

Auto Send Email

I'm working on auto sending an email in Laravel 5.4 I've created the desired email template, and tested that it works properly. Now I need to make it auto sen...
midwestdev midwestdev
6

Undefined property: stdClass: (error happens, though one result is dumped)

Basic script loops through array, works perfect when more than one result. But if there is one result, it gives me Undefined property: stdClass: @fo...
PoncetheLion PoncetheLion
4

PHPUnit MySQL in memory test with point and polygon column

I have a migration for a table as following: use Illuminate\Support\Facades\Schema; use Grimzy\LaravelMysqlSpatial\Schema\Blueprint; //use this as b...
EMfinanga EMfinanga
6

ROLES AND PERMISSION PACKAGE IN LARAVEL

i need assistance to install spatie role and permission in my laravel project kindly can someone assist me on this in case you need a TeamViewer emma4082...

Upload an image using modal

Hi, I want to upload an image using modal. I know how to to that using an HTML form, but I am not sure how to use an ajax request to send data to the controller. Thanks in...

Cannot apply css to blades

I have the following html elements and I want to change its layout, but cannot make it work. Did I link the css file right? What am I doing wrong? Thanks in advance!...

Relationships for Roster

I am looking to make a roster on my laravel app. I am currently not sure how I should approach in designing the database relationships to store the data. The way the...
AeroSphynx AeroSphynx
2

Task scheduling twice a month

Hi guys. How can I schedule a command to run every 15th and end of the month? (29, 30 or 31) using now()->endOfMonth Thank you so much for your help....

Output to same view from different controllers

Hi, is it possible to output to the same view from multiple controllers. I have one view called 'dashboard'. I have two variables there $users and $friends. I want to send...
hasandev hasandev
2

PHP Pinterest integration.

Hello I am planning to make a autopost system in Pinterest. So, my plan is to use it for personally use only. Is there any good package that I can use in PHP project...

Database Query Syntax

Hi, I have two tables users(id, username, city, country) and friends(id, user_id, friend_id, status). The 'users' table stores the user information and 'friends' table stor...

Show link based on query result

Hi, I want to show a link if there are results from query. I get an error when the table is empty. Thanks in advance! The html: ... <div class=&quo...

Use input from one view to print result into another view

I want to use input from a form in one view and print results into another view. I get the following error: Undefined variable: users Thanks in advance! The form (in...
learn-by-flying learn-by-flying
2

Two tables from one Controller

Hello everyone, I am brand new to laravel and frameworks in general and have hit a wall in my googlefu and need some assistance with the following. Background: I am...

Show results of query in bootstrap modal

I want to show a list of query result inside a modal. Thanks in advance! I have tried to modify my current modal to show the list but I am getting an undefined varia...

Script works in console but not in original code

$('#edit-post').modal('hide'); works in console, but doesn't work in the script file. I also don't see the new information unless I refresh the page. Thanks in...
28harishkumar 28harishkumar
11

Blog application in Laravel 5 Tutorials

I have created tutorials on a very simple blog application in laravel 5. I am sharing it here for newbies in laravel...

Output from model controller to html

Hi, can someone please tell me how to output from controller to html form. I want to change the label of an anchor from "Like" to "Liked" if the user ha...
zaster zaster
22

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists

I am getting the below mentioned error when i run php artisan migrate SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists...
Assistance
22
14231

[Solved] Cannot read html element data attribute

Hi, I am trying to read the postid attribute of the following article, but it is always null. I can print the content of the post without any problem. Thanks in advance!...
anatomic anatomic
1

Setting up - cURL error 7: cabinet.laravel.com Connection timed out?

Hi I have this problem and I can find nothing that helps. If I type, "laravel new test-site" it hangs for a few minutes on "Crafting applicatio...
connecteev connecteev
4

Envoy for local build script?

Can Envoy be used for a local build script instead of a remote server deploy script? ANy examples? I haven't been able to get this to work for some reason or another....var...
Create a New Discussion Button