Laravel eloquent calculate work experience










2














I have custom table with users work experiences:



Schema::create('workplaces', function (Blueprint $table) 
$table->increments('id');
$table->unsignedInteger('user_id');
$table->foreign('user_id')
->references('id')
->on('users')
->onDelete('cascade');
$table->string('company')->nullable();
$table->string('position')->nullable();
$table->string('description')->nullable();
$table->smallInteger('from')->nullable();
$table->smallInteger('to')->nullable();
$table->timestamps();
);


Here example user experiences data:



----------------------------------------------------------
| user_id | company | position | description | from | to |
----------------------------------------------------------
----------------------------------------------------------
| 1 | Google | Designer | Lorem ipsum | 2018 |null|
----------------------------------------------------------
----------------------------------------------------------
| 1 | Yahoo | Designer | Lorem ipsum | 2014 |2017|
----------------------------------------------------------
----------------------------------------------------------
| 1 |Microsoft| Designer | Lorem ipsum | 2004 |2008|
----------------------------------------------------------


In this example user with id == 1 has 7 years work experience.



2018 - (2017 - 2014) - (2008 - 2004) = 2011


User last year work in 2018 and now I need to subtraction result from last working year:



2018 - 2011 = 7


Now, current user has 7 year work experience.



How I can calculate custom work experiences using laravel eloquent?










share|improve this question























  • What do you want to have in output? can you explain that please?
    – Hamid Naghipour
    Nov 10 '18 at 10:26










  • @HamidNaghipour I need calculate user work experiences. In my example data user has 7 year work experience. How I can calculate it with eloquent?
    – Andreas Hunter
    Nov 10 '18 at 10:56















2














I have custom table with users work experiences:



Schema::create('workplaces', function (Blueprint $table) 
$table->increments('id');
$table->unsignedInteger('user_id');
$table->foreign('user_id')
->references('id')
->on('users')
->onDelete('cascade');
$table->string('company')->nullable();
$table->string('position')->nullable();
$table->string('description')->nullable();
$table->smallInteger('from')->nullable();
$table->smallInteger('to')->nullable();
$table->timestamps();
);


Here example user experiences data:



----------------------------------------------------------
| user_id | company | position | description | from | to |
----------------------------------------------------------
----------------------------------------------------------
| 1 | Google | Designer | Lorem ipsum | 2018 |null|
----------------------------------------------------------
----------------------------------------------------------
| 1 | Yahoo | Designer | Lorem ipsum | 2014 |2017|
----------------------------------------------------------
----------------------------------------------------------
| 1 |Microsoft| Designer | Lorem ipsum | 2004 |2008|
----------------------------------------------------------


In this example user with id == 1 has 7 years work experience.



2018 - (2017 - 2014) - (2008 - 2004) = 2011


User last year work in 2018 and now I need to subtraction result from last working year:



2018 - 2011 = 7


Now, current user has 7 year work experience.



How I can calculate custom work experiences using laravel eloquent?










share|improve this question























  • What do you want to have in output? can you explain that please?
    – Hamid Naghipour
    Nov 10 '18 at 10:26










  • @HamidNaghipour I need calculate user work experiences. In my example data user has 7 year work experience. How I can calculate it with eloquent?
    – Andreas Hunter
    Nov 10 '18 at 10:56













2












2








2







I have custom table with users work experiences:



Schema::create('workplaces', function (Blueprint $table) 
$table->increments('id');
$table->unsignedInteger('user_id');
$table->foreign('user_id')
->references('id')
->on('users')
->onDelete('cascade');
$table->string('company')->nullable();
$table->string('position')->nullable();
$table->string('description')->nullable();
$table->smallInteger('from')->nullable();
$table->smallInteger('to')->nullable();
$table->timestamps();
);


Here example user experiences data:



----------------------------------------------------------
| user_id | company | position | description | from | to |
----------------------------------------------------------
----------------------------------------------------------
| 1 | Google | Designer | Lorem ipsum | 2018 |null|
----------------------------------------------------------
----------------------------------------------------------
| 1 | Yahoo | Designer | Lorem ipsum | 2014 |2017|
----------------------------------------------------------
----------------------------------------------------------
| 1 |Microsoft| Designer | Lorem ipsum | 2004 |2008|
----------------------------------------------------------


In this example user with id == 1 has 7 years work experience.



2018 - (2017 - 2014) - (2008 - 2004) = 2011


User last year work in 2018 and now I need to subtraction result from last working year:



2018 - 2011 = 7


Now, current user has 7 year work experience.



How I can calculate custom work experiences using laravel eloquent?










share|improve this question















I have custom table with users work experiences:



