Data dodania Pytanie
2017-02-18 20:02 How do I tell composer to install minimum files »
I've got a composer.json to require twig: "require": { "twig/twig": "~1.0", ... } This twig package installs a folder called doc. ...
(1) odpowiedzi
2017-02-18 20:02 What is `HtmlString` used for in Laravel? »
This class: HtmlString <?php namespace Illuminate\Support; use Illuminate\Contracts\Support\Htmlable; class HtmlString implements Htmlable { ...
(2) odpowiedzi
2017-02-18 17:02 Is all my Facebook information stored in a session after I login? »
I am kind of a rookie in PHP and MySQL, so please bear with me :-) I'm also sorry if this has been asked before. From the little that I have gathered...
(1) odpowiedzi
2017-02-18 13:02 PHP: String to multidimensional array »
(Sorry for my bad English) I have a string that I want to split into an array. The corner brackets are multiple nested arrays. Escaped characters s...
(3) odpowiedzi
2017-02-18 11:02 Instagram API not returning json »
The login is working fine. But I can't get the data via the access_token. How to get the data? My app is in Sandbox Mode by the way. Does it makes a d...
(0) odpowiedzi
2017-02-18 09:02 How to "modify" a closure »
I'm making a class to add metaboxes to Wordpress extending functionality of Metabox.io. Now you often have metaboxes with the same attributes (for e...
(1) odpowiedzi
2017-02-18 07:02 Error in Object injection »
I am working on a Laravel 5.4 Project. I am facing an issue. I would like to know more about the issue. Below code is working. PostController.php ...
(1) odpowiedzi
2017-02-18 06:02 Route [signup] not defined in laravel »
I am new to Laravel. I am learning how to create user registration page. Everything works fine but I am stuck in a simple problem. ErrorException...
(3) odpowiedzi
2017-02-17 15:02 PHP 7.1.2 compilation and libcurl error »
PHP 7.1.2 is here, i tried to compile it as usually but this time ./configure fail with these error: checking for cURL in default path... not foun...
(1) odpowiedzi
2017-02-17 15:02 Javascript - PHP's Substr() alternative on Javascipt »
I am working with a long string on javasctipt and I have to replace substrings that I cant predetermine their length and value , where I can't use str...
(3) odpowiedzi
2017-02-17 14:02 Laravel Polymorphic relationship getting different models »
I have a Laravel model called "Area" which contains "Elements". Elements can be different Models (in this case a FreetextElement and a CheckboxElement...
(1) odpowiedzi
2017-02-17 14:02 Add data inside documents in Mongo DB using PHP »
I want to insert data in Mongo database using PHP script, in year wise documents so that it may look like this (All years in one document); cars{ ...
(2) odpowiedzi
2017-02-17 14:02 Free shipping depending on weight and on minimal cart amount »
With WooCommerce, I need to have Free Shipping over certain amount of 250 except the heavy products that are included in the cart. Does anyone know w...
(2) odpowiedzi
2017-02-17 13:02 What is best practise for storing custom data for Wordpress »
Context: I need to create a form with a lot of customisations and quite a few fields (20+) for a site and rather than installing a plugin and modifyin...
(3) odpowiedzi
2017-02-17 11:02 Save select value onchange Laravel »
I am building a multi language app with Laravel, and I need the users to be able to log in and select their preferred language(table "languages") from...
(3) odpowiedzi
2017-02-17 09:02 array_push or array_unshift multiple rows to top of same array PHP »
I have an array: [0] => Array ( [Id] => 1 [Order] => 1 [ContentGroupId] => 10 [ContentGroupIsNew] =&g...
(2) odpowiedzi
2017-02-17 05:02 No hint path defined for [mail] Laravel 5.4 »
hi guys i'm trying to show my markdown email on view, but there's something wrong on my mail view, it shows like ErrorException in FileViewFinder.php...
(1) odpowiedzi
2017-02-16 23:02 file_put_contents(.../bootstrap/cache/services.json): failed to open stream: No such file or directory »
I kept getting this error when running any php artisan commands. [ErrorException] file_put_contents(/Applications/MAMP/htdocs/code/bheng/md-b...
(1) odpowiedzi
2017-02-16 17:02 How to include new line "\n" in PHP regex match »
I have a regex as follows: $regex = '/(https?\:\/\/|www)[^(\"|\\\) ]+/i'; Which I want to extract just the url from the following: Here is some du...
(1) odpowiedzi
2017-02-16 15:02 Connecting to MySQL database slow, takes n seconds »
Why is connecting to my InnoDB database often delayed by an integer amount of seconds? Some background I have a very small MySQL database, consistin...
(1) odpowiedzi
2017-02-16 14:02 How to compare a string value to another string value? »
I have a problem in comparing a string of single word to another string within a sentence or phrase.I want to get the whole string from address if the...
(1) odpowiedzi
2017-02-16 13:02 php - which one is better approach null== or ==null »
I saw many times that php developers use somthing like this: if(null == $var){ } while I use if($var == null){ } Are these two different? is t...
(2) odpowiedzi
2017-02-16 11:02 How do I update multiple rows in one query »
I know this question may be asked too many times on these forums but I genuinely cannot find a solid answer. They all give different methods. Anyway...
(3) odpowiedzi
2017-02-16 10:02 Find period since last pause in MySQL »
I need to find the period without pause in days since last pause. I have a next table: id | user | date ----------------------- 1 | 1 | 16.02...
(7) odpowiedzi
2017-02-16 10:02 Laravel Update Route »
Laravel newbie here, I want to create an update route in Laravel, without the resource controller. I have the route for the editing Route::get('/ind...
(1) odpowiedzi
2017-02-16 07:02 send fixed data with a form »
I need to send some data from a page in my website to another page. i figure i should use a html form then set action attribute to destination. &lt...
(3) odpowiedzi
2017-02-16 07:02 Unable to get auth email as field value in view (larave5.3) »
I am working on laravel 5.3 and i want to get authenticated user email as my field value my field code is <div class="col-md-8"> <input type...
(2) odpowiedzi
2017-02-16 04:02 Aggregate distant relationship with eloquent »
I have two models User and Child. class User extends Model { public function children() { return $this->belongsToMany('App\Child', 'user_chi...
(1) odpowiedzi
2017-02-15 17:02 PHP convert special characters to HTML entity »
I have a string ex: $a = 'abc🔹abc'; The 'small blue diamond' is: bin2hex('🔹') => f09f94b9 Small blue diamond representation So, I would ...
(1) odpowiedzi
2017-02-15 17:02 What is the best way to cleanly emogrify a Laravel blade template file? »
I'm using an emogrifier to format the results of a blade template so I can send it in an email. $html = View::make('emails.notification', [ 'dat...
(1) odpowiedzi
2017-02-15 13:02 Get the values for a specific attribute from a product ID »
I am trying to get products custom attribute with options values. This is how I get a normal attribute: $myproducts['data']['discount'] = $product-&g...
(1) odpowiedzi
2017-02-15 09:02 Duplicate orders after create in prestashop 1.6 »
I have a problem in prestashop, after orders create some orders split two orders with the same reference and dispatch product in both. Thank you in a...
(0) odpowiedzi
2017-02-15 09:02 Why PDO doesn't allow multiple placeholders with the same name? »
I'm using PHP, and MySQL with PDO. Sometimes I need to prepare a statement with one variable (placeholder) used more than once in this query. Example...
(1) odpowiedzi
2017-02-15 07:02 Undefined index: csrf_cookie - Firefox browser only »
while using mozila firefox for login , its shows the following error A PHP Error was encountered Severity: Notice Message: Undefined index: csrf_c...
(0) odpowiedzi
2017-02-15 06:02 Write a js expression inside laravel blade template »
I am using tagsinput for some tagging operation. I want to add some default value to the tag field that is sent from controller. But it seems that the...
(1) odpowiedzi