Data dodania Pytanie
2017-02-12 13:02 How to make a map from array of object? »
Each object has a 'id' property, and I want to make a 'id' => object map. This is easy via Guava in java world. How to do it in PHP easily? e.g. func...
(1) odpowiedzi
2017-02-12 12:02 view cannot access variable defined in controller in laravel »
I could not think how to write question for this problem. So this is my problem. I have two views store-side-menu.blade.php <a href="javascript...
(1) odpowiedzi
2017-02-12 01:02 Images are not uploaded to specifically created folder in WordPress »
I tried to create a folder to store all my images but it will not upload on its specific upload folder inside my installed theme. Here is my code: i...
(0) odpowiedzi
2017-02-12 01:02 Is there any better way to do sorting option? »
So, I'm trying to make option that will sort results from database. I found a way to do this, but I'm not sure it's best. if(!isset($_GET['sort']) ||...
(1) odpowiedzi
2017-02-12 00:02 Search mysql with wildcard and put results into php array »
Say I have appearances of this is the RED color, this is the BLUE color, this is WHATEVER color as parts of the different sentences they belong to, in...
(2) odpowiedzi
2017-02-11 23:02 Adding a custom field to BACS account fields without overriding core files »
I have this situation - I made a changes in one of the woocommerce email templates, but I`m sure - these changes will be lost after next woocommerce u...
(1) odpowiedzi
2017-02-11 20:02 CSRF: What are the Practices? »
First off - let me say I considered posting this in the Security StackExchange but after searching it seems they're for more generic IS questions as o...
(0) odpowiedzi
2017-02-11 18:02 Auth::user() returns null Laravel 5.1 oauth 2.0 »
I know this may seem duplicated. I have already checked these threads: https://laracasts.com/discuss/channels/laravel/authuser-returns-null-in-larav...
(1) odpowiedzi
2017-02-11 17:02 Reorder array keys recursively -- array_slice slow? »
I wrote a method to reorder all numeric keys on an array. You can see in code below that i have an array with unsorted keys. This keys (f.e. 200, 2) ...
(0) odpowiedzi
2017-02-11 17:02 Saving a field inside database table using eloquent laravel - Userfrosting »
This is a sample code inside some controller I have: $arr = json_decode($post['arr_json']); for ($i = 0; $i < count($arr); $i++) { $port = Po...
(1) odpowiedzi
2017-02-11 15:02 Laravel 5.4 redirection to custom url after login »
I am using Laravel Framework 5.4.10, and I am using the regular authentication that php artisan make:auth provides. I want to protect the entire a...
(1) odpowiedzi
2017-02-11 14:02 Laravel 5.4 - Create user »
i'm integreting Facebook login in my web app, but i get this error: ErrorException in SessionGuard.php line 407: Argument 1 passed to Illuminate...
(2) odpowiedzi
2017-02-11 13:02 Automatically enable virtual and downloadable product settings »
With WooCommerce, I'm using a vendor plugin which allows people to upload their own products. However I would only like them to upload virtual and do...
(1) odpowiedzi
2017-02-11 13:02 Wordpress: Order posts by user meta »
Is it possible to order custom type posts by user meta? In my custom type posts list, I am showing user name and user phone. I have user id as meta of...
(1) odpowiedzi
2017-02-11 11:02 Unable to file_get_contents or cURL via HTTPS »
I have been using file_get_contents to grab the contents of a site for years. Recently, they updated their URL to HTTPS and file_get_contents stopped...
(5) odpowiedzi
2017-02-11 08:02 How can I connect to multiple databases in laravel for the same query? »
I want to execute a raw query which is related to all databases in laravel. So I don't want to point to a specific database. How can I do that in lara...
(2) odpowiedzi
2017-02-11 05:02 Is this how a PHP MVC Router class works? »
Introduction I want to know if this little bit of code is how PHP MVC-ish frameworks (Zend x, Laravel, Symfony x, CodeIgnighter, CakePHP, Yii, Slim, ...
(6) odpowiedzi
2017-02-10 18:02 Pass the chosen product variations data into Contact Form 7 enquiry form »
With WooCommerce, I use Contact Form 7 and Product Info Request plugins to add a form inside a single product pages, because I need a functionality th...
(1) odpowiedzi
2017-02-10 18:02 MethodNotAllowedHttpException not found when I paginate in Laravel »
Hello this is my first question here. I am using php laravel framework and I am getting this error MethodNotAllowedHttpException in RouteCollection....
(2) odpowiedzi
2017-02-10 16:02 Merging 2 associative arrays into 1 »
I'm having trouble merging my arrays and not sure what I'm doing wrong. Consider the following code: $array1 = [ [ 'job' => '123', 'who' =>...
(4) odpowiedzi
2017-02-10 13:02 Difference between Request (Facade) and Illuminate\Http\Request »
I'm starting to use Laravel and I would like to know how I should choose one over the other. As of version 5.0 Laravel documentation changed request...
(2) odpowiedzi
2017-02-10 12:02 Adding custom text labels to the prices when products are on sale »
On WooCommerce product single pages, if a product owns a sales price, the normal price is crossed out and behind it, the sale price is highlighted. ...
(2) odpowiedzi
2017-02-10 12:02 Facebook Open graph API showing extra information »
When I share my website on facebook, I got the information I set in my site as follow. <meta name="keywords" content="ICCOTP, COTP" /> <meta...
(1) odpowiedzi
2017-02-10 12:02 How to use session and redirect with facebook og properties »
I would like to share a page with image on facebook. I used below code and it is working perfectly fine for static images. <html xmlns="http://www...
(1) odpowiedzi
2017-02-10 10:02 Counting Empty Columns in Rows »
I have a property table and it has six columns. Users upload photo and image name is stored in the column. Now I want to count the number of columns ...
(3) odpowiedzi
2017-02-10 10:02 What is the best practice for adding constants in laravel? (Long List) »
I am rather new to laravel. I have a basic question, What is the best way to add constants in laravel. I know the .env method that we use to add the ...
(2) odpowiedzi
2017-02-10 10:02 TinyMCE disappears after save Widget in Wordpress »
first of all, sorry for my bad english, I'm from Germany. I just created my first widget. It's a widget that creates automatically a grid out of a l...
(0) odpowiedzi
2017-02-09 23:02 Laravel 5 error SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) »
Sometimes (about every 20 request) I get this error. But the next (next second), the same request, is fine. I dont know why it failed the first one. S...
(1) odpowiedzi
2017-02-09 23:02 Arrange/distribute array items uniformly »
I have a multidimensional associative array with a type property. It looks like this: $data = array( array( "name" => "SomeName", "type" => "...
(8) odpowiedzi
2017-02-09 22:02 comparing session variable in where clause in mysql select query »
Hye developers, please sort me out, I have two php files, in the first file (login.php) I declared a session variable $_SESSION['email']; and assigned...
(3) odpowiedzi
2017-02-09 14:02 I am passing variable $input from controller to view in laravel and it shows an error undefined variable $input in View »
I am passing variable $input from controller to view in laravel 5.0 and it shows an error undefined variable $input in View. Can anyone suggest someth...
(3) odpowiedzi
2017-02-09 14:02 Extracting Site data through Web Crawler outputs error due to mis-match of Array Index »
I been trying to extract site table text along with its link from the given table to (which is in site1.com) to my php page using a web crawler. Bu...
(2) odpowiedzi
2017-02-09 12:02 Adding a discount by cart items conditionally based on the item quantity »
I have set up a Woocommerce shop and wish to set up a specific discount on all products based on multiples of 12 (a box). I've tried many discount plu...
(1) odpowiedzi
2017-02-09 11:02 Laravel queues not working »
I am using laravel queues for commenting on the facebook post. When ever i recieve data from facebook webhook, based on the recieved details i am comm...
(2) odpowiedzi
2017-02-09 10:02 3 Levels of Authentication / Middleware Laravel »
Scenario Im building an application that offers 3 levels of paid services but im not sure how to go about coding the 3 level functionality. So for e...
(1) odpowiedzi