alihoushyaripour alihoushyaripour
1

How to use the separator between letters of a string?

Hi, I want to use , as separator to put it between price integer like this, convert first to second: 285500000 => 285,500,000 25000 => 25,...
AO-IO AO-IO
3

Creating a widget

Hello. I'm trying to create a small widget for currency prices. I want to do something like this in an iframe : <scri...
sehmbimanvir sehmbimanvir
3

Laravel Router Macro

Hi, I am facing a problem while making a call to Router Macro. I registered the Router Macro in RouteServiceProvider.php File under the boot method in followi...
WebDeveloper WebDeveloper
17

Laravel and DataGrids (jeffrey & other professionals)

Hi, I'm new to Laravel and I want to ask you about available DataGrids for Laravel, I'm using yii2 and I'm very happy with the built-in Datagrid widget that's come with yii...
General
17
519

Command bus pattern vs Repository Service Pattern

Hi, I would like on know the difference between the use command and bus pattern and repository service pattern. Which one is the best for highly scalable proj...
Lordbedwetter Lordbedwetter
18

Using nl2br(e) on Data from Database

I have been developing a small blog in order to hone my skills and to ultimately be able to provide some good information to the public, however, last night I ran into an i...
General
18
115
KHAN KHAN
14

File Validation - How to set a max file size?

Hi, I would like to have some sort of validation so the user can not upload more than a max file size. Ive already added this setting in Apache but i want something...
General
14
529
kiasaty kiasaty
14

Best way to export data in xml and csv format

Hi. I'm looking for the best way to let users export and download data in xml and csv formats. I have found maatwebsite package to export excel and csv file f...
General
14
107
davy_yg davy_yg
4

Style

I wonder if you can add a class component? for example: <div class="class_A"></div> // I define this over since I cannot find the cla...
ArneDB ArneDB
1

I don't fully understand how to test forms, type etc doesn't seem to be working

Hello there, I'm trying to write some tests for some forms on my application, but I run into the problem that I can't really access any input fields. First I...

Completely broken migrations

Hello, here is my story, after which I will ask resulting questions: I did my first migration after using artisan make:auth. Everything worked fine....
Crazylife Crazylife
3

How to get record in between range of quantity?

I have records as shown below id | min | max 1 5 15 2 15 null For example, my query $test = test::...
brayniverse brayniverse
999

Where are you all from?

I'm wondering how far Laravel's reach extends to. I hail from London myself....
General
999
4465
mstnorris mstnorris
0

Getting Dusk to run from the command line & PhpStorm

Has anyone got Dusk successfully working from both the command line and PhpStorm using a separate database whether thats a MySQL or SQLite DB? I would like to be abl...
ArneDB ArneDB
1

How do I properly rate-limit requests when following users

Hello there, I have this issue that's cracking my mind. I'm trying to rate-limit the request a user can make to follow a person to let's say once per 5 minutes so th...
MickBee MickBee
1

Database design book for web application?

Can anyone recommend a database design book? Cheers, Mick...
RoboRobok RoboRobok
4

Why does this website go back in time when I refresh it?

There is a huge gossip website that behaves very weird. Every time you refresh, it shows you a different state of comments, like different point of time. You see there are...
oliverbusk oliverbusk
4

Using multiple models in one shared blade template

Hi there OK, so consider below navigation, which is stored in a blade template: menu.blade.php: <ul class="nav flex-column...
packy packy
9

Minimum Job Size

I have been a freelancer for a few years now (around 6). Lately I have been doing bigger jobs, which is great, but when I quote some smaller local projects people get stick...
Msoft Msoft
8

Object Oriented Programming in PHP

Please give me good resources (I mean link or something) about the object oriented programming in PHP (Please don't give me answer as search google tell me you already expe...
General
8
109

Custom Sequence Number Generation for Order

Hello, I have planned a custom sequence number generation for Order Id using MYSQL stored procedures. Eg, Order id : ORD000001 Any other suggestion a...
General
7
321
donkfather donkfather
2

Api authorization

Hello, I want to build an api and give the user a client_id and client_secret to access the api and retrieve some resources machine to machine. How is it done nowada...
_siva_ _siva_
1

Unable to watch "Be Awesome in PHPStorm"

Hi, Even though the video is free, I'm unable to watch the series. I'm getting the following error. "Sorry Because of its privacy settings, this video ca...
Gabotronix Gabotronix
3

Issue editing remote files with winscp

Hi everybody, I downloaded winscp to access my first vps via sftp, I also set winscp's editor to visual studio since it's my favorite one! after this I tried editing an ngi...
teambian teambian
7

Find the last record based on a attribute of a table.

In laravel, I create a migration table named 'timelogs'. Assumed that, this table have three column id,userid,value. 'id' is primary key and have auto increment property ,...
General
7
589
Gabotronix Gabotronix
3

Can't use my own dns on local machine

Hi everybody, I edited my apache's vhosts and hosts file in order to use costadog.dev instead of localhost, problem is I'm getting an error page telling me about how my we...
Gabotronix Gabotronix
1

Help with ubuntu enviroment commands and general tips

Hi everybody, today I got my first VPS at DigitalOcean, this is my first time tinkering with ubuntu and so far I'm linking it but I'm still a noob, for example:...
fabricecw fabricecw
1

Status template class

Hey I try to implement a clean progress handling for orders. A order has many statuses and they can be completed via a button in the frontend or an API request. But...
rabol rabol
2

Homestead acting strange

Hi I have just made a new installation on my MBP of Vagrant and Homestead Mapped 3 folders and created 3 Sites did a index.php with only phpinfo(); code and a...
mvpop mvpop
23

edit() and destroy() functions not working on shared hosting

Hello folks, My problem is as follows: I have redesigning my personal website so now it's laravel based. On my machine it's all fine but once deployed to a sh...
General
23
217
keevitaja keevitaja
11

PhpStorm warning: Multiple definitions exists for class ...

I am getting warnings with Classes like Model, Controller https://dl.dropboxusercontent.com/u/606...
General
11
519
JohnBraun JohnBraun
1

Security and pentesting

I have recently attended a talk on common security pitfalls on websites. Therefore, I would like to know if and how you (pen)test your Laravel application....
mharkrollen mharkrollen
1

Laravel 5.5 event queue - 255 attempts and freeze, not moved to failed_jobs

After an error in the code or an invalid email error returned by Mailgun . The mail queue job attempts would reach to 255 and the whole queue system gets stuck. I am expec...
jtroump jtroump
1

A suitable project for object-oriented PHP

Hello everyone, I am new to OOP in general. I am finishing the Object-Oriented PHP course and I would like to create a project and implement ALL concepts described i...
carpfede carpfede
7

Error migrations: Cannot declare class X, because the name is already in use

Hi, I do not know why this error jumps when I execute the migrations but I do not have repeated classes. migrations:...
Create a New Discussion Button