Data dodania Pytanie
2017-08-13 21:08 Sub request in Laravel 5 »
I'm looking to do sub requests in my API, to other parts of my API. I have done this before in Symfony - but I'm not sure how to achieve this in Larav...
(0) odpowiedzi
2017-08-13 19:08 Laravel Post with Postman »
I'm building on Laravel 5.4 and trying to make a post request with postman, I have added the csrf token and just passing something as id. I'm still ge...
(0) odpowiedzi
2017-08-13 18:08 Empty message from facebook messenger bot »
I followed the guide to build a facebook messenger bot from here but in my software I receive alway an empty response. here my bot code: defi...
(1) odpowiedzi
2017-08-13 17:08 Overriding the way Twig finds the views? »
I'm new to Symfony, and so far I just love it! Right now, I'm playing around with different personal hobby projects and I've come across something I ...
(1) odpowiedzi
2017-08-13 11:08 Change Flat Rate shipping cost based on attribute values count in WooCommerce »
I'm trying to specify 2 different Flat rates shipping methods costs without using a plugin: If there is a product in the cart from only one Vendor, ...
(1) odpowiedzi
2017-08-13 11:08 Laravel, how to find duplicated value between 2 arrays with different keys? »
I have 3 arrays, how do I return 'true' if the 2 array have the exact same value? In this case, $array1 and $array2 is true meanwhile $array1 and $arr...
(6) odpowiedzi
2017-08-13 08:08 poedit esc_html_e - new translation »
I have got file abc.php. There was already a text there. In the languages ​​file I have a file .pot and .po. In .po I translated some text from ab...
(1) odpowiedzi
2017-08-13 07:08 sort a Laravel collection on the behalf of four conditions »
i have a comanies table like this in mysql.it has 3 columns. is_verified,is_platinum,platinum_start_date, end_date. on the frontend, the data is sho...
(1) odpowiedzi
2017-08-13 04:08 CSRF Codeigniter 3 Validation »
I've been reading about the crsf protection in codeigniter, but I can't seem to find a decent tutorial on how to proceed after enabling csrf in the co...
(1) odpowiedzi
2017-08-13 02:08 Why does the PHP parser understand "$x++-++$x", but fail on "$x+++++$x"? »
I have an engine that does some mathematical and logical operations by taking formulas, operands and operators from a file. All the operations are exe...
(3) odpowiedzi
2017-08-13 01:08 INSERT from a SELECT making a column pair unique »
I have a table (simplified for example here): CREATE TABLE msg ( msg_id VARCHAR(30) NOT NULL, user_id BIGINT NOT NULL, message TEXT, ...
(3) odpowiedzi
2017-08-12 22:08 Convert array of values into a single float value in PHP? »
I have an array with these values (when the array is printed with print_r(); Array: [0] => 66 [1] => 233 [2] => 204 [3] => 205 The val...
(4) odpowiedzi
2017-08-12 18:08 Laravel: Database - More "log collumn" »
I want to add some other columns next to the created_at and updated_at columns, for example: deleted_at creator updater deleter The last three sho...
(1) odpowiedzi
2017-08-12 16:08 How to reduce the number of database connections in tests in PHPUnit and ZF3? »
I'm writing integration/database tests for a Zend Framework 3 application by using zendframework/zend-test 3.1.0, phpunit/phpunit 6.2.2, and phpunit...
(0) odpowiedzi
2017-08-12 16:08 Are Objects In Memory Removed After They Are Used? »
I am having trouble wrapping my head around some object oriented programming concepts(I come from JavaScript land). I am writing a Wordpress plugin, a...
(1) odpowiedzi
2017-08-12 15:08 How to pass name of an input through GET request in PHP »
I am building a website CMS in PHP OOP and in this CMS, basically there's an option for admins of a site to update their navigation menu items. So it ...
(1) odpowiedzi
2017-08-12 14:08 Shuffle array after 3rd element in foreach ? PHP »
I need shuffle $items after 3rd element. Result should be : 1 2 3 6 7 9 8 5 4 My is Code: <?php $items= range(1, 10); shuffle($items); fore...
(2) odpowiedzi
2017-08-12 11:08 Woocommerce Widget Product order by title »
My initial goal is to be able to display Woocommerce Products in the sidebar, sorted by Title. Currently the only sorting options in this widget are D...
(1) odpowiedzi
2017-08-12 11:08 WordPress: One-page scroll JQuery script not working? »
Trying to create a simple one page scroll. In WordPress, I have navigation a tags like this. <a href="#contact">Contact</a> <a href="...
(3) odpowiedzi
2017-08-12 10:08 How to access object in php when the identifier starts with a @ symbol? »
I have a json object that looks like this: {#119130 ▼ +"@id": "1EBEF5DA" +"@name": "The" +"@renewal": "xxxxx" +"@languages": "Eng" } How...
(3) odpowiedzi
2017-08-12 02:08 The “state” param from the URL and session do not match when leaving browser open too long »
Im getting this error when leaving my browser window open for an extended amount of time say 3 hours , then trying to log in to my site through Facebo...
(2) odpowiedzi
2017-08-11 19:08 502 Bad Gateway Nginx after server restore »
So I've got a Ubuntu server that I'm trying to restore from a backup. And when a dummy PHP version page I get 502 Bad Gateway. What have I tried to fi...
(2) odpowiedzi
2017-08-11 17:08 Purge the database data with Pomm »
Doctrine provides a simple way to purge a whole database keeping the schema $purger = new ORMPurger($this->getEntityManager()); $purger->purge(...
(1) odpowiedzi
2017-08-11 13:08 Why is Auth::check() returning false here? »
I wanted to customize the 404 error page , so I made a 404.blade.php view and it works fine, however my view has a navbar and some @if statements whic...
(1) odpowiedzi
2017-08-11 11:08 Dynamic Cascading Dropdown using AJAX »
Objective: Based on the example found here. Populating dependent drop-downs with the data parsed in the getData() function using ajax calls. Currentl...
(1) odpowiedzi
2017-08-11 10:08 Laravel. I can't show data from relation »
i have strange problem. dd(), It shows me that I got to the data, but i cant display single record from table. I want to get to the name of my role b...
(2) odpowiedzi
2017-08-11 10:08 Mysql How to join 2 tables and 1 table itself »
I have a table name tbl_user this table contain db_uid db_fname db_lname db_responsibleid db_email 1 xxx yyy 0 ...
(2) odpowiedzi
2017-08-11 08:08 Get commentable class attributes using Baum in Laravel »
I am using Laravel Commentable that uses Baum Post Model class Post extends Model { use Commentable; .... My user model name is User Comment ...
(1) odpowiedzi
2017-08-11 08:08 Recover original data saved as "???????" from mysql database »
While saving the information to the database field the settings were as follows: character set: latin1 collation: latin1_swedish_ci Once the users ...
(3) odpowiedzi
2017-08-11 07:08 Woocommerce update price from external source »
I have issue with updating of product price from external database. I need to check price of product in every access to this position. For that I use ...
(2) odpowiedzi
2017-08-11 04:08 Export CSV using Laravel via Ajax »
I have a export csv function, it worked fine with laravel. But now I want to call export function via ajax and use method post, but I there is no resp...
(2) odpowiedzi
2017-08-10 19:08 How to capture characters after last pattern occurrence with regex? »
I am currently matching the last occurance of pattern using this: __(?:.(?!__+))+$ where the pattern is "__" However, I need to match the characte...
(2) odpowiedzi
2017-08-10 18:08 Laravel 5.4 fopen(): Filename cannot be empty »
I want to upload image in laravel 5.4 Here's the code: if ($request->hasFile('image') && $request->image->isValid()) { $imag...
(0) odpowiedzi
2017-08-10 17:08 Laravel Eloquent increment a column based on a relation »
I currently have a table of image links associate with another model as follows +----+-------------+----------------+ | id | property_id | url ...
(1) odpowiedzi
2017-08-10 16:08 Symfony form required only on custom validator fields »
I am struggling to find a way to make required only those fields, who have my own custom validator attached. Is there any way to achieve this? /** ...
(1) odpowiedzi