Data dodania Pytanie
2017-06-11 17:06 Destroy all sessions from specific User »
I'm using Codeigniter 3 for my application and for higher security I want to provide the Users an option to destroy all his sessions. Why? Because th...
(1) odpowiedzi
2017-06-11 13:06 Convert string shortcodes to array without wordpress function »
I have a string containing multiple shortcodes like this: // string contain multi shortcode $string = '[code_1] [code_2 attr_2="test2"]Here2[/code_2]...
(1) odpowiedzi
2017-06-11 12:06 Laravel 5 View need to be get functioned properly »
I`m new to the laravel 5.4.so that i need to get fixed this problem. i`m working on attendance management system for my company.for the purpose of fi...
(1) odpowiedzi
2017-06-11 11:06 Maatwebsite Excel for Laravel »
I have done the same thing before, however faced with an error on this code: Excel::create('churros_contact', function($excel){ $excel->sh...
(1) odpowiedzi
2017-06-11 11:06 Laravel 5 Undefined variable in view error »
I am new to laravel 5.4. I am not able to find a solution to this problem anywhere. what I am returning $items filtered it gives me an error. Contro...
(2) odpowiedzi
2017-06-11 09:06 wordpress Contact form 7 validation not aligning to respective input »
I have the plugin "contact form 7" on my Wordpress site and I got stuck on how to align the validation messages properly. this is the response when e...
(1) odpowiedzi
2017-06-11 08:06 find the first occurrence of non-alphanumeric character in a string »
I know that i could use strpos to find the first occurrence of a string. But is it possible to find the first occurrence of a character that is not an...
(1) odpowiedzi
2017-06-11 08:06 Social Network post preview widget in Laravel app »
I made sourcing tool for my Online Assessment/ATS platform. That tool can schedule posts on varius job boards and social networks. I'm trying to add ...
(0) odpowiedzi
2017-06-11 02:06 How to correctly place PHP echo inside html span tags »
I've got the following function: <?php function my_custom_address ( $formats ) { $formats = array( 'default' => '<span class="...
(1) odpowiedzi
2017-06-10 20:06 How to remove duplicate in array »
i want to show bandwith usage permonth, and there are 2 users who both logged in on june here is my code : <?php foreach ($data as $row): ...
(1) odpowiedzi
2017-06-10 20:06 Hook for custom price in Woocommerce order »
I am currently developing a webshop where i needed to do a separate price function. So far, with the help of woocommerce hooks, i had managed to manip...
(1) odpowiedzi
2017-06-10 18:06 Make a negative lookahead case-insensitive »
I have the following expression: $exp = "/^(?!.*?that).*$/"; which is meant to match any line that does not contain "that". I have the following t...
(2) odpowiedzi
2017-06-10 18:06 Where are the date entries in the database - WooCommerce events manager by CybersourcePK »
I'm unable to find where the event's dates are published on the WordPress database side. (event_date, event_end_date). The only record for the product...
(1) odpowiedzi
2017-06-10 12:06 PHP facebook sdk - not redirecting back after login on localhost »
I'm implementing a login button where I retrieve user's data like name and email. The main issue that seems to be happening is that I get an object no...
(0) odpowiedzi
2017-06-10 12:06 Refactor switch statement to polymorphic code »
I would like to remove switch statementm but I don't really know how. /** * @return TreeGenerable */ public function chooseGenerationStrategy() { ...
(1) odpowiedzi
2017-06-10 11:06 Array data issue Laravel »
I have an array issue in here and I'm spending a lot of time with. I get a list of array like this form array:4 [ 0 => array:20 [▼ "id" =>...
(2) odpowiedzi
2017-06-10 02:06 Arrays not matching with strict comparison »
$c1 = $v1 = array(); $v1['key'] = 'value'; echo '$c1 === $v1: ' . (($c1 === $v1) ? 'true' : 'false'); // prints false $c1 === $v1 is false. But why?...
(3) odpowiedzi
2017-06-09 19:06 What is the way with PHP to sanitize user input for SQL DDL statement? »
I need to update a user's password from PHP, this is accomplished through an ALTER USER statement. I can't use prepared statements, because they do no...
(1) odpowiedzi
2017-06-09 19:06 Send X_CSRF Token from Yii application to Laravel API »
I am trying to make an API call from Yii 2 web application to an API that is developed in Laravel. Now Laravel expects an X_CSRF token whenever a POST...
(0) odpowiedzi
2017-06-09 14:06 Symfony Embed a Collection of Forms multiple tables »
I have 3 tables/entities. I am trying to create form to persist data to all 3 table in one form. Entitities are to long that is why I haven't added he...
(1) odpowiedzi
2017-06-09 11:06 How do I pass a pre defined callback filter in php? »
So I am trying to work with laravel collection filters and I have to filter the collections with a certain callback which looks like so: $cas...
(1) odpowiedzi
2017-06-09 08:06 Remove primary key and auto-increment in database using migration in laravel »
I have table with primary key and auto-increment field, I want make new migration to drop primary key index and also remove the auto increment field. ...
(3) odpowiedzi
2017-06-09 08:06 Accessing dynamic database in laravel »
I am working on an application. I have a master database, where I store all database names. I have made an api, which sends db_name. If that db_name e...
(2) odpowiedzi
2017-06-09 07:06 Get last ID after insert (always return 0) »
I have an Sql class like this: class Sql extends PDO { private $connection; public function __construct() { ...
(1) odpowiedzi
2017-06-08 22:06 Laravel one-to-one relationship fails »
I created two migrations, because I wanted to create a one-to-one relationship between Trend and TrendExplanation. Schema::create('trend_explanations...
(1) odpowiedzi
2017-06-08 13:06 Auto save server architecture »
I want to save a lengthy form's inputs at the server. But I don't think making db calls on each auto-save action is the best approach to go for. Wha...
(1) odpowiedzi
2017-06-08 12:06 Symfony 3, populating token and refreshing user »
I have a form for entity User with email field: ->add('email', EmailType::class, [ 'constraints' => [ new N...
(1) odpowiedzi
2017-06-08 12:06 Laravel Auth Login by company name, username, and password »
I like user to login by company name, username, and password - they need to enter all those fields. username, and password fields are in the users ta...
(2) odpowiedzi
2017-06-08 08:06 WooCommerce hide all products of a certain category if not loggedin »
I have been searching everywhere to find this answer and have even downloaded multiple plugins, all of which haven't worked. Is there a way to achiev...
(2) odpowiedzi
2017-06-08 07:06 Type juggling while making loose comparison yields unwanted result »
I was answering this question today using array_walk_recursive(), and given the OP's posted sample input, my answer was spot on. However, when the OP...
(3) odpowiedzi
2017-06-08 07:06 How can print Laravel variable with echo »
<?php echo Form::open(['method' => 'POST', 'url' => ['/cart/add/'. "{{$product->product_id }}"]] )?> <?php echo Form::button('Agrega...
(2) odpowiedzi
2017-06-08 02:06 file_exists() not working in php5 inside while loop »
file_exists isn't working. I've looked at a few examples and still no go. Program does not detect the file. The path of my file is /var/www/osbs/PHPAP...
(7) odpowiedzi
2017-06-07 22:06 Session cookies disappearing from Chrome with PHP/Apache server »
Update: Looks like the issue that started a few days ago was due to incorrect handling of the cookie "secure" flag. We still haven't resolved the prob...
(1) odpowiedzi
2017-06-07 17:06 Eloquent laravel : Get JSON representation of entry in table with all his relations »
Model Ov.php <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Ov extends Model { protected $table = 'ov'; pu...
(0) odpowiedzi
2017-06-07 15:06 What's the difference between Laravel automatic injection and manually specifying the dependencies in the constructor body? »
I'm using a Repository pattern in my Laravel project. This pattern is not really explained in the official documentation, except for this snippet: ...
(2) odpowiedzi