Data dodania Pytanie
2017-10-08 19:10 Why Job class is randomly cached? »
When the Job Class is dispatched via Laravel, it is randomly using old code of Job Class that is no longer exist. Everytime I dispatch it is random be...
(0) odpowiedzi
2017-10-08 16:10 Display Woocommerce notices with a shortcode on a page »
I have created a function to display some products with a shortcode, but the problem I am having is that the errors messages are not shown on that pag...
(1) odpowiedzi
2017-10-08 16:10 How to add a random string column to laravel migration »
I have a table called 'threads' in my laravel app, to which i want to add a new column named key with random strings of length 5. I ran the php artisa...
(3) odpowiedzi
2017-10-08 16:10 crud operation with datatables using codeigniter »
so here i got datatables serverside processing with codeigniter,and it's working,but,the problem is that i want to add some image that displayed from ...
(0) odpowiedzi
2017-10-08 09:10 Why we use ArrayAccess::offsetUnset(), instead we can use unset() in php? »
Why we use ArrayAccess::offsetUnset() instead i hope unset() is enough to use. But php.net stated that: Note: This method will not be called when ...
(1) odpowiedzi
2017-10-08 09:10 Laravel check csrf manually in controller »
I'm using Laravel 5.5. When I send POST request from laravel blade. Then everything is ok: $.post({ url: 'http://localhost/check', data: { ...
(0) odpowiedzi
2017-10-08 07:10 The offset parameter will be set to NULL if another value is not available what does it mean in php? »
I am learning to ArrayAccess interface for my final year project. I don't know when the offset parameter of the ArrayAccess::offsetSet() is set to NUL...
(2) odpowiedzi
2017-10-08 07:10 Error in wordpress php »
I'm using the ACF plugin in Wordpress to allow a client to upload images that will be used to as full screen background images on the homepage. I have...
(1) odpowiedzi
2017-10-07 19:10 Artisan Call in Loop »
I have a custom console command that needs to loop through some companies and make a database for each. The command works now, but only once. It does ...
(2) odpowiedzi
2017-10-07 18:10 This also violates Demeter's law? Or it would be an overkill to warp it? »
a very simple point: class Point { private $x, $y; public function __constructor($x, $y) { $this->x = $x; $this->y...
(3) odpowiedzi
2017-10-07 17:10 PHP How to append a query string to a URL before page load »
I have a page (in Wordpress) which contains an embedded database report form. The form is configured to filter the results based upon the query string...
(1) odpowiedzi
2017-10-07 15:10 The strategy to handle database connections: To 'close it immediately' or 'when script is over'? »
I'm to developing a back-end for a demanding application that may generate a really high traffic and processing load on the server. To deal with the d...
(1) odpowiedzi
2017-10-07 10:10 How can I get the lang inside my controller in laravel »
I am sending a post request to a controller with axios. The languge is set to fr and all blade texts are also changed to fr but if I send a post reque...
(1) odpowiedzi
2017-10-07 08:10 Facebook Login PHP SDK works locally but not on the server »
hi my facebook login works fine on my local server, i make the app live, update 'app domains' on the settings page and also the 'Valid OAuth redirect ...
(2) odpowiedzi
2017-10-07 08:10 Laravel Eloquent Runs two queries on update? »
I was curious to know, if laravel eloquent runs only one query on updating a row. So I tried the following Route::get('/cli', function(){ DB::enab...
(1) odpowiedzi
2017-10-07 04:10 PHP copy reference from array to array »
Codes: $a = array('email'=>'orange@test','topic'=>'welcome onboard','timestamp'=>'2017-10-6'); $b = array(); foreach($a as $v){ $b[] = ...
(4) odpowiedzi
2017-10-07 00:10 Laravel relationsip with one to one »
I have the following table structure users id email .... status //foreign key from tbl_status Now in my tbl_status id name descript...
(2) odpowiedzi
2017-10-06 22:10 Wordpress frontpage not displaying template's content »
I have this wordpress template created from scratch. However, the static front page is not pulling the template properly (I have already selected the ...
(1) odpowiedzi
2017-10-06 20:10 How to use postgres jsonb operator '?' in laravel 5 »
I'm trying to run a query with jsonb ? operator https://www.postgresql.org/docs/9.6/static/functions-json.html. In database console its ok, but i can...
(0) odpowiedzi
2017-10-06 19:10 Recursively remove .php .htaccess & Wordpress »
I've set up a Wordpress site. I need to recursively remove the .php extension on files in a specific folder. Say: www.domain.com/wordpresspage/ (set...
(1) odpowiedzi
2017-10-06 17:10 Predicting future IDs used before saving to the DB »
I am saving a complex dataset in Laravel 4.2 and I am looking for ways to improve this. $bits has several $bobs. A single $bob can be one of several ...
(1) odpowiedzi
2017-10-06 16:10 Laravel sort by descending or ascending with pagination »
I would like to perform a sort by ascending or descending together with pagination return \App\User:: paginate($request->per_page); how do i a...
(2) odpowiedzi
2017-10-06 15:10 Passing XML code to Get Repose from API using Coldfusion »
I had the following PHP code that posts XML data and retrieves the status as successful post or not. This code was sent by the company to test the api...
(0) odpowiedzi
2017-10-06 13:10 How does Laravel scheduler handles daylight saving time? »
Currently I'm scheduling jobs to be executed at 2AM ->dailyAt('02:00');. I'm wondering what will happen if: DST ends: will the jobs execute twic...
(2) odpowiedzi
2017-10-06 12:10 OOP PHP — How to selectively call a specific method defined in a class' constructor? »
I'm learning to code Wordpress Multisite the OOP way, and since I'm pretty new to OOP now I am in a situation that I can't seem to solve on my own. ...
(1) odpowiedzi
2017-10-06 12:10 Easiest way to get csrf token hash in codeigniter? »
Is there any helper way just like below function get_csrf() { $ci = &get_instance(); return $ci->security->get_csrf_token_name().'=...
(0) odpowiedzi
2017-10-06 12:10 Laravel 5.5 Unit testing controller method »
I am trying to setup a simple unit test for one my controller method. The goals is to test if the a view has an expected value. /** * Does the home...
(1) odpowiedzi
2017-10-06 11:10 Symfony service injection syntax »
I am working on a Symfony 2 app implemented by another company and came across the following service definition: service_id: class: 'path\to\clas...
(1) odpowiedzi
2017-10-06 05:10 Laravel how to keep selection option selected »
I am trying to edit the customer profile where I have a list of countries like this on the form. Whenever customer tries to edit profile, then country...
(2) odpowiedzi
2017-10-06 02:10 PHP SilverStripe ORM: Duplicate key value violates unique constraint for DataObject write »
I have a function on my website that saves a bunch of values quite quickly to the same DataObject type. Most of the time it's OK but occasionally I ge...
(2) odpowiedzi
2017-10-05 20:10 WooCommerce: Get name and variation from a Subscription order »
I want to display the name of the subscription product in the overview of my active subscriptions. At the moment, the page shows only the subscription...
(1) odpowiedzi
2017-10-05 16:10 PHP Hex to Integer »
I'm integrating a PHP application with an API that uses permissions in the form of 0x00000008, 0x20000000, etc. where each of these represents a given...
(2) odpowiedzi
2017-10-05 15:10 Wordpress: how to use get_categories »
I have a ajax call to a php file which uses get_categories(). But it always says "Call to undefined function get_categories()" How can I make it to wo...
(1) odpowiedzi
2017-10-05 14:10 Registration redirct on condition based in laravel »
How can I redirect to specific path after registration in Laravel?. I want to redirect page on id after registration. please help me. Thank You, in a...
(2) odpowiedzi
2017-10-05 13:10 Anonymous function in php is not working with laravel »
I've created an anonymous function inside my method, it is just returning an item if the deleted field is equal to 0. But the problem is it is still r...
(0) odpowiedzi