towhid towhid
10

want to disable this method in form request validation file

this is my form request validation after add this validation rules and message and authorize i face one error how to solve //this is my form request validati...
Laravel
10
48
hjortur17 hjortur17
2

Authorization with Vue

Hi, I'm trying to create Vue Component and to make this component function correctly I need to do authorization. On my User.php I have isAdmin method and a mid...
irankhosravi irankhosravi
7

Undefined offset: 1

I want to show category and paent_id. but I tried for it I see Undefined offset: 1. category.blade.php <div class="form-group&quo...
FabioPacifici FabioPacifici
6

Import CSV files into dB, Laravel 5.7

Hello all! how are you doing today? I would like to import information from a CSV file and store them inside a dedicated DB table. Then present the results inside a chart...
Tips
6
699
Ap3twe Ap3twe
7

Getting the value of date (Y:M:D)?

I wanna get only Y:M:D. In laravel the created_at returns Y,M,D, hour, minutes and second. I tried to use public function getFromDateAttribute($value) {...
Alexb0903 Alexb0903
2

Assign a role to user

i've tried following the laracast tutorial 'ACL in Laravel: Roles and Permissions'. The table roles, permissions and permission_role are working out like they are supose to...
mushood mushood
4

CORS issue only on axios

Hello I am getting a CORS issue only on axios. In this html page, I am using a traditional form to post from domain A to domain B. The form submit works corre...
davedox davedox
5

Create a User and Related Item Sequentially

I cannot seem to figure this out. Suppose I want to create a user and an item at the same time. There is a user controller with a store method (UserController->store) an...
mushood mushood
2

CORS error

Hello. I created a mobile app which consumes a back-end API.I am using fetch api on JS end to make my requests. However, I am getting a CORS error Err...
AdRock AdRock
2

Custom login and authentication

I don't know if this has ever been asked before but I'll ask anyway as searches don't return what I'm looking for/ I need a custom login/authentication for Laravel...
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...
RainMakr RainMakr
4

Cookie::get vs $request->cookie()

So, I have this app, where I set a cookie over Ajax. Am not able to read the cookie when I reload the page, but am able to read it over Ajax. So, basically, i...

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
27
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
823

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
479
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
803
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...
yafeearun yafeearun
8

page not found - except route proplem

Hi i have tried to add a url product/test without csrf token verification and i done the following steps added route in routes Route::post('pro...
Create a New Discussion Button