Data dodania Pytanie
2017-06-13 08:06 laravel validate on output of a function that take input as parameter »
blade.php ...... <tr> <td>{{ Form::label('cameraMac', 'Mac: ') }}</td> <td>{{ Form::text('cameraMac')}}</td> </t...
(1) odpowiedzi
2017-06-12 23:06 Laravel Mix extracting a file in resources folder »
I struggle extracting a single file/path, so it gets placed into the vendor.js. The snippet I currently use is: mix.js('resources/assets/js/frontend....
(1) odpowiedzi
2017-06-12 15:06 Confused about when mysql code is injection proof using PDO »
I understand the basic idea of how mysql statements can be vulnerable, but every time I try to find a useful guide, the ways to achieve this with PDO ...
(1) odpowiedzi
2017-06-12 15:06 Trying to build PHP and GD with PNG and JPEG support »
The browser displays the error message Fatal error: Call to undefined function imagecreatefrompng() in... Here is the source code that fails: ...
(1) odpowiedzi
2017-06-12 14:06 Round time string in gap of 30 minutes »
I have a time string in UNIX format . I need to round that string to closest interval of 30 minutes. For eg: I have time as 9:20 AM than it should ro...
(4) odpowiedzi
2017-06-12 11:06 Join 2 echoes and separate with coma - implode, array »
I've got 2 variables. First is coming from the taxonomy and outputs the taxonomy term and the second outputs the custom field: $address_city = get_c...
(1) odpowiedzi
2017-06-12 11:06 Trying to resize uploaded files as they are saved to server »
I am using Glide to deliver image content from one of my sites. This is working well and I have now built a file upload so that admins can upload imag...
(3) odpowiedzi
2017-06-12 05:06 how to load js and css scripts all at once in Laravel? »
how to load js and css scripts all at once in Laravel? Using the @extend blade template will load the scripts again. ...
(3) odpowiedzi
2017-06-11 21:06 Nested relationship stops working after first result »
Here is the query I currently have: $messages = Message::select('messages.*') ->where('post_id', 1) ->where('parent_id', 0) ->wi...
(1) odpowiedzi
2017-06-11 20:06 Laravel 5.4 blade foreach loop »
I am building a venue manangement system, and on the landing page, i m trying to show all the available slots to the visitors. The ones that have alre...
(1) odpowiedzi
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