Schema::create('workplaces', function (Blueprint $table) 
$table->increments('id');
$table->unsignedInteger('user_id');
$table->foreign('user_id')
->references('id')
->on('users')
->onDelete('cascade');
$table->string('company')->nullable();
$table->string('position')->nullable();
$table->string('description')->nullable();
$table->smallInteger('from')->nullable();
$table->smallInteger('to')->nullable();
$table->timestamps();
);


Here example user experiences data:



----------------------------------------------------------
| user_id | company | position | description | from | to |
----------------------------------------------------------
----------------------------------------------------------
| 1 | Google | Designer | Lorem ipsum | 2018 |null|
----------------------------------------------------------
----------------------------------------------------------
| 1 | Yahoo | Designer | Lorem ipsum | 2014 |2017|
----------------------------------------------------------
----------------------------------------------------------
| 1 |Microsoft| Designer | Lorem ipsum | 2004 |2008|
----------------------------------------------------------


In this example user with id == 1 has 7 years work experience.



2018 - (2017 - 2014) - (2008 - 2004) = 2011


User last year work in 2018 and now I need to subtraction result from last working year:



2018 - 2011 = 7


Now, current user has 7 year work experience.



How I can calculate custom work experiences using laravel eloquent?







laravel eloquent laravel-5.7






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 10 '18 at 10:54

























asked Nov 10 '18 at 9:09









Andreas Hunter

740418




740418











  • What do you want to have in output? can you explain that please?
    – Hamid Naghipour
    Nov 10 '18 at 10:26










  • @HamidNaghipour I need calculate user work experiences. In my example data user has 7 year work experience. How I can calculate it with eloquent?
    – Andreas Hunter
    Nov 10 '18 at 10:56
















  • What do you want to have in output? can you explain that please?
    – Hamid Naghipour
    Nov 10 '18 at 10:26










  • @HamidNaghipour I need calculate user work experiences. In my example data user has 7 year work experience. How I can calculate it with eloquent?
    – Andreas Hunter
    Nov 10 '18 at 10:56















What do you want to have in output? can you explain that please?
– Hamid Naghipour
Nov 10 '18 at 10:26




What do you want to have in output? can you explain that please?
– Hamid Naghipour
Nov 10 '18 at 10:26












@HamidNaghipour I need calculate user work experiences. In my example data user has 7 year work experience. How I can calculate it with eloquent?
– Andreas Hunter
Nov 10 '18 at 10:56




@HamidNaghipour I need calculate user work experiences. In my example data user has 7 year work experience. How I can calculate it with eloquent?
– Andreas Hunter
Nov 10 '18 at 10:56












2 Answers
2






active

oldest

votes


















4














1) Create a model in app folder where filename is Workplace.php with following content:



<?php namespace App;

use IlluminateDatabaseEloquentModel;

class Workplace extends Model

protected $table = 'workplaces';

protected $fillable = ['user_id', 'company', 'position', 'description', 'from', 'to'];

public $timestamps = true;


public function user()

return $this->belongsTo('AppUser');


public function experienceYears()

$from = property_exists($this, 'from') ? $this->from : null;
$to = property_exists($this, 'to') ? $this->to : null;
if (is_null($from)) return 0;
if (is_null($to)) $to = $from; // or = date('Y'); depending business logic
return (int)$to - (int)$from;


public static function calcExperienceYearsForUser(User $user)

$workplaces =
self::with('experienceYears')
->whereUserId($user->id)
->get(['from', 'to']);
$years = 0;
foreach ($workplaces AS $workplace)
$years+= $workplace->experienceYears;

return $years;




2) Use it in controller's action:



$userId = 1;
$User = User::findOrFail($userId);
$yearsOfExperience = Workplace::calcExperienceYearsForUser($User);





share|improve this answer






















  • How do you think how can I get users with more or less n - years experience?
    – Andreas Hunter
    Nov 10 '18 at 14:30










  • @AndreasHunter for such case You've to add experience_years field to users table and make console command that will run periodically and do calculation and update that field.
    – num8er
    Nov 10 '18 at 14:49


















1














I believe you should do such calculations on the DB side. It will be a much faster and more flexible solution. What if you got 1 million users with multiple experience entries and want to select top 10 most experienced users? Doing such calculation on the PHP side will be extremely inefficient.



Here's a raw query (Postgres) that might do the main part of the job:



SELECT SUM(COALESCE(to_year, extract(year from current_date)) - from_year) from experiences;


If you want to play around with it and test other cases: http://sqlfiddle.com/#!9/c9840b/3



Others might say that this is a premature optimization, but it's a one liner. Raw queries are very capable and should be employed more often.






