Data dodania Pytanie
2017-03-05 09:03 PHP Cookies contains Less data »
I used https://github.com/js-cookie/js-cookie to set cookies. When I check in browser, cookies are set properly but When I extract cookies on server s...
(1) odpowiedzi
2017-03-04 20:03 Laravel: Place for controller echo in blade view »
First Laravel Project. How to define a place in the view for the echo in controller? I have sometimes "echoes" in my controller. For example if a My...
(1) odpowiedzi
2017-03-04 08:03 How to get hasOne property inside view? »
How can I echo category name when in Urls view? I get this error: Column not found: 1054 Unknown column 'categories.url_id' in 'where clause' (SQL...
(1) odpowiedzi
2017-03-04 06:03 Unique IP Counter with Laravel and MySQL »
I'm trying to make a simple Unique IP counter for gallery page views. The idea I have is to keep the views records separate from the image records in...
(1) odpowiedzi
2017-03-03 11:03 How to use raw mysql statement in the migration file of laravel 5.4? »
I have a mysql statement : 'SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";' I want to run it in a migration file of laravel 5.4 ,but I don't konw wh...
(1) odpowiedzi
2017-03-03 11:03 Laravel 5.4 - Validation with Regex »
Below is my rule for project name: $this->validate(request(), [ 'projectName' => 'required|regex:/(^([a-zA-z]+)(\d+)?$)/u', ]; I am tryin...
(1) odpowiedzi
2017-03-03 09:03 Check if Backend User belongs to Group with OctoberCMS Laravel? »
I'm using OctoberCMS based on Laravel. I have a backend user, Matt in Groups owners, administrators. How do I check if user belongs to a specific gr...
(3) odpowiedzi
2017-03-02 15:03 laravel odd notation in includes like this: @include('flash::message') »
i am using http://labs.infyom.com/laravelgenerator/ and am basically 8/10 happy with it. What I saw using it: they access things via this notation: ...
(1) odpowiedzi
2017-03-02 13:03 Laravel ajax catch 500 Internal server error »
I am using Laravel with ajax, and in my controller I have a try - catch block: try { something... } catch (\Exception $e) { retur...
(1) odpowiedzi
2017-03-02 08:03 Laravel Wildcard Subdomain for User »
I am looking to implement a whitelabel solution to my platform and need to implement wildcard subdomains for or system, the only issue is our system s...
(1) odpowiedzi
2017-03-01 23:03 auto-injected Laravel model has no attributes »
I'm new to Laravel. I have created a model, a resource controller, and a route for one of my tables, I have modified the model class to use a particul...
(1) odpowiedzi
2017-03-01 15:03 Force 500 error in Laravel »
I'm building my first app in laravel 5.4 and I did a custom 500 error view (resource/error/500.blade.php) and I was wondering if there is any way that...
(2) odpowiedzi
2017-03-01 11:03 How to get average of column values in laravel »
Lets say I have this column star ---- 1 3 3 1 2 5 3 It has seven rows and there are integer values! I want to have it added...
(2) odpowiedzi
2017-02-28 18:02 Add one to many in form - Backpack laravel »
I'm using Backpack for Laravel to provide the backend area of my laravel website. I'm having the following tables in my database structure: This i...
(2) odpowiedzi
2017-02-28 14:02 unable to create directory in laravel 5.1 when upload image? »
Error : Unable to create the "http:/localhost/shopping/public/src/img/" directory my code : $imageName = $product->id . '.' . $request-&g...
(1) odpowiedzi
2017-02-28 05:02 Use unique validation for only specific record in database table in Laravel 5 »
I'm trying to validate unique question for specific book_id it means is should be unique only specific record. table: questions $title = this is que...
(3) odpowiedzi
2017-02-27 23:02 Laravel: how I can write my onw function with own query on my model? »
Example: I wanna create my own function for laravel model like: (original query) SELECT AVG(persons_positions.points) FROM positions INNER JO...
(1) odpowiedzi
2017-02-27 09:02 Rename an index in Laravel 5 »
I want to rename an index in Laravel 5. In a previous migration a column was created for table named a like so: $table->unsignedInteger('foo')-&g...
(3) odpowiedzi
2017-02-27 02:02 Sass in Laravel 5.4 »
In Laravel < 5.4 I was able to do the following with elixir to compile all of my sass files in one css file. mix.sass([ 'file_1.scss', 'fi...
(1) odpowiedzi
2017-02-26 23:02 Best practice for updating user 'rank' using a cron job »
In my site I have users who can create posts, make a description, upload profile picture, provide email address etc I want to give users a 'score' or...
(1) odpowiedzi
2017-02-26 22:02 Single file uploads which aren't multiform/form-data in Laravel 5.4 »
The Laravel documentation provides pretty detailed documentation about form based uploads. However, the documentation only handles form uploads (multi...
(1) odpowiedzi
2017-02-26 15:02 error: undefined function in laravel even though function is defined in controller »
I have the following lines of code in my laravel controller: public function getTags() { $tags = DB::table('tags')->get(); /* convert Obje...
(2) odpowiedzi
2017-02-25 22:02 How to pull json data from data mysql as object using laravel5? »
I have a table which contain JSON in a column that I have to get as an object but when I pull data using laravel model then it obviously return as JS...
(1) odpowiedzi
2017-02-25 18:02 Keep getting Unknown or bad timezone from Carbon Laravel »
I'm trying to add 2 months to a date with Carbon, but I keep getting this error: InvalidArgumentException in Carbon.php line 252: Unknown or bad...
(1) odpowiedzi
2017-02-25 11:02 How to use different variable names in view laravel »
i have a form. If a user creates fills the form and submits it is meant to reply back 'Account created successfully. An activation code has been sent ...
(5) odpowiedzi
2017-02-24 20:02 How to pull data from 2 table in stack »
I know many the many people think i can use "join" to pull data from two table but that's not i want. actually it is kind of question to me, is it po...
(2) odpowiedzi
2017-02-24 13:02 Nested Resource : Missing required parameters (laravel) »
I am quite new to Laravel, and to be honest - It is a great framework. I am however, a bit confused about some nested resources - including CRUD'ing t...
(1) odpowiedzi
2017-02-24 12:02 PHP - Parse New Line Logs »
I have the following log: #VERSION: 2.9 2017-02-24 10:03:39 channel_ping 1afcd2e2857045fe973e7ed036ea450c dfe17897d80b44f6901593364fc72b55 ...
(3) odpowiedzi
2017-02-23 22:02 Remove q=/search? from Query String in Laravel »
I'm using OctoberCMS based on Laravel. I'm trying to get the query string so I can parse it into variables. It's putting q=/search? before the stri...
(0) odpowiedzi
2017-02-23 18:02 Laravel parse request into Eloquent model with relations »
Im developing a Laravel API that will host and manage the data for a mobile application. The application that I am writing will make AJAX requests and...
(1) odpowiedzi
2017-02-23 16:02 How Can I pass $role->name into function? »
I'm using the Laravel Datatables plugin and I would like to pass the ROLE variable into the function so I can access it. $roles = \Spatie\Permission\...
(1) odpowiedzi
2017-02-23 15:02 Laravel: Passing array from routes to views without mapping it to some keys? »
Is it possible? I can do: Route::get('passit', function() { $data['arr'] = array(1,2,3); return View::make('aview', $data); ...
(2) odpowiedzi
2017-02-22 15:02 Why I am obtaining this "SSL certificate problems: unable to get local issuer certificate" error validating a reCAPTCHA? »
I am pretty new in PHP and moreover in Laravel and I have the following strange problem. I have developed witha registration form containing a Google...
(1) odpowiedzi
2017-02-22 11:02 Img not displaying when route is changed in laravel »
I have an image tag <img src="uploads/store/products/1-1486038295-1-1-qYv3f.png" class="img-responsive" style="width:100%; height: 100%;" alt="asd...
(3) odpowiedzi
2017-02-22 07:02 Laravel small differences for different environments »
I have 3 projects that are very similar: 95% of the code. Now when I have to make an edit I have to copy that three times and It's very bad! So I nee...
(2) odpowiedzi