Laravel belongsTo not working
I have 2 models in my app, 'User' & 'MedicineType' (each User belongs to one MedicineType).I made the one-to-many relation between two model using belongsTo() and hasMany(). hasMany() relation works perfectly but belongTo() doesn't work. Does anyone know where did I make a mistake?
in progress 16-01-2020 0 answers 189 views

Laravel belongsTo not working

I have 2 models in my app, 'User' & 'MedicineType' (each User belongs to one MedicineType).

I made the one-to-many relation between two model using belongsTo() and hasMany().

in progress 16-01-2020 0 answers 189 views

PHPStorm laravel issues
I was having a bit of trouble getting PHPStorm to work with laravel/composer.Upon opening PHPStorm, I created a new Composer Project: http://puu.sh/e4y1H/6fb97cf976.pngAfter which, I filled in necessary the details: http://puu.sh/e4y6Z/55bc60e7fc.pngAfter continuing, I run into the following error:
in progress 16-01-2020 2 answers 80 views

PHPStorm laravel issues

I was having a bit of trouble getting PHPStorm to work with laravel/composer.

Upon opening PHPStorm, I created a new Composer Project: http://puu

JavaScript - How to run these two firebase functions synchronously?
I want to run the below two firebase JS functions in sync since I need the values from both of these in the last if block to perform an operation. I have console.log(1), (2) and (3) to see if they are working in sync but they don't. I tried the .then() on the first block but that didn't work. Can someone help here? I am guessing promise might work here but I do not know how to implement that
in progress 16-01-2020 0 answers 58 views

JavaScript - How to run these two firebase functions synchronously?

I want to run the below two firebase JS functions in sync since I need the values from both of these in the last if block to perform an operation. I have console.log(1), (2) and (3) to see if t

in progress 16-01-2020 0 answers 58 views

How can I display the validation message in the view that is being redirected in Laravel ?
Here is my controllerpublic function registeruser() { $firstname = Input::get('firstname'); $lastname = Input::get('lastname'); $data = Input::except(array('_token')) ; $rule = array( 'firstname' => 'required', 'lastname' => 'required', ) ; $validator = Validator::make($data,$rule); if ($validator->fails()) { $messages = $validator->messages(); return Redirect::to('/')->with('message', 'Register Failed'); } else { DB::insert('insert into user (firstnam ...
in progress 17-01-2020 0 answers 123 views

How can I display the validation message in the view that is being redirected in Laravel ?

Here is my controller

public function registeruser() { $firstname = Input::get('firstname'); $lastname = Input::get('lastname'); $data = Input::except(array('_token'))

in progress 17-01-2020 0 answers 123 views

What is MVC??
Can any one explain what the exact MVC every one today talking about MVC
closed 16-01-2020 4 answers 126 views

What is MVC??

Can any one explain what the exact MVC every one today talking about MVC

closed 16-01-2020 4 answers 126 views

How to check whether a checkbox is checked in jQuery?
I need to check the checked property of a checkbox and perform an action based on the checked property using jQuery.For example, if the age checkbox is checked, then I need to show a textbox to enter age, else hide the textbox.But the following code returns false by default: if ($('#isAgeSelected').attr('checked')) { $("#txtAge").show(); } else { $("#txtAge").hide(); }[removed][removed] <input type="checkbox" id="isAgeSelected"/> Age is selected ...
in progress 15-01-2020 0 answers 58 views

How to check whether a checkbox is checked in jQuery?

I need to check the checked property of a checkbox and perform an action based on the checked property using jQuery.

For example, if the age checkbox is checked, then I need to show a textb

in progress 15-01-2020 0 answers 58 views

Linux script to Implement, as a script, a “safe” delete command
Implement, as a script, a "safe" delete command, sdel.sh. Filenames passed as command-line arguments to this script are not deleted, but instead gzipped if not already compressed (use file to check), then moved to a ~/TRASH directory. Upon invocation, the script checks the ~/TRASH directory for files older than 48 hours and permanently deletes them.
in progress 19-01-2020 0 answers 32 views

Linux script to Implement, as a script, a “safe” delete command

Implement, as a script, a "safe" delete command, sdel.sh. Filenames passed as command-line arguments to this script are not deleted, but instead gzipped if not already compressed (use file to check

in progress 19-01-2020 0 answers 32 views

We have to talk Admin.
We need to have a talk on the subject of what's yours and what's mine.EMAIL salehahmd100@gmail.com
in progress 19-01-2020 1 answers 62 views

We have to talk Admin.

We need to have a talk on the subject of what's yours and what's mine.

EMAIL 

salehahmd100@gmail.com

in progress 19-01-2020 1 answers 62 views

recommended book for programming
Anybody is here to recommend me the best programming book of php?
closed 19-01-2020 2 answers 60 views

recommended book for programming

Anybody is here to recommend me the best programming book of php?

closed 19-01-2020 2 answers 60 views

How to link javascript to html
The [removed] tag can be placed in the <head> section of your HTML, in the <body> section, or after the </body> close tag, depending on when you want the JavaScript to load.Example!<!DOCTYPE html><html><head><title>My Example</title>[removed][removed]</head><body><button onClick="[removed]exampleFunction()">Click Me</button></body></html>
in progress 16-01-2020 1 answers 85 views

How to link javascript to html

The [removed] tag can be placed in the <head> section of your HTML, in the <body> section, or after the </body> close tag, depending on when you want the JavaScript to load.
Ex

in progress 16-01-2020 1 answers 85 views