{"id":23695553,"url":"https://github.com/fflch/bibfc","last_synced_at":"2026-03-14T01:37:24.814Z","repository":{"id":257477076,"uuid":"413564033","full_name":"fflch/bibfc","owner":"fflch","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-01T13:59:12.000Z","size":398,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T14:35:19.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fflch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-04T19:53:39.000Z","updated_at":"2025-02-01T13:59:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"74842d68-e128-4ce7-855a-e7d80edae6b4","html_url":"https://github.com/fflch/bibfc","commit_stats":null,"previous_names":["thiagogomesverissimo/sisbib","fflch/sisbib","fflch/bibfc"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflch%2Fbibfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflch%2Fbibfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflch%2Fbibfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflch%2Fbibfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fflch","download_url":"https://codeload.github.com/fflch/bibfc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239763654,"owners_count":19692812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-30T05:45:07.372Z","updated_at":"2026-03-14T01:37:24.808Z","avatar_url":"https://github.com/fflch.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Criar um unidade inicial:\n\n    $unidade = new App\\Models\\Unidade;\n    $unidade-\u003enome_unidade = 'Unidade Brás';\n    $unidade-\u003elocalizacao_unidade = 'São Paulo';\n    $unidade-\u003esave();\n    \nUsuário para testes:\n\n    $user = new App\\Models\\User();\n    $user-\u003epassword = Hash::make('admin');\n    $user-\u003eemail = 'admin@example.com';\n    $user-\u003ename = 'admin';\n    $user-\u003eunidade_id = 1;\n    $user-\u003esave();\n\n\n\nRenomeando fotos, o código que vale é o que está depois do underline:\n\n    for i in $(ls); do cp $i renomeados/$(echo $i |cut -d'_' -f1).jpg ; done\n\nImport usuários. Colunas do arquivo de usuários: matricula, nome, telefone, situacao, turma:\n\n\n    $usuarios = App\\Models\\Usuario::all();\n    foreach($usuarios as $usuario) { $usuario-\u003eturma = 'Sem matrícula ativa'; $usuario-\u003esave(); }  \n    php artisan importusuarios arquivo.csv\n\nDeletar livros sem exemplar:\n\n    Livro::whereDoesntHave('instances')-\u003edelete();\n\nRascunhos:\n\n    \u003cul\u003e\n        @each('assuntos.partials.assunto', $assuntos, 'assunto')\n    \u003c/ul\u003e\n\n    update assuntos set parent_id=130 where (parent_id IS NULL and id!=130);\n\nDeletando livros pré-cataloção que começam com I:\n\n    $livros = Livro::where('localizacao','LIKE','I%')-\u003ewhereDoesntHave('instances')-\u003eget();\n    foreach($livros as $livro){\n        $livro-\u003edelete();\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffflch%2Fbibfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffflch%2Fbibfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffflch%2Fbibfc/lists"}