natlotzy natlotzy
3

Understanding withErrors() vs withInput() and how to check for custom errors in blade file

I'm currently trying to modify existing code to improve the error handling in our view, but I'm having issues with returning errors in a customized format and knowing how t...
kodeninja kodeninja
4

When to clear each of the cache types?

Hi, These are the artisan commands I know which clear cache: route:clear config:clear event:clear optimize:clear route:clear view:clear cache:clear I know I'm...
Insperio Insperio
3

Edit parent details - eloquent models

Hi, I'm looking for a good way to "activate" parent when child element is set as "activated" as well. I have relationship set up for both (one ga...
Vandan29 Vandan29
4

Error on resource route

I use resource route but error is coming My route:- Route::resource('admin/portfolio','PortfolioController'); ErrorException (E_ERROR)...
Vandan29 Vandan29
4

Laravel baum/baum package error

BadMethodCallException Method toHierarchy does not exist. Helper.php function get_category_list() { $categories = Category::all()->toHierar...
mohammadbasir mohammadbasir
2

SQLSTATE[HY000]: General error: 1364 in LARAVEL 5.7

Why my coding is not working? public function store(project $project){ $valid_data = request()->validate([ 'title' => ['require...
frumentius frumentius
8

Can't push notification with: laravel-notification-channels/webpush

I try to implement laravel-notification-channels/webpush (I'm using laravel 5.8) to send push notific...
mohammadbasir mohammadbasir
4

SQLSTATE[42S02]: Base table or view not found

Why I am getting this error? Here is my code. function createclaim(Request $request){ $claim = new Claim; $claim->title = $request[&quo...
SkyCoder SkyCoder
2

Laravel groupby multiple columns and merge

Is there an function to merge data from groupby with more columns? $data->->groupBy('day','skill')->get(); and for output currently...
Mike_SA Mike_SA
4

Filtering out slected categories Arr::except

Hi, I am trying to remove the categories & tags that have been selected for a post from a complete list of categories & tags. I am using laravel 5.8...
RidwanIslam RidwanIslam
2

How to migrate a specific migration file?

I want to migrate a specific migration file. For example, I have a create_profiles_table.php file. I want to migrate this particular file only. Is there...
mohammadbasir mohammadbasir
4

Why my update code is not working?

Here is my code. Why not working? public function editCategory(Request $request,$id = null){ if($request->isMethod('post')){ $data = $request...
ruhulamin ruhulamin
3

Method not allowed exception

When I am submitting form, I am getting method not allowed exception. May I know what's wrong I did? Web.php Route::get('/login', '[email protected]...
awjit awjit
7

Laravel Nova Redirect Unauthorised Users

I am currently bug fixing a project handed over to us which uses Laravel Nova. At the moment if a non-admin user tries to go to /admin which is where Nova sits, a 403 error...
Nova
7
80
atfinho atfinho
3

Sending mail issue

Hey guys , I'm trying to send an email with smtp but I'm keep getting an error Failed to authenticate on SMTP server with username "[email protected]" using...

MethodNotAllowedHttpException with Laravel5.4 when uploading files bigger than 1MB online, but it works perfectly on localhost

I'm using Laravel 5.4 for my website, and I'm getting a problem when the user tries to upload files bigger than 1MB. This problem doesn't appear on localhost. The error I g...
MadMaks MadMaks
2

Change data from another Vue Element

How can i change this show data to true if i hit the destroy mehtod of the second element?? <script> new Vue({ el: '#flashMessage',...
Vue
2
30
PhoeniX5 PhoeniX5
12

DataTables error

Hello, I am trying to install DataTables in my laravel app but I keep getting errors while running this command : composer require yajra/laravel-datatables-o...
Laravel
12
105
david001 david001
4

Send email verification link for custom registration

How can i send email verification link for custom registration in laravel 5.8 I have two type of users , so for one type of user i used default registration system and i di...
donkfather donkfather
2

Update on polymorphic relation

Hi. I am trying to update a polymorphic relation.. I have this setUp: Test $this->up->addLanguage(factory(\Models\Components\Language::class)-&g...
Laravel
2
827

Polymorphic relationship updating

What is the correct way to update a polymorphic related record? I thought I should be able to do something like this: if ($request->has...
Laravel
3
485
freel freel
14

ubuntu error message extension missing

Hello, I am installing package pusher/pusher-php-server and getting error. Please see below. Can someone explain what is the problem. I don't have any idea what kind of pro...
Servers
14
807
kundefine kundefine
5

Prefix route Problem

colorspray.ku/dashboard not working. give me this error Access forbidden! You don't have permission to access the requested directory. There is either no index docum...
binalfew binalfew
3

How to record a screen cast?

Everytime I watch a laracasts screencast I can't help but wonder how Jeff does it. I mean, how come one code while talking? Is it voice over? Please guide me to a resource...

WYSIWYG image upload

I am creating a forum and using Trumbowyg text editor for thread and comment textareas. I want my users to be able to upload images to comments and threads using Trumbowyg'...
ruhulamin ruhulamin
1

What is the difference between Abstract class and Interface?

Hello Just curious to know that what is the difference between Abstract and Interface?...
nabilunfarhanun nabilunfarhanun
3

Best practice for validation and dry principle

What I read from the internet is it is good practice to validate both in front end and back end. Front end validation is needed for user friendliness. And back end validati...
Tips
3
83
ionelfona ionelfona
2

Eloquent & PostgreSQL multi-schema DB architecture

I am trying to build a Laravel 5 application that will use PostgreSQL for database. I am interested in organizing the database objects in several DB schemas, I would like h...
robobalasko robobalasko
20

How to stop eloquent trying to set updated_at

Hey guys, I would like to ask for any suggestions about how to stop Eloquent trying to set the updated_at columns in my DB table, which is not present there. For thi...
Eloquent
20
2066
hosamalzagh hosamalzagh
2

nead some data from colection

i have data retive from db same $data = model::with(['artist']) ->get(['id','name' ,'view','year','status','deleted_at']); foreach($data as $D)...
zellos zellos
4

Notification class cached?

Hi everyone, I am using new Mail Notification feature from Laravel 5.3 (...
Laravel
4
332
afrasiyabhaider afrasiyabhaider
8

How to work with google classroom api in Laravel

I want to work with google classroom api and get classroom data (Course Material : Lectures/Assignments/etc) from google classroom api. How can i do that? I've alrea...
Vishaal Vishaal
4

Laravel artisan cron task not working on ubuntu 18.10

Hello I have enabling the cron feature for Laravel on Ubuntu 18.10 on Vultr VPS server. I have added the cron task to the cron jobs list using the command...
chadhutchins chadhutchins
6

Adding Same Accessor Method to Multiple Model Classes

Hi all, I'm looking to add the same accessor to multiple models. I looked at Traits, but I don't think it quite solves the problem. Here's an example: class...
NoelDeMartin NoelDeMartin
2

Semantics: Relation vs Relationship

Maybe it's just me because I'm not a native English speaker, but I'm writing some documentation talking about relations and after reading the Laravel docs and looking at th...
Create a New Discussion Button