Advertisement
achmadzainulkarim

Untitled

Feb 11th, 2020
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.33 KB | None | 0 0
  1. >>> use App\User;
  2. >>> $u = User::find(101)
  3. => App\User {#3579
  4. id: 101,
  5. role_id: 2,
  6. company_id: 23,
  7. company_name: "Trial PV",
  8. name: "test update full name",
  9. email: "gabyrusli@gmail.com",
  10. phone: "",
  11. username: "trialpvas",
  12. active: 1,
  13. suspend: 0,
  14. slug: "ronny-soepra",
  15. language: null,
  16. created_at: "2018-11-15 20:47:52",
  17. updated_at: "2019-06-27 08:17:52",
  18. logged_in_at: "2019-06-26 15:06:30",
  19. logged_out_at: "2019-06-12 10:10:44",
  20. ip_address: "127.0.0.1",
  21. picture: "http://cdn.staging.playingviral.com/pv/2019/05/08/113711/140x140--attachmentsimage1557290212.jpg",
  22. deleted_at: null,
  23. }
  24. >>> $u->permissionLists
  25. => Illuminate\Support\Collection {#3570
  26. all: [
  27. Spatie\Permission\Models\Permission {#3632
  28. id: 47,
  29. name: "user_permission_view",
  30. guard_name: "web",
  31. created_at: "2018-10-10 15:23:09",
  32. updated_at: "2018-10-10 15:23:09",
  33. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3631
  34. role_id: 10,
  35. permission_id: 47,
  36. },
  37. },
  38. Spatie\Permission\Models\Permission {#3633
  39. id: 48,
  40. name: "user_permission_edit",
  41. guard_name: "web",
  42. created_at: "2018-10-10 15:23:09",
  43. updated_at: "2018-10-10 15:23:09",
  44. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3629
  45. role_id: 10,
  46. permission_id: 48,
  47. },
  48. },
  49. Spatie\Permission\Models\Permission {#3634
  50. id: 49,
  51. name: "user_permission_delete",
  52. guard_name: "web",
  53. created_at: "2018-10-10 15:23:09",
  54. updated_at: "2018-10-10 15:23:09",
  55. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3628
  56. role_id: 10,
  57. permission_id: 49,
  58. },
  59. },
  60. Spatie\Permission\Models\Permission {#3635
  61. id: 50,
  62. name: "contact_list_personal_view",
  63. guard_name: "web",
  64. created_at: "2018-10-10 15:23:09",
  65. updated_at: "2018-10-10 15:23:09",
  66. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3627
  67. role_id: 10,
  68. permission_id: 50,
  69. },
  70. },
  71. Spatie\Permission\Models\Permission {#3636
  72. id: 51,
  73. name: "company_mode_view",
  74. guard_name: "web",
  75. created_at: "2018-10-10 15:23:09",
  76. updated_at: "2018-10-10 15:23:09",
  77. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3626
  78. role_id: 10,
  79. permission_id: 51,
  80. },
  81. },
  82. Spatie\Permission\Models\Permission {#3637
  83. id: 52,
  84. name: "content_create",
  85. guard_name: "web",
  86. created_at: "2018-10-10 15:23:09",
  87. updated_at: "2018-10-10 15:23:09",
  88. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3625
  89. role_id: 10,
  90. permission_id: 52,
  91. },
  92. },
  93. Spatie\Permission\Models\Permission {#3638
  94. id: 53,
  95. name: "content_view",
  96. guard_name: "web",
  97. created_at: "2018-10-10 15:23:09",
  98. updated_at: "2018-10-10 15:23:09",
  99. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3624
  100. role_id: 10,
  101. permission_id: 53,
  102. },
  103. },
  104. Spatie\Permission\Models\Permission {#3639
  105. id: 54,
  106. name: "content_edit",
  107. guard_name: "web",
  108. created_at: "2018-10-10 15:23:09",
  109. updated_at: "2018-10-10 15:23:09",
  110. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3623
  111. role_id: 10,
  112. permission_id: 54,
  113. },
  114. },
  115. Spatie\Permission\Models\Permission {#3640
  116. id: 55,
  117. name: "content_delete",
  118. guard_name: "web",
  119. created_at: "2018-10-10 15:23:09",
  120. updated_at: "2018-10-10 15:23:09",
  121. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3622
  122. role_id: 10,
  123. permission_id: 55,
  124. },
  125. },
  126. Spatie\Permission\Models\Permission {#3641
  127. id: 56,
  128. name: "content_distribute",
  129. guard_name: "web",
  130. created_at: "2018-10-10 15:23:09",
  131. updated_at: "2018-10-10 15:23:09",
  132. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3621
  133. role_id: 10,
  134. permission_id: 56,
  135. },
  136. },
  137. Spatie\Permission\Models\Permission {#3642
  138. id: 57,
  139. name: "pipeline_create",
  140. guard_name: "web",
  141. created_at: "2018-10-10 15:23:09",
  142. updated_at: "2018-10-10 15:23:09",
  143. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3620
  144. role_id: 10,
  145. permission_id: 57,
  146. },
  147. },
  148. Spatie\Permission\Models\Permission {#3643
  149. id: 58,
  150. name: "pipeline_view",
  151. guard_name: "web",
  152. created_at: "2018-10-10 15:23:09",
  153. updated_at: "2018-10-10 15:23:09",
  154. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3619
  155. role_id: 10,
  156. permission_id: 58,
  157. },
  158. },
  159. Spatie\Permission\Models\Permission {#3644
  160. id: 59,
  161. name: "pipeline_delete",
  162. guard_name: "web",
  163. created_at: "2018-10-10 15:23:09",
  164. updated_at: "2018-10-10 15:23:09",
  165. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3618
  166. role_id: 10,
  167. permission_id: 59,
  168. },
  169. },
  170. Spatie\Permission\Models\Permission {#3645
  171. id: 60,
  172. name: "pipeline_name_edit",
  173. guard_name: "web",
  174. created_at: "2018-10-10 15:23:09",
  175. updated_at: "2018-10-10 15:23:09",
  176. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3617
  177. role_id: 10,
  178. permission_id: 60,
  179. },
  180. },
  181. Spatie\Permission\Models\Permission {#3646
  182. id: 61,
  183. name: "pipeline_goal_edit",
  184. guard_name: "web",
  185. created_at: "2018-10-10 15:23:09",
  186. updated_at: "2018-10-10 15:23:09",
  187. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3616
  188. role_id: 10,
  189. permission_id: 61,
  190. },
  191. },
  192. Spatie\Permission\Models\Permission {#3647
  193. id: 62,
  194. name: "cta_create",
  195. guard_name: "web",
  196. created_at: "2018-10-10 15:23:09",
  197. updated_at: "2018-10-10 15:23:09",
  198. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3615
  199. role_id: 10,
  200. permission_id: 62,
  201. },
  202. },
  203. Spatie\Permission\Models\Permission {#3648
  204. id: 63,
  205. name: "cta_view",
  206. guard_name: "web",
  207. created_at: "2018-10-10 15:23:09",
  208. updated_at: "2018-10-10 15:23:09",
  209. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3614
  210. role_id: 10,
  211. permission_id: 63,
  212. },
  213. },
  214. Spatie\Permission\Models\Permission {#3649
  215. id: 64,
  216. name: "cta_edit",
  217. guard_name: "web",
  218. created_at: "2018-10-10 15:23:09",
  219. updated_at: "2018-10-10 15:23:09",
  220. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3613
  221. role_id: 10,
  222. permission_id: 64,
  223. },
  224. },
  225. Spatie\Permission\Models\Permission {#3650
  226. id: 65,
  227. name: "cta_delete",
  228. guard_name: "web",
  229. created_at: "2018-10-10 15:23:09",
  230. updated_at: "2018-10-10 15:23:09",
  231. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3612
  232. role_id: 10,
  233. permission_id: 65,
  234. },
  235. },
  236. Spatie\Permission\Models\Permission {#3651
  237. id: 66,
  238. name: "message_create",
  239. guard_name: "web",
  240. created_at: "2018-10-10 15:23:09",
  241. updated_at: "2018-10-10 15:23:09",
  242. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3611
  243. role_id: 10,
  244. permission_id: 66,
  245. },
  246. },
  247. Spatie\Permission\Models\Permission {#3652
  248. id: 67,
  249. name: "message_edit",
  250. guard_name: "web",
  251. created_at: "2018-10-10 15:23:09",
  252. updated_at: "2018-10-10 15:23:09",
  253. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3610
  254. role_id: 10,
  255. permission_id: 67,
  256. },
  257. },
  258. Spatie\Permission\Models\Permission {#3653
  259. id: 68,
  260. name: "message_delete",
  261. guard_name: "web",
  262. created_at: "2018-10-10 15:23:09",
  263. updated_at: "2018-10-10 15:23:09",
  264. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3609
  265. role_id: 10,
  266. permission_id: 68,
  267. },
  268. },
  269. Spatie\Permission\Models\Permission {#3654
  270. id: 69,
  271. name: "audience_create",
  272. guard_name: "web",
  273. created_at: "2018-10-10 15:23:09",
  274. updated_at: "2018-10-10 15:23:09",
  275. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3608
  276. role_id: 10,
  277. permission_id: 69,
  278. },
  279. },
  280. Spatie\Permission\Models\Permission {#3655
  281. id: 70,
  282. name: "audience_edit",
  283. guard_name: "web",
  284. created_at: "2018-10-10 15:23:09",
  285. updated_at: "2018-10-10 15:23:09",
  286. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3605
  287. role_id: 10,
  288. permission_id: 70,
  289. },
  290. },
  291. Spatie\Permission\Models\Permission {#3656
  292. id: 71,
  293. name: "audience_delete",
  294. guard_name: "web",
  295. created_at: "2018-10-10 15:23:09",
  296. updated_at: "2018-10-10 15:23:09",
  297. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3604
  298. role_id: 10,
  299. permission_id: 71,
  300. },
  301. },
  302. Spatie\Permission\Models\Permission {#3657
  303. id: 72,
  304. name: "dashboard_matrix_create",
  305. guard_name: "web",
  306. created_at: "2018-10-10 15:23:09",
  307. updated_at: "2018-10-10 15:23:09",
  308. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3607
  309. role_id: 10,
  310. permission_id: 72,
  311. },
  312. },
  313. Spatie\Permission\Models\Permission {#3658
  314. id: 73,
  315. name: "dashboard_matrix_edit",
  316. guard_name: "web",
  317. created_at: "2018-10-10 15:23:09",
  318. updated_at: "2018-10-10 15:23:09",
  319. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3602
  320. role_id: 10,
  321. permission_id: 73,
  322. },
  323. },
  324. Spatie\Permission\Models\Permission {#3659
  325. id: 74,
  326. name: "dashboard_matrix_delete",
  327. guard_name: "web",
  328. created_at: "2018-10-10 15:23:10",
  329. updated_at: "2018-10-10 15:23:10",
  330. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3601
  331. role_id: 10,
  332. permission_id: 74,
  333. },
  334. },
  335. Spatie\Permission\Models\Permission {#3660
  336. id: 75,
  337. name: "content_publish",
  338. guard_name: "web",
  339. created_at: "2018-10-25 11:20:37",
  340. updated_at: "2018-10-25 11:20:37",
  341. pivot: Illuminate\Database\Eloquent\Relations\Pivot {#3599
  342. role_id: 10,
  343. permission_id: 75,
  344. },
  345. },
  346. ],
  347. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement