$job_id
но нигде его не используешь.// User model
public function jobs()
{
return $this->belongsToMany('App\Job', 'job_applies');
}
public function applied($job_id)
{
return $this->jobs()->where('job_id', $job_id)->count() > 0;
}
На локалке все норм отрабатывало
server {
listen 80;
root /home/app/dist/;
index index.html;
location / {
try_files $uri /index.html;
}
}
# html5 pushstate (history) support:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.html [L]
</IfModule>
$('select').on('change', function()
, перебираете option второго (api.jquery.com/jquery.each/), сверяете value и ставите disabled на те что меньше. gulp.task('sass',function(){
gulp.src('./sass/*.sass')
.pipe(sass().on('error', sass.logError))
.pipe(autoprefixer({
browsers: ['last 5 versions'],
cascade: false
}))
.pipe(gulp.dest('./css/'))
})
<button {{action 'updateUser' user}}>Обновить</button>
actions: {
updateUser(user) {
user.reload();
}
}
Mail::send('email_verify', $data, function($message) use ($user) { ...