Data dodania Pytanie
2017-08-15 23:08 Select tab to open after submitting. »
Im working on a Laravel web application. In that application I have tabs one of which is a quiz written in PHP. When I submit the quiz the page reload...
(1) odpowiedzi
2017-08-15 23:08 Image validation rule not working as expected »
Here's my validation rule: public function rules() { $channel_id = Auth::user()->channels->first()->id; return [ 'name' =&g...
(1) odpowiedzi
2017-08-15 17:08 Laravel, how to change array key permanently? »
Tried using array_values but it only temporary. controller foreach($rows as $key => $value) { array_values($value); //dd shows the key chang...
(4) odpowiedzi
2017-08-15 15:08 Can i be hacked if i public a file php in public folder in laravel 5 »
i have a example.php and move it to public folder in laravel example.php: <html> <body> <form action="welcome.php" method="post"&gt...
(3) odpowiedzi
2017-08-15 08:08 How write seeder in Laravel »
I have table taggable, it's table for Many To Many Polymorphic Relations (Tag and post): taggable_id - id of Post tag_id - id of Tag taggable type - ...
(1) odpowiedzi
2017-08-14 22:08 Laravel CSRF token mismatch »
I have form like this: {{ Form::open([ 'url' => url('programs') ]) }} {{ csrf_field() }} In controller I am echoing plain all input variables l...
(0) odpowiedzi
2017-08-14 22:08 Model Class not found error »
Using Laravel 5.4, I am getting this error on view whenever I call my method it shows on screen (1/1) FatalThrowableError Class 'App\Models\Chat\User...
(1) odpowiedzi
2017-08-14 15:08 Laravel 5.4 + Angular 2+ apps api client management »
I have a backend from laravel 5.4 and I have 3 front-end apps from angular 2+, my problem is how do I manage my API that only the registered apps are ...
(0) odpowiedzi
2017-08-14 11:08 Why do Middleware implements no interface? »
In Laravel < 5.2, middlewares implemented an interface described by this contract: Illuminate\Contracts\Routing\Middleware. Now, a Middleware cre...
(0) odpowiedzi
2017-08-13 21:08 Sub request in Laravel 5 »
I'm looking to do sub requests in my API, to other parts of my API. I have done this before in Symfony - but I'm not sure how to achieve this in Larav...
(0) odpowiedzi
2017-08-13 19:08 Handling Angular 2 csrf for cross origins »
below is the architecture of our application. the web interface [the client] is standalone Angular 2 application [domain.com] the [proxy] which held...
(0) odpowiedzi
2017-08-13 19:08 Laravel Post with Postman »
I'm building on Laravel 5.4 and trying to make a post request with postman, I have added the csrf token and just passing something as id. I'm still ge...
(0) odpowiedzi
2017-08-13 11:08 Laravel, how to find duplicated value between 2 arrays with different keys? »
I have 3 arrays, how do I return 'true' if the 2 array have the exact same value? In this case, $array1 and $array2 is true meanwhile $array1 and $arr...
(6) odpowiedzi
2017-08-13 01:08 okhttpclient for android and Laravel API »
Currently building an Android App that has a Web Service. Trying to get data from the SQL Database using the okhttp3 but I'm getting a weird response ...
(1) odpowiedzi
2017-08-12 22:08 Laravel 5.2 to 5.3 - converting routes.php to web and api route files? »
I am upgrading my guitar lessons site from 5.2 to 5.3. My previous developer has a full time job so now I am the site owner and developer... I am a be...
(1) odpowiedzi
2017-08-12 18:08 Laravel: Database - More "log collumn" »
I want to add some other columns next to the created_at and updated_at columns, for example: deleted_at creator updater deleter The last three sho...
(1) odpowiedzi
2017-08-12 15:08 Laravel\Vue - ajax file upload not working on the production server »
I have a component where I am uploading a video file, everything works fine on my local machine, and it used to work fine on the production server, Na...
(1) odpowiedzi
2017-08-12 10:08 How to access object in php when the identifier starts with a @ symbol? »
I have a json object that looks like this: {#119130 ▼ +"@id": "1EBEF5DA" +"@name": "The" +"@renewal": "xxxxx" +"@languages": "Eng" } How...
(3) odpowiedzi
2017-08-12 08:08 How to show image in Angular 4 application read through laravel 5 rest api »
I am using Angular 4 frontend and Laravel 5 Rest API for my application. I save and read images in Laravel using below code public function store(Req...
(0) odpowiedzi
2017-08-12 07:08 Laravel Datatables pagination(when limit used on server side) issue »
I have faced problem regarding datatables.I am working in laravel and used yajra/laravel-datatables-oracle package. In one of my product section, the...
(1) odpowiedzi
2017-08-11 13:08 Why is Auth::check() returning false here? »
I wanted to customize the 404 error page , so I made a 404.blade.php view and it works fine, however my view has a navbar and some @if statements whic...
(1) odpowiedzi
2017-08-11 10:08 Laravel. I can't show data from relation »
i have strange problem. dd(), It shows me that I got to the data, but i cant display single record from table. I want to get to the name of my role b...
(2) odpowiedzi
2017-08-11 08:08 Get commentable class attributes using Baum in Laravel »
I am using Laravel Commentable that uses Baum Post Model class Post extends Model { use Commentable; .... My user model name is User Comment ...
(1) odpowiedzi
2017-08-11 08:08 How to filter my data in laravel 5.4? »
I have 3 tables: products productcolors productbrands The relationships between them are: a product has many productcolors; productbrands belong...
(3) odpowiedzi
2017-08-11 04:08 Export CSV using Laravel via Ajax »
I have a export csv function, it worked fine with laravel. But now I want to call export function via ajax and use method post, but I there is no resp...
(2) odpowiedzi
2017-08-10 18:08 Laravel 5.4 fopen(): Filename cannot be empty »
I want to upload image in laravel 5.4 Here's the code: if ($request->hasFile('image') && $request->image->isValid()) { $imag...
(0) odpowiedzi
2017-08-10 17:08 Laravel Eloquent increment a column based on a relation »
I currently have a table of image links associate with another model as follows +----+-------------+----------------+ | id | property_id | url ...
(1) odpowiedzi
2017-08-10 13:08 How to get extra fields from pivot table - laravel »
I have create a Pivot model and table for laravel and added extra field to the pivot model. But the extra field is not displaying when calling pivot d...
(2) odpowiedzi
2017-08-10 10:08 Delete object on laravel »
I'm learning laravel, and now i trying to delete object without form. i want to use js to detect when user click delete's button and return notify to ...
(2) odpowiedzi
2017-08-09 19:08 Laravel Eloquent ORM - How to get the all the properties of afrom/of a collection in a array? »
$user_emails = ["email_1@domain.com", "email_2@domain.org"]; $users = Users::whereIn("email", $user_emails); The table for users also has a phone...
(3) odpowiedzi
2017-08-09 19:08 Laravel get user_id from others tables for store »
I have 4 tables :- User id username password email available_offers id date time from to requested_routes id user_id available_offersID r...
(1) odpowiedzi
2017-08-09 15:08 Is starting route grouping with namespace() not allowed in Laravel 5.4? »
Using Laravel 5.4, indeed in the documentation about Route grouping, and an example as this was given about namespacing: Route::namespace('Admin')-&g...
(5) odpowiedzi
2017-08-09 11:08 JST alternatives for Laravel »
Before Laravel 5.4 I used to use "JST" (Javascript Templates) by loading it using gulp. https://www.npmjs.com/package/gulp-jst2 However, in 5.4 Lara...
(0) odpowiedzi
2017-08-09 10:08 Laravel 5.4 How to update profile of applicant guest that is logged in »
I am new to laravel and I want to let the user update his/her profile when logged in. I want to get the ID of the user when updating his/her profile b...
(2) odpowiedzi
2017-08-09 09:08 Merge objects of an array in PHP using Eloquent »
I have a collection of objects grabbed out of my DB using Laravel's Eloquent ORM ( I am not using Laravel just integrated Eloquent into my own Framewo...
(1) odpowiedzi