share|improve this answer




















  • that's perfect solution, but question is: How I can calculate custom work experiences using laravel eloquent? I hope there is no such requirement to show top 10 users (: which will lead to add experience_years to users table and background worker or database trigger that will calculate numbers and update that field
    – num8er
    Nov 10 '18 at 12:44







  • 1




    Well, I just wanted to provide an idea. One can always "hide" raw query bits within Model class to feel it more eloquent-like. As your answer is technically correct, I think there's no need to elaborate on an alternative. And I agree on the summary table / triggers part.
    – Andrius Rimkus
    Nov 10 '18 at 13:51










  • what about doing extra addition to Your answer? Cause Andreas wants that feature now (:
    – num8er
    Nov 10 '18 at 14:51










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53237497%2flaravel-eloquent-calculate-work-experience%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














1) Create a model in app folder where filename is Workplace.php with following content:



<?php namespace App;

use IlluminateDatabaseEloquentModel;

class Workplace extends Model

protected $table = 'workplaces';

protected $fillable = ['user_id', 'company', 'position', 'description', 'from', 'to'];

public $timestamps = true;


public function user()

return $this->belongsTo('AppUser');


public function experienceYears()

$from = property_exists($this, 'from') ? $this->from : null;
$to = property_exists($this, 'to') ? $this->to : null;
if (is_null($from)) return 0;
if (is_null($to)) $to = $from; // or = date('Y'); depending business logic
return (int)$to - (int)$from;


public static function calcExperienceYearsForUser(User $user)

$workplaces =
self::with('experienceYears')
->whereUserId($user->id)
->get(['from', 'to']);
$years = 0;
foreach ($workplaces AS $workplace)
$years+= $workplace->experienceYears;

return $years;




2) Use it in controller's action:



$userId = 1;
$User = User::findOrFail($userId);
$yearsOfExperience = Workplace::calcExperienceYearsForUser($User);





share|improve this answer






















  • How do you think how can I get users with more or less n - years experience?
    – Andreas Hunter
    Nov 10 '18 at 14:30










  • @AndreasHunter for such case You've to add experience_years field to users table and make console command that will run periodically and do calculation and update that field.
    – num8er
    Nov 10 '18 at 14:49















4














1) Create a model in app folder where filename is Workplace.php with following content:



<?php namespace App;

use IlluminateDatabaseEloquentModel;

class Workplace extends Model

protected $table = 'workplaces';

protected $fillable = ['user_id', 'company', 'position', 'description', 'from', 'to'];

public $timestamps = true;


public function user()

return $this->belongsTo('AppUser');


public function experienceYears()

$from = property_exists($this, 'from') ? $this->from : null;
$to = property_exists($this, 'to') ? $this->to : null;
if (is_null($from)) return 0;
if (is_null($to)) $to = $from; // or = date('Y'); depending business logic
return (int)$to - (int)$from;


public static function calcExperienceYearsForUser(User $user)

$workplaces =
self::with('experienceYears')
->whereUserId($user->id)
->get(['from', 'to']);
$years = 0;
foreach ($workplaces AS $workplace)
$years+= $workplace->experienceYears;

return $years;




2) Use it in controller's action:



$userId = 1;
$User = User::findOrFail($userId);
$yearsOfExperience = Workplace::calcExperienceYearsForUser($User);





share|improve this answer






















  • How do you think how can I get users with more or less n - years experience?
    – Andreas Hunter
    Nov 10 '18 at 14:30










  • @AndreasHunter for such case You've to add experience_years field to users table and make console command that will run periodically and do calculation and update that field.
    – num8er
    Nov 10 '18 at 14:49













4












4








4






1) Create a model in app folder where filename is Workplace.php with following content:



<?php namespace App;

use IlluminateDatabaseEloquentModel;

class Workplace extends Model

protected $table = 'workplaces';

protected $fillable = ['user_id', 'company', 'position', 'description', 'from', 'to'];

public $timestamps = true;


public function user()

return $this->belongsTo('AppUser');


public function experienceYears()

$from = property_exists($this, 'from') ? $this->from : null;
$to = property_exists($this, 'to') ? $this->to : null;
if (is_null($from)) return 0;
if (is_null($to)) $to = $from; // or = date('Y'); depending business logic
return (int)$to - (int)$from;


public static function calcExperienceYearsForUser(User $user)

$workplaces =
self::with('experienceYears')
->whereUserId($user->id)
->get(['from', 'to']);
$years = 0;
foreach ($workplaces AS $workplace)
$years+= $workplace->experienceYears;

return $years;




2) Use it in controller's action:



