shadrix shadrix
2

How to avoid Interface Segregation in my case? (SOLID)

Hey hey :) I'm trying to use the SOLID-principles, however, I have a problem with Type-Hinting. First, have a look at my code, but it is important to note: $a...
Tips
2
71
Gabotronix Gabotronix
0

Error when running envoy task, server [ server_name] is not defined

Hi everybody, I'm trying to use laravel envoy task runner to deploy an app with just a command, however when I execute envoy run deploy I het the following error message in...
mihirpatel83 mihirpatel83
4

JSON Field order changes while saving

I am using a json Field to store multiple values of a dropdown. The array is like ["Male"=>"Male","Female"=>"Female",&q...

How can i use multi replaces in Query without having relations set

Im quit new to laravel. Currently i'm putting over my wordpress website to my laravel. Hereby i got some difficulties with doing some replacements. I have to replace 150 me...
Laravel
3
108
andreixfr andreixfr
8

How to get data from database?

I want to get data from database. I need table "role_users" with column "role_id". Here is my view : @foreach($contact_users as $c...
Laravel
8
210
dpaanlka dpaanlka
2

Database Sessions Pruning

Hi frens! First post here, I'm sure I'll have many more. Are sessions stored in the database pruned out after the session has expired? Thanks!...
afghany afghany
6

My component not rendering some elements

my span element not rending in the page <span class="counter" v-text="record.issues.length"></span> this i...
Vue
6
93
adamjmi adamjmi
2

Laravel Horizon only work the queue between certain hours

I'm building a site that requires the queue to be worked between 8am-8pm only as we do not want communications sent during any other time. My initial thoughts are to...
murilo murilo
1

desabilitate foreign key and DROP ALL TABLES IN POSTGREE

Hello guys , I have this comman that I use in Laravel , that desabilitate foreign key , and delete . DB::statement('SET FOREIGN_KEY_CHECKS=0;');...
ryanhalley ryanhalley
5

How to access all of chunked model collections within my action

I have a 'print badges' action, which I am using to acquire all of the selected user resource ids which I then attach to the query string of a redirect to a domPDF script -...
Nova
5
73
me10071990 me10071990
21

How can show only my old post?

I have number of post in my view and want to display only old post in my home page? Thank you. :)...
Laravel
21
261
SamuriHost SamuriHost
1

Forge Admin Method

Just wondering how the backend of Forge works. I understand Forge is built ontop of Laravel but how are new servers created and configured. Are Chef recipies, and AMI's use...
Forge
1
45

scripts not running

Why are my scripts not running when I put them in resources/js/app.js? I'm using quill wysiwyg, I already imported the required files in bootstrap.js but I'm gettin...
theUnforgiven theUnforgiven
1

Each VueJS Help

I have a bunch of checkboxes then a change method in Vue as follows: groupSelected(index, item) { let groupDocs = this.groupDoc;...
Vue
1
68
PetroGromovo PetroGromovo
3

Why Installing Laravel 5.7 on ubuntu I have fork failed - Cannot allocate memory in error

Hello, Installing Laravel 5.7 app with LEMP on ubunutu 16 under AWS I got allocate memory error : $ composer install Cannot create cache directory /home/ubu...
General
3
116

Using Laravel to display movie collection DB w filters?

Hi All, Front-end developer here looking to make a database challenge for myself: I'm thinking of creating a database of my disc-based movie/tv collection (I...
Laravel
11
321
raviawasti raviawasti
5

Uncaught ReferenceError: require is not defined in vuejs laravel

i am using laravel 5.6 , i had installed nodejs, npm and vuejs while using this on app.js window.Vue = require('vue'); i got this error in web console...
Vue
5
82
laravel007 laravel007
4

Email validation in API.

Hello I am developing API where user need to verify email's ownership. But when I put the endpoint in api.php file that need access token in every reque...
surreal surreal
1

Empty session(s) after (external) redirect?

Hi guys, currently I'm writing a silentauth SSO-check. 1st - Writing Session: session()->put('redirecturl',$_SERVER['REQUEST_URI']) 2nd - Redirect to extern...
Ado666 Ado666
0

laravel-snappy PDF save loadView command not working

Hello, I have a strange situation where the command is shown but not executed. I have the following: Debian 7 Laravel 5.3 config/app.php 'PDF' =...
movepixels movepixels
2

Exception Handling

I have a destroy function as an example like this: public function destroy(Profile $profile, Schedule $schedule) { try { $record = $profile-&...
VladimirC VladimirC
5

Problem with authentification

I have a User model defined inside App folder. But when i want to register a user i receive the following message: Symfony \ Component \ Debug \ Exception \ FatalThr...
KarthickZaigo KarthickZaigo
2

whereNotIn & where methods not working when combined

Eloquent query not working when I use both whereNotIn & where methods on single query....
RFFRED RFFRED
1

load translations in custom module

Hi, Using laravel 5.8 I am trying to load translations in a module I am making, but I am getting no luck. Really annoying... I must be missing something but I...
Davewatt Davewatt
1

Progressive web apps

Hey Jeff, love your work. Are you planning to do any videos on progressive web app concepts? Something that has been peeking my interest lately but all the YouTube videos o...
dippy dippy
2

Best practice to implement code revision

What is the best practice to update a laravel project after initial deployment to production environment. My development server is Windows but staging/production is on Linu...
Amalmax Amalmax
9

Good bye 2016 and welcome 2017 to Laravel

Hi, hope to good bye 2016 and welcome 2017 to Laravel developers and Laracast users. hope to best wishers and new innovative ideas from world wide. Thanks!....
General
9
137
littleboby littleboby
10

Illuminate\Database\QueryException : SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails

Creating an application where people create events or 'meetups'. I created my factories: 2019_06_20162119_create_groups_table, (different meetup categories) 201906...
Eloquent
10
172
rob_utopano rob_utopano
2

Login over URL

Hey guys, I have the following situation: A third party application creates an account over API My website returns the newly created user with...
mostafalaravel mostafalaravel
1

how to document my work

Hello As you can see from the title , I would like to know How to document my Laravel project and what this documentation should have, tools , steps ... If th...
Ashraam Ashraam
2

Authorization and mysql query

Hi everyone, I'm not sure where to post this, I've got no problems but I'd wonder if I could optimize my code, so here is the thing. I've got a model called '...
itinerix itinerix
1

Unlimited subdomain app with CloudFlare, SSL, load balancer, Forge

Hi all, I have an app "myapp.com" with customers in subdomains such as "ABC.myapp.com", "XYZ.myapp.com", etc. So "ABC" or &qu...
johnpatel johnpatel
3

Does anyone know where I can get JavaScript code for Grade Calculator?

Hey guys, I am finding a JavaScript code to make Grade Calculator. Please help me to find it. Thanks in advance....
rob_utopano rob_utopano
1

Return JSON-Response if call was from API otherwise show view

Hey guys, My application have a API and Web-Frontend. If the user calls the logout-method from API my method should return a JSON response, if the logout-request com...
vinubangs vinubangs
8

create zip for multiple files by chumper/zipper Package

I have a table, that have some records with file name and that file save in a folder. Now I want to create zip file of selected file. I used chumper/zipper Package....
Laravel
8
137
Create a New Discussion Button