Data dodania Pytanie
2017-11-28 11:11 multiple middleware to Laravel 5 route not working »
i want to view dashboard when logged in as both "admin" and "jeweller". When i log in a "admin" its redirecting to dashboard, when when i log in as je...
(2) odpowiedzi
2017-11-27 15:11 Command schedule in Laravel »
I'm trying to a execute scheduled command every five minutes in background. I use this code protected function schedule(Schedule $schedule) { ...
(1) odpowiedzi
2017-11-27 12:11 Laravel Limit Related Model »
How to Limit Related Model from Parent Model in Laravel, I have Category and News Model, I want to fetch all categories and each category with 3 late...
(1) odpowiedzi
2017-11-27 08:11 I'm trying to load only the last 3 comments on every post »
i want get all posts with last three comment on each post. my relation is public function comments() { return $this->hasMany('App\Commentpostfe...
(4) odpowiedzi
2017-11-26 20:11 Put one dinamic object with assets in laravel »
Hi i dont know how put img with assets. I have this {{asset('Articulos/{{$Articulo->path}}')}} but i have error syntax error, unexpected '}' ...
(1) odpowiedzi
2017-11-26 03:11 What happened to Laravel's Eloquent public static function "create" in Model.php? »
In previous versions of Laravel 5.x (I'm not sure when it was changed) I was able to call static method create on any Eloquent Model class to insert r...
(2) odpowiedzi
2017-11-26 01:11 Form parameters not getting sent? »
I am trying to make a login request but for some reason none of the inputs are getting sent with the request. Have a bad feeling it's just some stupi...
(1) odpowiedzi
2017-11-25 20:11 Trouble Connecting Digital Ocean to Laravel Application »
I am having trouble connecting my laravel project to digital ocean. I am using ubuntu LAMP 16.04 to connect my project but i am getting a error tellin...
(1) odpowiedzi
2017-11-25 16:11 How can I add condition in rules laravel? »
My controller like this : <?php use App\Http\Requests\StoreReceiveOrderRequest; class SellController extends Controller { public function rec...
(3) odpowiedzi
2017-11-25 09:11 Laravel - Dynamic Data & Grammar::columnize() must be of the type array »
I have gotten a form of the array to work it seems, though something is still showing up as off when I go to submit the data. Here is my store functio...
(1) odpowiedzi
2017-11-24 11:11 Undefine property when trying to access data from another table in Laravel »
I have user table and profile table. In my profile table i put the user Avatar. so i try to get those Avatar by making this function into my User Mode...
(2) odpowiedzi
2017-11-24 11:11 Laravel | Multiple file upload not working »
I am trying to save multiple photos at a time and I have verified that the request has an array of files so that is working correctly. dumping $reque...
(1) odpowiedzi
2017-11-24 08:11 How does Laravel protects itself from html injection? »
Hello I'm new to laravel and I tried to add HTML to a <h6> field like below image . and it appears in the page source like this My questio...
(1) odpowiedzi
2017-11-23 17:11 Deploy Laravel project to shared hosting without SSH »
I got my Laravel project ready to be deployed but every free hosting website I tried doesn't have SSH Command Line. This is what I've tried: FTP U...
(0) odpowiedzi
2017-11-23 14:11 Socialite redirect the user after successful facebook registeration »
I'm using Laravel 5.5 and using Socialite to register users via facebook, this is my handleProviderCallback public function handleProviderCallback(R...
(1) odpowiedzi
2017-11-23 11:11 Laravel 5.5 Can't remove category after editing »
When I edited post I want to remove cancelled categories. I use sync method but its not working.. Edit Blade <select class="form-control m-select...
(1) odpowiedzi
2017-11-23 06:11 Laravel error when using Route::resources('book', 'BookController'); »
Super new to laravel .So I put Route::resources('books','BookController'); in my web.php but I am getting an error in my terminal (img) also when i r...
(2) odpowiedzi
2017-11-22 22:11 Laravel 5.5 Axios POST results in 419 error »
I am trying to make a POST-request to my Laravel API from Vue. The X-CSRF-TOKEN header is set correctly (I see this in the POST-package sent to the se...
(2) odpowiedzi
2017-11-22 15:11 Laravel 5.2 Fatal error:vendor/composer/autoload_real.php on line 66 »
I have uploaded my laravel project from local to host. Now I have following error: Fatal error: require(): Failed opening required '/home/httpd/vhost...
(1) odpowiedzi
2017-11-22 13:11 Laravel: LAST_INSERT_ID() is 0 after insert? »
I have the following working query: $year = 2019; $month = 6; $stmt = $db->prepare('INSERT INTO officeRechNr (jahr,monat,za...
(1) odpowiedzi
2017-11-21 23:11 Laravel is not defined while applying real time chat »
This is my code, window.Laravel = {!! json_encode([ 'csrfToken' => csrf_token(), 'user' => [ 'authenticate...
(0) odpowiedzi
2017-11-21 13:11 Can I use every functionality of Vue in laravel by just using vue CDN? Basically I want to avoid NPM and node? »
Can I use every functionality of Vue in laravel by just using vue CDN? Basically I want to avoid NPM and node? Because I tried using NPM but got issu...
(1) odpowiedzi
2017-11-21 08:11 SQL_CALC_FOUND_ROWS with FOUND_ROWS always returns 1 »
select SQL_CALC_FOUND_ROWS, col1 , mytable.id from mytable group by col1; select found_rows(); select found_rows() , col1 , mytable.id from myta...
(2) odpowiedzi
2017-11-20 19:11 Laravel 5 Read Only View Model with polymorphic Relationship »
Sometimes we use MySql Views to organize related tables to make it easier to search and sort. For example if you have Posts with a Status, and a Sourc...
(1) odpowiedzi
2017-11-20 17:11 how to highlight string in a string in a laravel blade view »
Somewhere in my template I have this: {{ $result->someText }} Now in this text I want to highlight all words that are in the string {{ $searchS...
(2) odpowiedzi
2017-11-20 01:11 Laravel 5.4 OAuth with Dingo internal requests »
I am using Laravel 5.4 with Dingo API, and I'm trying to get Laravel's OAuth 2.0 (Passport) to work with Internal Dingo requests. Previously, I was us...
(1) odpowiedzi
2017-11-19 16:11 Getting all related fields to related field in Eloquent »
I have this DB structure: classroom_user is Elqouent many-to-many pivot. User.php: public function classrooms() { return $this->belong...
(4) odpowiedzi
2017-11-19 16:11 Add disable attribute on select options using function return html »
I am using this function to add option in to select box. Options are added successfully but i don't know to add extra attribute using function. so how...
(1) odpowiedzi
2017-11-19 05:11 MethodNotAllowedHttpException($others); When have errors in Validate (Laravel 5.5) »
I have 2 routes: Route::post('/post_2', 'TestController@post_2') ->name('post_2'); Route::post('/result', 'TestController@result') ->n...
(1) odpowiedzi
2017-11-18 20:11 Laravel display css effects on a php page »
I tried a lot before asking this question here. I am working on an android project called 5.2 that has a folder called CSS under public folder which ...
(1) odpowiedzi
2017-11-18 18:11 Laravel: Extending different layouts inside if-else condition »
I'm trying to extend different layouts inside if-else statement. Here is my code: @if(Auth::check()) @extends('layouts.adminPanel') @else @ex...
(1) odpowiedzi
2017-11-18 17:11 Laravel Unknown column '_token' in 'field list' »
I've noticed strange behaviour over some Laravel apps. When I run lets say Users::where("id",$request->input("id"))->update($request->input...
(3) odpowiedzi
2017-11-18 06:11 Can someone give me a solid principle for not getting "non object ..." with laravel 5.5? »
Over the time i've been practicing some solutions to avoid non object error in laravel (different versions) , but i wanted to know if there is a solid...
(1) odpowiedzi
2017-11-17 19:11 Error: Class 'Route' not found in routes.php when testing standalone Laravel package using Orchestra Testbench »
I've got a bit of a weird issue at the moment. I'm currently building a Laravel package which is on Github at https://github.com/matthewbdaly/laravel...
(1) odpowiedzi
2017-11-17 17:11 SQL : Multiple left joins with similar tables »
I have the following tables: TABLE A id info TABLE B f_id question choices TABLE C f_id question lines The id from the Table A always match a f_i...
(3) odpowiedzi