Data dodania Pytanie
2017-01-16 21:01 Deleting from database raises Request failed with status code 405 error »
I am attempting to delete items from a MySQL database by id using axios. In my Vue component I have the following method set up to handle removing an ...
(1) odpowiedzi
2017-01-16 15:01 Updating config on runtime for a user »
I am using Laravel 5.1 I created a function to get smtp info from db for a user $mail_config=STMPDetails::where('user_id',36)->first() and then I ...
(2) odpowiedzi
2017-01-16 12:01 laravel resize ,crop and watermark »
When i crop my resized image have blank space in right and bottom of picture like this . Image this is my codes : // Dimention 0 is 800, Dimention ...
(0) odpowiedzi
2017-01-16 10:01 Laravel - Having a hasMany() as well as a hasOne() relationship on the same model? »
I've got a Company model in which I would like to define two relationships with the User model: public function users(){ return $this->hasM...
(0) odpowiedzi
2017-01-16 08:01 Upload images and showing them in a view Laravel 5.2 »
I made a function in which I upload images of some products. When I iterate through all my products, I want to show the image too. The problem is, t...
(2) odpowiedzi
2017-01-15 15:01 How to use outer full join in laravel 5.0? »
It's my controller : public function lihatpesanansemua() //ajax { if(Request::ajax()) { $hasil = DB::table('pesanan')->join('peme...
(2) odpowiedzi
2017-01-15 12:01 Laravel 403 error (production) when doing ajax POST request only in HTTPS »
I've been through the web for about 3 hours to find a solution to my issue but can not find out... I've uploaded my laravel application on a shared h...
(1) odpowiedzi
2017-01-15 08:01 Add a custom validation error message laravel »
I can do something like this to validate something on the controller. $this->validate($request,[ 'myinput'=>'regex:some pattern' ]); and the ...
(1) odpowiedzi
2017-01-15 04:01 Combining query results in laravel »
On my website, users can upload images and attach tags to those images. I've got an images table,a tag table and an images_tag pivot table. Images ...
(2) odpowiedzi
2017-01-15 02:01 error from laravel's foreach loop »
Getting error message from Laravel's foreach loop: Invalid argument supplied for foreach() My foreach loop is : @foreach ($task as $tasks) &...
(4) odpowiedzi
2017-01-15 01:01 laravel read data from database returning duplicate result »
I'm trying to read data from MySql with "Laravel 5.3". Then I serve them using json. Here is my code: public function getUserTimeline(Request $reque...
(1) odpowiedzi
2017-01-14 23:01 Laravel 5 Naming Conventions »
I am bit confused with Laravel conventions as I am new to this framework. I am following Jeffrey Way Laracasts videos he uses Plural for Controller na...
(2) odpowiedzi
2017-01-14 14:01 Laravel: blade foreach looping bootstrap columns »
I have a foreach loop and inside that contains html with bootstrap columns. @foreach($address as $add) <div class="col-md-6"> Some ...
(2) odpowiedzi
2017-01-14 14:01 How to create method in controller that applies to all other methods in the controller? »
I have the following code in my adminController: public function index() { if (!(Auth::check())) { return Redirect::to('login'); } ...
(2) odpowiedzi
2017-01-14 09:01 Laravel 5.3 filter search data in API »
I'm implementing an API for front end and mobile apps now i'm working on search function where a user may type column name or any data i should be abl...
(1) odpowiedzi
2017-01-14 00:01 How can I get access to all language keys in Laravel form the ioC container? »
Laravel 5.3 has a function called addLines in the Lang facade the allow me to add Lang keys to the collection in memory at run time. But Laravel 5.2 ...
(0) odpowiedzi
2017-01-13 16:01 How to use vue-datetime-picker in single file component »
I am trying to use vue-datetime-picker <vue-datetime-picker class="vue-picker4" name="picker4" :model.sync="result4" ...
(1) odpowiedzi
2017-01-13 12:01 How to filter comments with vue.js? »
In my view i have this : <select class="sort_by"> <option selected disabled>SORT BY</option> <option value="na...
(1) odpowiedzi
2017-01-13 11:01 laravel : seeder with foriegn keys »
in my database i have already tables namely: notifications table, statuses table, they have many to many relation, that is why i have a pivot table ca...
(3) odpowiedzi
2017-01-13 08:01 Laravel Elixir minify js file without combine them »
for example I have a common.js , and regagent.js, how can I minify them without combine them these two, because mix.copy and mix.scripts seems can't d...
(1) odpowiedzi
2017-01-13 04:01 laravel router argument behaviour »
I notice that when you use URL:::action, and set some arguments, sometimes laravel would cast them as GET requests, sometimes not. Is there anyone kno...
(2) odpowiedzi
2017-01-13 00:01 Show image file by id in Laravel 5.2 »
I have a table named files, this saves the name of the images related to the properties table. I am trying to make these images appear as in the foll...
(2) odpowiedzi
2017-01-12 20:01 Does laravel reload classes on every call? »
I'm trying to loosely maintain persistent data between requests. Obviously a database is the best way to maintain data, but the exact correctness is e...
(2) odpowiedzi
2017-01-12 14:01 Laravel model query with only certain columns »
I want to make a query that gets all the users from table "users" and i need to have only user.id. $users = User::all(); this will get the whole mo...
(4) odpowiedzi
2017-01-12 13:01 Eloquent ManyToMany with an alternative key »
I have a table Subscribers and a table Services. A subscriber can have multiple services, and a service can have multiple subscribers. Only the prob...
(1) odpowiedzi
2017-01-12 09:01 laravel 5.1 : how can i have two wherePivot in eloquent? »
I need check two where conditions on a pivot table. I know that I can check one condition with this: $dis = $user->discounts()->wherePivot('use...
(2) odpowiedzi
2017-01-11 18:01 How can I pass an Array into a Laravel Controller »
I have a number of arrays within my Laravel view that I would like to pass into the controller. These arrays should not be modified by the user, and a...
(1) odpowiedzi
2017-01-11 14:01 Class Not Found Calling a Laravel Script from Supervisord »
I'm using Laravel workers to execute some background tasks. When I invoke the worker using 'php artisan queue:work', it works without any problem But...
(2) odpowiedzi
2017-01-11 12:01 getting redirected to root when having a special character in request - laravel 5 »
here's my routes file: Route::any('target',function(){ return 'got it!'; }); here's my form: <form method='post' action='example.com/target...
(3) odpowiedzi
2017-01-11 11:01 Laravel validation for field if "image/file" is selected? »
I have a field "image", type is file and need only to validate if image is selected, means it can be also empty. I tried it so: 'avatar' => 'mimes...
(4) odpowiedzi
2017-01-10 17:01 Laravel 5.3 Authentication Issue »
I am having issues grabbing the currently authenticated user in Laravel 5.3. More specifically, I am making a HTTP request to my api.php file, which h...
(3) odpowiedzi
2017-01-10 17:01 Undefined index in array element »
seem to be experiencing something strange. I am loading an Excel file's data into an array. I am handling things like so foreach ($data->toArray...
(1) odpowiedzi
2017-01-10 14:01 Laravel many to many relationships - retrieving models »
If we have something like this: user id name role id name shop id name role_user role_id user_id shop_user shop_id user_id Quick...
(2) odpowiedzi
2017-01-09 18:01 How to sort a collection by reputation and creation date »
Assuming I want to sort a list of users by reputation: User with 5 reputation User with 3 reputation User with 0 reputation (this user was registere...
(1) odpowiedzi
2017-01-09 16:01 Random RuntimeException: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key length »
I have same problem with Laravel 5.3 (on windows server). I did all possible attempts: checked .env file, config, artisan new key generation, cache: c...
(2) odpowiedzi