mehalubozo mehalubozo
4

Calculate birthdate

I have this but of code, how can I get the birthdate of the person? $now= Carbon::now(); $patient->dateOfBirth = $input['day'].'-'.$input['month'].'-'.$i...
podu-file-plus podu-file-plus
2

Wrong laravel version

Hi, I started working on a new project, but it installs Laravel 5.2. How is that even possible? composer create-project --prefer-dist laravel/laravel...
louarruda louarruda
2

get Axios response on Vue with Laravel 5.8 find() result

Hey guys, I'm trying to get the API data on my view with Axios, but I guess I missing something.. at the moment the Vue is not even changing my variable "establecimien...
Vue
2
29
oscarmoore oscarmoore
3

Bulma modal box background-color issue

Pardon my beginner-ness. I doing the Bulma modal lesson (learn-vue-2-step-by-step episode 10) and the modal box is supposed to have a white background that appears "o...
successdav successdav
2

CHANGE PHP.INI SETTINGS

On a server setup using laravel forge, where precisely can I find the php.ini file. I connected to the server using file zilla but I cant find the php.ini file, please whic...
Forge
2
76
Wultyc Wultyc
1

Run yield multiple times

Hello. I'm adapting one bootstrap template to blade with this structure master.blade.php #template file │ └───page.blade.p...
hjortur17 hjortur17
3

CSRF token mismatch.

Hi, I do not understand why I'm getting this. I have this in my bootstrap.js file: I have this in the header: window.axios = require('ax...
murilo murilo
1

VUEX , getters with the same name in different modules

Hello Guys , I am trying to organilzing my projects and starting making all single applications . I have some doubt about VUEX . I am separating STORE in modules , in those...
Vue
1
40
foremostdigital foremostdigital
2

How to pass variable as parameter in repository constructor from app()->bind().

Hey, I have my Repository. i.e. UserRepository. This UserRepository implements the contract called UserInterface. UserInterface.php interface U...
flightsimmer668 flightsimmer668
10

The DELETE method is not supported for this route

I have these routes in api.php // Admin Announcements Route::middleware('is.admin')->group(function() { Route::get('admin/announcements...
Laravel
10
94
Sulieman Sulieman
16

sending more than 10,000 sms

hello , i'm working on project with laravel that will send sms to many contacts, the contacts more than 10,000 , and i am using nexmo or twilio, they have good api ,but my...
Laravel
16
916
utpal2015 utpal2015
3

n+1 nested eager loading

I am creating a category system on my app. My category.php file like this, <?php namespace App; use Illuminate\Database\Eloquent\Model; cl...
mostafalaravel mostafalaravel
2

impossible to disable register in laravel 5.8!

Hello , I try to disable the registration in laravel by : Auth::routes(); Auth::routes(['verify' => true]); Auth::routes(['register' => false]);...
AbdulBazith AbdulBazith
5

multiply product qty with rate with maximum rate in the list in relationship

guys i have a issue in multiplying the product quantity picked from sales table and multiply it with rate from purchase table. i have purchases tables...
Laravel
5
194
EventFellows EventFellows
3

Add invoice-table information to PDF invoice without hacking vendor files

I have additional fields on my incoices table that needs to be on the invoice PDF for legal reasons. I have copied and changed the receipt.blade.p...
Spark
3
421
matheenulla matheenulla
2

How to store Dropdown selected id in database not value in laravel

<option >Academics</option> @foreach($academic as $aca) <option id="{{$aca->id}}" value="{{$aca->na...
RomainB RomainB
3

hasMany(Child) and return $this->where() in Child model doesn't work

Hi. Why this works: class Post extends Model { public function comments() { return $this->hasMany(Comment::class)->where('accept...
Nevermind23 Nevermind23
4

1118 Row size too large

SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMA...
Laravel
4
1719
xterminator24 xterminator24
5

User model best practices

I'm starting a new Laravel 5.8 application and using the built-in Laravel auth. I know that you can rename the default User model and change the database table name....

What is different or best practices

sometimes i am fall in confuse between this functions : User.php file public function post() { return $this->hasMany(Post::class); or return $t...
mskhoshnazar mskhoshnazar
18

Laravel pagination, bad design maybe?

Hi @JeffreyWay I was struggling with a clean way to render simple or regular pagination based on user's agent type (mobile/desktop), and I'm begi...
Laravel
18
236
Michael34 Michael34
28

Method('Patch') and CSRF token appear in page and don't work.

I'm new and going through the beginner's course. For some reason, @method('PATCH') and @CSRF text appears on my page and are not...
Laravel
28
286
prospeak prospeak
9

Schedule a post

Hello Please i want to create a post with form title , body ... but i want to add posted_at and hide_at or start_at and end_at , i tried to use softdelete but it's n...
Faisal Faisal
14

Storage url is not working on windows

Hi i am using Laravel 5.8, for image storing i am used Storage, and after i used php artisan storage:link but i cannot get exact image path, can you help me ?? This is my P...
Laravel
14
210
mabdullahsari mabdullahsari
5

Allow multiple validation types in form requests

I will cut it brief, I want to validate the following in a FormRequest: "dates": ["2019-02-01", ["2019-03-01", "...
KingsleyO KingsleyO
2

Trying to get property id of non object

I have this code which displays an edit button to only the user with the id in the url if(Auth::getUser()->id == $slug ){ $this['getuser'] = Auth::ge...
mostafalaravel mostafalaravel
1

Error message when validate null value !

Hello , I created this custom validation : public function boot() { Validator::extend('image64', function ($attribute, $value, $param...
nickdavies07 nickdavies07
8

[caching_sha2_password] error when running php artisan migrate

Having an issue, hopefully someone can help as I'm tearing my hair out with this one. Running the command php artisan migrate in terminal throws the following error:...
Laravel
8
5744
dharav dharav
13

how to pass id in default create method

i want to pass id to default create method but it gives missing argument error and if its initialised the id isnt pass a class="btn btn-primary" hr...
Laravel
13
1075
hjortur17 hjortur17
7

How to send slack notification when a exception is thrown.

Hi, I'm trying to have Laravel send a slacknotification when exception is sent, but for some reason I do not get it. Here are my files: logging.ph...
emilVenkov12 emilVenkov12
2

Method Illuminate/Support/Collection::replace does not exist.

In Laravel documentation: https://laravel.com/docs/5.8/collectio...
Aktheon Aktheon
2

Building request for input array

I've seen widely used this structure $a = Products::find(1)->accesses()->get() Can i somehow get relations for multiple rows or some condition. For some...
AbdulBazith AbdulBazith
34

multiply the qty and rate from two tables with same product_id in laravel

guys i have two tables table opening_stock with columns id open_date product_id open_qty db structure below id open_date...
Laravel
34
577
parthsynup parthsynup
3

spatie crawler - how to list out all the URL's from the base url crawl.

I am using spatie/crawler for crawling the url. I have input as a base URL. And need to get all the host URL links present in the base URL web page. The crawler is returnin...
Van1310 Van1310
3

Ajax Url not found

After click on button url not found in ajax script here is my code $('.btn-apply').click(function () { var btn = $(this); var tRowId =...
Create a New Discussion Button