diff --git a/app/Models/User.php b/app/Models/User.php index ad09db3..aef3348 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -182,4 +182,11 @@ class User extends Authenticatable { return $table->owner_id == $this->id; } + + public function favouritesTable(Table $table) + { + return \DB::table('table_favourites') + ->where('user_id', $this->id) + ->where('table_id', $table->id)->exists(); + } } diff --git a/public/fonts/fa-dtbl-1-preview.html b/public/fonts/fa-dtbl-1-preview.html index e950de0..6353ee4 100644 --- a/public/fonts/fa-dtbl-1-preview.html +++ b/public/fonts/fa-dtbl-1-preview.html @@ -183,6 +183,7 @@ .fa-globe:before, .fa-google:before, .fa-history:before, +.fa-home:before, .fa-inbox:before, .fa-key-modern:before, .fa-link:before, @@ -246,33 +247,34 @@ .fa-globe:before { content: "\f113"; } .fa-google:before { content: "\f114"; } .fa-history:before { content: "\f115"; } -.fa-inbox:before { content: "\f116"; } -.fa-key-modern:before { content: "\f117"; } -.fa-link:before { content: "\f118"; } -.fa-pencil:before { content: "\f119"; } -.fa-pencil-square-o:before { content: "\f11a"; } -.fa-question-circle:before { content: "\f11b"; } -.fa-quote-left:before { content: "\f11c"; } -.fa-reply:before { content: "\f11d"; } -.fa-rss:before { content: "\f11e"; } -.fa-search:before { content: "\f11f"; } -.fa-share-alt:before { content: "\f120"; } -.fa-sign-in:before { content: "\f121"; } -.fa-sign-out:before { content: "\f122"; } -.fa-sliders:before { content: "\f123"; } -.fa-sort:before { content: "\f124"; } -.fa-sort-asc:before { content: "\f125"; } -.fa-sort-desc:before { content: "\f126"; } -.fa-star:before { content: "\f127"; } -.fa-star-o:before { content: "\f128"; } -.fa-table:before { content: "\f129"; } -.fa-th-list:before { content: "\f12a"; } -.fa-times:before { content: "\f12b"; } -.fa-trash:before { content: "\f12c"; } -.fa-trash-o:before { content: "\f12d"; } -.fa-user-circle-o:before { content: "\f12e"; } -.fa-user-plus:before { content: "\f12f"; } -.fa-wrench:before { content: "\f130"; } +.fa-home:before { content: "\f116"; } +.fa-inbox:before { content: "\f117"; } +.fa-key-modern:before { content: "\f118"; } +.fa-link:before { content: "\f119"; } +.fa-pencil:before { content: "\f11a"; } +.fa-pencil-square-o:before { content: "\f11b"; } +.fa-question-circle:before { content: "\f11c"; } +.fa-quote-left:before { content: "\f11d"; } +.fa-reply:before { content: "\f11e"; } +.fa-rss:before { content: "\f11f"; } +.fa-search:before { content: "\f120"; } +.fa-share-alt:before { content: "\f121"; } +.fa-sign-in:before { content: "\f122"; } +.fa-sign-out:before { content: "\f123"; } +.fa-sliders:before { content: "\f124"; } +.fa-sort:before { content: "\f125"; } +.fa-sort-asc:before { content: "\f126"; } +.fa-sort-desc:before { content: "\f127"; } +.fa-star:before { content: "\f128"; } +.fa-star-o:before { content: "\f129"; } +.fa-table:before { content: "\f12a"; } +.fa-th-list:before { content: "\f12b"; } +.fa-times:before { content: "\f12c"; } +.fa-trash:before { content: "\f12d"; } +.fa-trash-o:before { content: "\f12e"; } +.fa-user-circle-o:before { content: "\f12f"; } +.fa-user-plus:before { content: "\f130"; } +.fa-wrench:before { content: "\f131"; } @@ -288,7 +290,7 @@