$userId = 1;
$User = User::findOrFail($userId);
$yearsOfExperience = Workplace::calcExperienceYearsForUser($User);





share|improve this answer














1) Create a model in app folder where filename is Workplace.php with following content:



<?php namespace App;

use IlluminateDatabaseEloquentModel;

class Workplace extends Model

protected $table = 'workplaces';

protected $fillable = ['user_id', 'company', 'position', 'description', 'from', 'to'];

public $timestamps = true;


public function user()

return $this->belongsTo('AppUser');


public function experienceYears()

$from = property_exists($this, 'from') ? $this->from : null;
$to = property_exists($this, 'to') ? $this->to : null;
if (is_null($from)) return 0;
if (is_null($to)) $to = $from; // or = date('Y'); depending business logic
return (int)$to - (int)$from;


public static function calcExperienceYearsForUser(User $user)

$workplaces =
self::with('experienceYears')
->whereUserId($user->id)
->get(['from', 'to']);
$years = 0;
foreach ($workplaces AS $workplace)
$years+= $workplace->experienceYears;

return $years;




2) Use it in controller's action:



$userId = 1;
$User = User::findOrFail($userId);
$yearsOfExperience = Workplace::calcExperienceYearsForUser($User);






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 10 '18 at 11:56

























answered Nov 10 '18 at 11:06









num8er

11.4k21939




11.4k21939











  • How do you think how can I get users with more or less n - years experience?
    – Andreas Hunter
    Nov 10 '18 at 14:30










  • @AndreasHunter for such case You've to add experience_years field to users table and make console command that will run periodically and do calculation and update that field.
    – num8er
    Nov 10 '18 at 14:49
















  • How do you think how can I get users with more or less n - years experience?
    – Andreas Hunter
    Nov 10 '18 at 14:30










  • @AndreasHunter for such case You've to add experience_years field to users table and make console command that will run periodically and do calculation and update that field.
    – num8er
    Nov 10 '18 at 14:49















How do you think how can I get users with more or less n - years experience?
– Andreas Hunter
Nov 10 '18 at 14:30




How do you think how can I get users with more or less n - years experience?
– Andreas Hunter
Nov 10 '18 at 14:30












@AndreasHunter for such case You've to add experience_years field to users table and make console command that will run periodically and do calculation and update that field.
– num8er
Nov 10 '18 at 14:49




@AndreasHunter for such case You've to add experience_years field to users table and make console command that will run periodically and do calculation and update that field.
– num8er
Nov 10 '18 at 14:49













1














I believe you should do such calculations on the DB side. It will be a much faster and more flexible solution. What if you got 1 million users with multiple experience entries and want to select top 10 most experienced users? Doing such calculation on the PHP side will be extremely inefficient.



Here's a raw query (Postgres) that might do the main part of the job:



SELECT SUM(COALESCE(to_year, extract(year from current_date)) - from_year) from experiences;


If you want to play around with it and test other cases: http://sqlfiddle.com/#!9/c9840b/3



Others might say that this is a premature optimization, but it's a one liner. Raw queries are very capable and should be employed more often.






share|improve this answer




















  • that's perfect solution, but question is: How I can calculate custom work experiences using laravel eloquent? I hope there is no such requirement to show top 10 users (: which will lead to add experience_years to users table and background worker or database trigger that will calculate numbers and update that field
    – num8er
    Nov 10 '18 at 12:44







  • 1




    Well, I just wanted to provide an idea. One can always "hide" raw query bits within Model class to feel it more eloquent-like. As your answer is technically correct, I think there's no need to elaborate on an alternative. And I agree on the summary table / triggers part.
    – Andrius Rimkus
    Nov 10 '18 at 13:51










  • what about doing extra addition to Your answer? Cause Andreas wants that feature now (:
    – num8er
    Nov 10 '18 at 14:51















1














I believe you should do such calculations on the DB side. It will be a much faster and more flexible solution. What if you got 1 million users with multiple experience entries and want to select top 10 most experienced users? Doing such calculation on the PHP side will be extremely inefficient.



Here's a raw query (Postgres) that might do the main part of the job:



SELECT SUM(COALESCE(to_year, extract(year from current_date)) - from_year) from experiences;


If you want to play around with it and test other cases: http://sqlfiddle.com/#!9/c9840b/3



Others might say that this is a premature optimization, but it's a one liner. Raw queries are very capable and should be employed more often.






share|improve this answer




















  • that's perfect solution, but question is: How I can calculate custom work experiences using laravel eloquent? I hope there is no such requirement to show top 10 users (: which will lead to add experience_years to users table and background worker or database trigger that will calculate numbers and update that field
    – num8er
    Nov 10 '18 at 12:44







  • 1




    Well, I just wanted to provide an idea. One can always "hide" raw query bits within Model class to feel it more eloquent-like. As your answer is technically correct, I think there's no need to elaborate on an alternative. And I agree on the summary table / triggers part.
    – Andrius Rimkus
    Nov 10 '18 at 13:51










  • what about doing extra addition to Your answer? Cause Andreas wants that feature now (:
    – num8er
    Nov 10 '18 at 14:51













1












1








1






I believe you should do such calculations on the DB side. It will be a much faster and more flexible solution. What if you got 1 million users with multiple experience entries and want to select top 10 most experienced users? Doing such calculation on the PHP side will be extremely inefficient.



Here's a raw query (Postgres) that might do the main part of the job:



SELECT SUM(COALESCE(to_year, extract(year from current_date)) - from_year) from experiences;


If you want to play around with it and test other cases: http://sqlfiddle.com/#!9/c9840b/3



Others might say that this is a premature optimization, but it's a one liner. Raw queries are very capable and should be employed more often.






share|improve this answer












I believe you should do such calculations on the DB side. It will be a much faster and more flexible solution. What if you got 1 million users with multiple experience entries and want to select top 10 most experienced users? Doing such calculation on the PHP side will be extremely inefficient.



Here's a raw query (Postgres) that might do the main part of the job:



SELECT SUM(COALESCE(to_year, extract(year from current_date)) - from_year) from experiences;


If you want to play around with it and test other cases: http://sqlfiddle.com/#!9/c9840b/3



Others might say that this is a premature optimization, but it's a one liner. Raw queries are very capable and should be employed more often.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 10 '18 at 12:04









Andrius Rimkus

35928




35928











  • that's perfect solution, but question is: How I can calculate custom work experiences using laravel eloquent? I hope there is no such requirement to show top 10 users (: which will lead to add experience_years to users table and background worker or database trigger that will calculate numbers and update that field
    – num8er
    Nov 10 '18 at 12:44







  • 1




    Well, I just wanted to provide an idea. One can always "hide" raw query bits within Model class to feel it more eloquent-like. As your answer is technically correct, I think there's no need to elaborate on an alternative. And I agree on the summary table / triggers part.
    – Andrius Rimkus
    Nov 10 '18 at 13:51










  • what about doing extra addition to Your answer? Cause Andreas wants that feature now (:
    – num8er
    Nov 10 '18 at 14:51
















  • that's perfect solution, but question is: How I can calculate custom work experiences using laravel eloquent? I hope there is no such requirement to show top 10 users (: which will lead to add experience_years to users table and background worker or database trigger that will calculate numbers and update that field
    – num8er
    Nov 10 '18 at 12:44







  • 1




    Well, I just wanted to provide an idea. One can always "hide" raw query bits within Model class to feel it more eloquent-like. As your answer is technically correct, I think there's no need to elaborate on an alternative. And I agree on the summary table / triggers part.
    – Andrius Rimkus
    Nov 10 '18 at 13:51










  • what about doing extra addition to Your answer? Cause Andreas wants that feature now (:
    – num8er
    Nov 10 '18 at 14:51















that's perfect solution, but question is: How I can calculate custom work experiences using laravel eloquent? I hope there is no such requirement to show top 10 users (: which will lead to add experience_years to users table and background worker or database trigger that will calculate numbers and update that field
– num8er
Nov 10 '18 at 12:44





that's perfect solution, but question is: How I can calculate custom work experiences using laravel eloquent? I hope there is no such requirement to show top 10 users (: which will lead to add experience_years to users table and background worker or database trigger that will calculate numbers and update that field
– num8er
Nov 10 '18 at 12:44





1




1




Well, I just wanted to provide an idea. One can always "hide" raw query bits within Model class to feel it more eloquent-like. As your answer is technically correct, I think there's no need to elaborate on an alternative. And I agree on the summary table / triggers part.
– Andrius Rimkus
Nov 10 '18 at 13:51




Well, I just wanted to provide an idea. One can always "hide" raw query bits within Model class to feel it more eloquent-like. As your answer is technically correct, I think there's no need to elaborate on an alternative. And I agree on the summary table / triggers part.
– Andrius Rimkus
Nov 10 '18 at 13:51












what about doing extra addition to Your answer? Cause Andreas wants that feature now (:
– num8er
Nov 10 '18 at 14:51




what about doing extra addition to Your answer? Cause Andreas wants that feature now (:
– num8er
Nov 10 '18 at 14:51

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53237497%2flaravel-eloquent-calculate-work-experience%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế